.ls-page {
    --ls-primary: var(--its-accent, #3867d6);
    --ls-brand: var(--ls-primary);
    --ls-link: var(--its-accent-dark, #2854bd);
    --ls-accent-soft: var(--its-accent-soft, #edf2ff);
    --ls-accent-line: var(--its-accent-border, #cbd8fa);
    --ls-surface: var(--its-card, #ffffff);
    --ls-tint: var(--its-bg, #f3f7fd);
    --ls-text: var(--its-text, #101a35);
    --ls-muted: var(--its-text-2, #34415f);
    --ls-line: var(--its-border, #d7e1f1);
    --ls-focus: var(--ls-primary);
    --ls-control-line: #7c90b6;
    --ls-error: #982b43;
    --ls-error-soft: #fff4f6;
    --ls-error-line: #efcbd4;
    --ls-shadow: var(--its-shadow, 0 12px 34px rgba(31, 55, 103, .08));
    max-width: 1220px;
    margin: 0 auto;
    padding-bottom: 32px;
    color: var(--ls-text);
    font-family: Inter, system-ui, -apple-system, sans-serif;
    container-type: inline-size;
}

.ls-page *,
.ls-page *::before,
.ls-page *::after { box-sizing: border-box; }

.ls-page [hidden] { display: none !important; }
.ls-page a { color: var(--ls-link); text-underline-offset: .16em; }
.ls-page :focus-visible { outline: 2px solid var(--ls-focus); outline-offset: 3px; }
.ls-page h1, .ls-page h2, .ls-page h3, .ls-page p, .ls-page dl { margin: 0; }
.ls-page h2, .ls-page h3 { color: inherit; }
.ls-page h2 { font-size: clamp(22px, 2.6vw, 31px); line-height: 1.16; font-weight: 750; letter-spacing: -.035em; }
.ls-page h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
.ls-page button, .ls-page input, .ls-page select { font: inherit; }
.ls-page button, .ls-page summary { cursor: pointer; }
.ls-page button:disabled { cursor: default; opacity: .56; }

.ls-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.ls-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(22px, 4.6vw, 58px);
    border: 1px solid var(--ls-line);
    border-radius: 28px;
    background: radial-gradient(ellipse at top right, var(--ls-accent-soft), transparent 65%), var(--ls-surface);
    box-shadow: var(--ls-shadow);
}
.ls-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 52%;
    background: repeating-linear-gradient(0deg, transparent 0 39px, #3867d60e 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, #3867d60e 39px 40px);
    mask-image: linear-gradient(115deg, transparent, #000 70%);
    pointer-events: none;
    content: '';
}

.ls-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--ls-muted); font-size: 12px; }
.ls-crumbs a { text-decoration: none; }
.ls-crumbs a:hover { text-decoration: underline; }
.ls-crumbs > :not(:first-child)::before { margin-right: 7px; color: var(--ls-muted); content: '/'; }

.ls-hero-heading { max-width: 850px; margin-top: 24px; }
.ls-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(228px, 1fr);
    gap: clamp(28px, 5.1vw, 72px);
    margin-top: 25px;
    align-items: stretch;
}
.ls-hero h1 {
    margin: 0;
    color: var(--ls-text);
    font-size: clamp(32px, 3.7vw, 50px);
    line-height: 1.055;
    font-weight: 780;
    letter-spacing: -.045em;
    text-wrap: balance;
}
.ls-hero .ls-intro { margin: 16px 0 0; color: var(--ls-muted); max-width: 75ch; font-size: clamp(14px, 1.4vw, 17px); line-height: 1.6; }

.ls-form {
    padding: clamp(16px, 2.5vw, 25px);
    border: 1px solid var(--ls-line);
    border-radius: 18px;
    background: var(--ls-surface);
}
.ls-modes {
    display: grid;
    grid-template-columns: 1fr 1.22fr 1fr;
    gap: 5px;
    margin: 0;
    padding: 4px;
    border: 1px solid var(--ls-line);
    border-radius: 12px;
    background: var(--ls-tint);
    min-width: 0;
}
.ls-modes label { position: relative; display: block; margin: 0; cursor: pointer; min-width: 0; }
.ls-modes input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; margin: 0; }
.ls-modes label span { display: grid; min-height: 40px; height: 100%; place-items: center; padding: 6px 4px; border: 1px solid transparent; border-radius: 8px; color: var(--ls-muted); text-align: center; font-size: clamp(11px, 1.2vw, 14px); line-height: 1.15; font-weight: 650; }
.ls-modes label:hover span { background: var(--ls-surface); color: var(--ls-link); }
.ls-modes input:checked + span { border-color: var(--ls-primary); background: var(--ls-accent-soft); color: var(--ls-link); }
.ls-modes input:focus-visible + span { outline: 2px solid var(--ls-focus); outline-offset: 2px; }

.ls-form .ls-mode-note { margin: 10px 0 16px; color: var(--ls-muted); font-size: 13px; line-height: 1.4; }
.ls-input-label { display: block; margin: 0 0 7px; color: var(--ls-text); font-size: 13px; font-weight: 650; }
.ls-url-row { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.ls-page input:not([type=radio], [type=checkbox]),
.ls-page select {
    display: block;
    min-width: 0;
    width: 100%;
    padding: 8px 12px;
    min-height: 44px;
    border: 1px solid var(--ls-line);
    border-radius: 10px;
    background: var(--ls-surface);
    color: var(--ls-text);
    box-shadow: none;
}
.ls-hero input::placeholder { color: #4c607b; opacity: 1; }
.ls-page .ls-url-row input { min-height: 51px; border-color: var(--ls-control-line); font-size: 16px; }
.ls-page .ls-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.15;
}
.ls-btn svg { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ls-btn--primary { flex: 0 0 auto; padding-inline: 17px; background: var(--ls-primary); color: #fff; }
.ls-btn--primary:hover:not(:disabled) { background: var(--ls-link); }
.ls-btn--subtle { background: var(--ls-tint); border-color: var(--ls-line); color: var(--ls-text); }
.ls-btn--subtle:hover:not(:disabled) { border-color: var(--ls-focus); }
.ls-form .ls-form-error { margin-top: 10px; color: var(--ls-error); font-size: 14px; line-height: 1.45; }
.ls-settings { margin-top: 13px; }
.ls-settings summary { width: fit-content; padding: 5px 2px; color: var(--ls-link); font-size: 13px; font-weight: 650; }
.ls-settings-inner { margin-top: 10px; }
.ls-settings-grid, .ls-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; }
.ls-settings-grid label { display: grid; gap: 5px; margin: 0; color: var(--ls-muted); font-size: 13px; }
.ls-options { margin-top: 10px; }
.ls-options label { display: flex; gap: 8px; align-items: center; min-height: 34px; margin: 0; color: var(--ls-muted); font-size: 13px; line-height: 1.25; cursor: pointer; }
.ls-options input[type=checkbox] { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--ls-primary); }
.ls-options input:disabled { opacity: .5; }
.ls-account-note { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; color: var(--ls-muted); font-size: 12px; line-height: 1.45; }

.ls-preview { min-width: 0; }
.ls-preview-frame { position: relative; padding: clamp(19px, 3vw, 32px); border: 1px solid var(--ls-accent-line); border-radius: 21px; background: var(--ls-accent-soft); }
.ls-preview-frame::before { position: absolute; inset: -1px 15% auto; height: 2px; background: linear-gradient(90deg, transparent, var(--ls-accent-line), transparent); content: ''; }
.ls-preview .ls-preview-label { color: var(--ls-text); font-size: 13px; font-weight: 650; }
.ls-panel { margin-top: 18px; padding: clamp(16px, 3vw, 32px); border: 1px solid var(--ls-line); border-radius: 20px; background: var(--ls-surface); }
.ls-panel-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 13px; }
.ls-panel-head > div:first-child { min-width: 0; }
.ls-panel-head p:not(.ls-state) { margin-top: 6px; color: var(--ls-muted); }
.ls-actions, .ls-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.ls-state { display: inline-block; padding: 2px 8px; border-radius: 5px; background: var(--ls-tint); color: var(--ls-link); font-size: 12px; font-weight: 700; }
.ls-progress .ls-state { margin-bottom: 7px; }
.ls-run-url { display: inline-block; margin-top: 6px; overflow-wrap: anywhere; font-size: 14px; }
.ls-progress .ls-progress-text { margin: 15px 0; padding: 10px 13px; border-left: 3px solid var(--ls-brand); background: var(--ls-tint); font-size: 14px; color: var(--ls-muted); line-height: 1.45; }
.ls-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ls-stats > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 9px 10px; border: 1px solid var(--ls-line); border-radius: 10px; }
.ls-stats dt { color: var(--ls-muted); font-size: 12px; line-height: 1.25; font-weight: 500; }
.ls-stats dd { font-variant-numeric: tabular-nums; font-weight: 750; font-size: 22px; line-height: 1.1; margin: 0; }

.ls-filters { margin: 18px 0; }
.ls-filters button, .ls-pagination button { min-height: 44px; padding: 6px 10px; border: 1px solid var(--ls-line); border-radius: 9px; background: var(--ls-surface); color: var(--ls-text); font-size: 13px; font-weight: 650; }
.ls-filters button[aria-pressed=true], .ls-pagination button[aria-current=page] { border-color: var(--ls-focus); background: var(--ls-tint); color: var(--ls-link); }
.ls-filters span { margin-left: 3px; color: var(--ls-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ls-results-tools { display: grid; grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr); gap: 10px; margin-bottom: 15px; }
.ls-results-tools label { display: grid; gap: 4px; min-width: 0; margin: 0; color: var(--ls-muted); font-size: 13px; }
.ls-results-tools input, .ls-results-tools select { font-size: 15px; }
.ls-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; text-align: left; }
.ls-table th, .ls-table td { padding: 11px 8px; overflow-wrap: anywhere; vertical-align: top; }
.ls-table th { color: var(--ls-muted); background: var(--ls-tint); }
.ls-table th:nth-child(1), .ls-table th:nth-child(2) { width: 28%; }
.ls-table th:nth-child(3) { width: 9%; }
.ls-table th:nth-child(5) { width: 12%; }
.ls-table td { border-bottom: 1px solid var(--ls-line); }
.ls-table small, .ls-result-card small { display: block; margin-top: 5px; color: var(--ls-muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.ls-code { display: inline-grid; place-items: center; min-width: 37px; padding: 4px 6px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 720; line-height: 1.1; white-space: nowrap; }
.ls-code--ok { background: #d9f5e8; color: #0e5c39; }
.ls-code--warn { background: #fff1cc; color: #694800; }
.ls-code--bad { background: #ffe2e9; color: var(--ls-error); }
.ls-code--pending { background: var(--ls-tint); color: var(--ls-muted); }
.ls-mobile-results { display: none; gap: 8px; }
.ls-result-card { display: grid; gap: 6px; padding: 11px; border: 1px solid var(--ls-line); border-radius: 10px; overflow-wrap: anywhere; font-size: 13px; }
.ls-result-card-head { display: flex; gap: 8px; align-items: center; font-weight: 650; }
.ls-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.ls-pagination:empty { display: none; }
.ls-empty { color: var(--ls-muted); padding: 12px 0; font-size: 14px; }

.ls-history summary { font-size: 18px; line-height: 1.25; font-weight: 720; }
.ls-history > p { margin-top: 9px; color: var(--ls-muted); }
.ls-history-list { margin-top: 12px; }
.ls-history-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 0; border-top: 1px solid var(--ls-line); overflow-wrap: anywhere; }
.ls-history-row small { display: block; color: var(--ls-muted); }

.ls-preview-browser {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 7px;
    color: var(--ls-muted);
    font: 600 14px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.ls-preview-browser span { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--ls-primary); }
.ls-example-rows { display: grid; gap: 5px; }
.ls-example-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 35px;
    padding: 5px 7px;
    border: 1px solid var(--ls-line);
    border-radius: 8px;
    background: var(--ls-surface);
    color: var(--ls-text);
    font-size: 11px;
    line-height: 1.3;
}
.ls-example-row code, .ls-preview-fix code { color: var(--ls-text); font-size: 12px; overflow-wrap: anywhere; }
.ls-example-row--problem { border-color: var(--ls-error-line); background: var(--ls-error-soft); }
.ls-preview-fix {
    margin-top: 12px;
    padding: 10px 11px;
    border-left: 2px solid var(--ls-primary);
    border-radius: 0 8px 8px 0;
    background: var(--ls-surface);
    color: var(--ls-muted);
    font-size: 12px;
    line-height: 1.5;
}
.ls-preview-fix a { display: inline-block; margin-top: 4px; }

.ls-progress .ls-state[data-status=completed] { background: #dff6ea; color: #155b39; }
.ls-progress .ls-state[data-status=failed] { background: #fce6ec; color: #8a3448; }
.ls-progress-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 18px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}
.ls-progress-steps li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ls-muted);
    font-size: 13px;
    font-weight: 650;
}
.ls-progress-steps li::before {
    display: inline-grid;
    width: 14px;
    height: 14px;
    place-items: center;
    border: 1px solid #a4b8d7;
    border-radius: 50%;
    content: '';
}
.ls-progress-steps li[data-state=current] { color: var(--ls-link); }
.ls-progress-steps li[data-state=current]::before { border: 4px solid var(--ls-accent-line); background: var(--ls-primary); }
.ls-progress-steps li[data-state=done]::before {
    border-color: #b4dfc9;
    background: #e1f4ea;
    color: #185e40;
    font-size: 10px;
    line-height: 1;
    content: '✓';
}

.ls-section-heading { display: grid; gap: 8px; }
.ls-section-heading p { max-width: 74ch; color: var(--ls-muted); font-size: 15px; line-height: 1.55; }
.ls-capabilities, .ls-related { margin-top: clamp(27px, 4vw, 55px); }
.ls-capability-grid, .ls-related-grid { display: grid; gap: 12px; margin-top: 17px; }
.ls-capability-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ls-capability {
    min-width: 0;
    padding: clamp(14px, 2vw, 23px);
    border: 1px solid var(--ls-line);
    border-radius: 16px;
    background: linear-gradient(155deg, var(--ls-surface) 51%, var(--ls-tint));
}
.ls-feature-mark {
    display: inline-grid;
    min-width: 36px;
    height: 32px;
    place-items: center;
    margin-bottom: 12px;
    padding-inline: 6px;
    border-radius: 7px;
    background: var(--ls-accent-soft);
    color: var(--ls-link);
    font: 730 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.ls-feature-mark--error { background: #fde7ed; color: #922942; }
.ls-feature-mark--redirect { background: #ffefcd; color: #765120; }
.ls-feature-mark--resource { background: #deeee7; color: #215942; }
.ls-capability p { margin-top: 8px; color: var(--ls-muted); font-size: 14px; line-height: 1.55; }

.ls-workflow {
    position: relative;
    margin-top: 22px;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid var(--ls-line);
    border-radius: 20px;
    background: var(--ls-accent-soft);
}
.ls-workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: ls-instructions;
}
.ls-workflow-grid li {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--ls-line);
    border-radius: 12px;
    background: var(--ls-surface);
    counter-increment: ls-instructions;
}
.ls-workflow-grid li::before {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    margin-bottom: 8px;
    border-radius: 6px;
    background: var(--ls-accent-soft);
    color: var(--ls-link);
    font-size: 12px;
    font-weight: 750;
    content: counter(ls-instructions);
}
.ls-workflow-grid h3 { font-size: 17px; }
.ls-workflow-grid p { margin-top: 6px; color: var(--ls-muted); font-size: 14px; line-height: 1.55; }

.ls-guide { margin-top: 22px; }
.ls-guide-grid { display: grid; grid-template-columns: minmax(155px, 24%) minmax(0, 1fr); gap: clamp(16px, 4vw, 52px); margin-top: 22px; align-items: start; }
.ls-guide-nav { display: grid; gap: 7px; padding: 16px; border: 1px solid var(--ls-line); border-radius: 12px; background: var(--ls-tint); }
.ls-guide-nav p { margin-bottom: 4px; font-size: 13px; font-weight: 750; }
.ls-guide-nav a { display: block; min-height: 26px; font-size: 13px; line-height: 1.5; }
.ls-guide-content { max-width: 78ch; }
.ls-guide-content section { min-width: 0; }
.ls-guide-content section + section { margin-top: 25px; border-top: 1px solid var(--ls-line); padding-top: 22px; }
.ls-guide-content h3[id] { scroll-margin-top: 24px; font-size: clamp(19px, 2.1vw, 23px); }
.ls-guide-content p { margin-top: 10px; color: var(--ls-muted); line-height: 1.63; }
.ls-guide-content strong { color: var(--ls-text); }
.ls-mode-guide, .ls-guide-codes { display: grid; row-gap: 1px; margin-top: 12px !important; border: 1px solid var(--ls-line); border-radius: 12px; overflow: hidden; background: var(--ls-line); }
.ls-mode-guide > div, .ls-guide-codes > div { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 4fr); gap: 10px; padding: 10px 12px; background: var(--ls-surface); }
.ls-mode-guide > div:nth-child(odd), .ls-guide-codes > div:nth-child(odd) { background: var(--ls-tint); }
.ls-mode-guide dt { align-self: start; color: var(--ls-text); font-size: 14px; font-weight: 730; }
.ls-guide-codes dt { align-self: start; color: var(--ls-link); font: 720 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.ls-mode-guide dd, .ls-guide-codes dd { margin: 0; color: var(--ls-muted); font-size: 14px; line-height: 1.55; }
.ls-guide-callout { margin: 14px 0; padding: 13px 16px; border-left: 3px solid var(--ls-brand); border-radius: 0 10px 10px 0; background: var(--ls-accent-soft); }
.ls-guide-callout p { margin-top: 3px; }

.ls-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ls-page .ls-related-card {
    position: relative;
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 16px 33px 16px 16px;
    border: 1px solid var(--ls-line);
    border-radius: 13px;
    background: var(--ls-surface);
    color: var(--ls-text);
    text-decoration: none;
}
.ls-related-card::after { position: absolute; top: 14px; right: 13px; color: var(--ls-link); content: '↗'; }
.ls-page .ls-related-card:hover { border-color: var(--ls-focus); }
.ls-related-card strong { font-size: 16px; }
.ls-related-card span { color: var(--ls-muted); font-size: 13px; line-height: 1.45; }
.ls-related-card .ls-related-type { color: var(--ls-link); font-size: 12px; font-weight: 670; }
.ls-faq h2 { margin-bottom: 14px; }
.ls-faq details { padding: 11px 0; border-top: 1px solid var(--ls-line); }
.ls-faq summary { color: var(--ls-text); font-weight: 650; }
.ls-faq details p { margin-top: 8px; max-width: 75ch; color: var(--ls-muted); line-height: 1.55; }

.ls-help {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 370px), 1fr));
    gap: 14px;
    margin-top: 20px;
}
.ls-support, .ls-share {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
    padding: clamp(17px, 2.8vw, 30px);
    border: 1px solid var(--ls-line);
    border-radius: 18px;
    background: var(--ls-surface);
    color: var(--ls-text);
}
.ls-share { background: var(--ls-tint); }
.ls-support p, .ls-share p { max-width: 54ch; color: var(--ls-muted); line-height: 1.55; }
.ls-support-actions, .ls-share-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 4px; }
.ls-support-actions .ls-btn { text-decoration: none; }
.ls-support-actions .ls-btn--support { border-color: var(--ls-accent-line); background: var(--ls-accent-soft); }
.ls-support-actions .ls-btn--support:hover { border-color: var(--ls-focus); }
.ls-share-actions > a, .ls-share-actions .ls-btn--copy {
    display: inline-flex;
    align-items: center;
    min-height: 43px;
    padding: 7px 12px;
    border: 1px solid var(--ls-line);
    border-radius: 8px;
    background: var(--ls-surface);
    color: var(--ls-link);
    font-size: 13px;
    font-weight: 670;
    text-decoration: none;
}
.ls-share-actions .ls-btn--copy { border-color: var(--ls-accent-line); background: var(--ls-accent-soft); color: var(--ls-link); }
.ls-share-actions > a:hover, .ls-share-actions .ls-btn--copy:hover { border-color: var(--ls-focus); background: var(--ls-accent-soft); }

.ls-toast { position: fixed; z-index: 1050; right: 15px; bottom: 15px; max-width: min(370px, calc(100vw - 30px)); padding: 11px 15px; border: 1px solid var(--ls-line); border-radius: 10px; background: var(--ls-surface); color: var(--ls-text); box-shadow: var(--ls-shadow); font-size: 14px; }
.ls-toast[data-error=true] { border-color: var(--ls-error-line); background: var(--ls-error-soft); color: var(--ls-error); }

/* Keep CTA text readable under the theme's global link color. */
#linkscanner .ls-support-actions .ls-btn--primary { color: #fff !important; }

@container (max-width: 775px) {
    .ls-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .ls-hero-content { max-width: 580px; }
    .ls-preview { max-width: 580px; }
    .ls-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ls-guide-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    .ls-guide-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ls-guide-nav p { grid-column: 1 / -1; }
    .ls-hero::before { inset-inline-start: 19%; }
    .ls-table-wrap { display: none; }
    .ls-mobile-results { display: grid; }
}
@container (max-width: 505px) {
    .ls-hero { border-radius: 18px; }
    .ls-hero-grid { margin-top: 18px; }
    .ls-hero h1 { font-size: clamp(25px, 7.8vw, 36px); text-wrap: wrap; }
    .ls-hero-heading { margin-top: 18px; }
    .ls-url-row { flex-direction: column; }
    .ls-btn--primary { min-height: 46px; justify-content: space-between; }
    .ls-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ls-results-tools, .ls-guide-codes > div, .ls-mode-guide > div, .ls-workflow-grid, .ls-related-grid { grid-template-columns: minmax(0, 1fr); }
    .ls-progress-steps { gap: 5px 11px; }
    .ls-capability h3 { font-size: 16px; overflow-wrap: anywhere; }
    .ls-guide-codes > div, .ls-mode-guide > div { gap: 3px; }
    .ls-options { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .ls-page * { scroll-behavior: auto !important; transition: none !important; }
}
