:root {
  color-scheme: dark;
  --color-primary: #A51224;
  --color-primary-hover: #C51F35;
  --color-background: #101014;
  --color-surface: #19191F;
  --color-elevated: #22222A;
  --color-text: #F7F7FA;
  --color-muted: #B6B6C2;
  --color-subtle: #858591;
  --color-border: #34343E;
  --color-success: #22A06B;
  --color-warning: #E6A23C;
  --color-error: #E5484D;
  --color-soft-red: rgba(165, 18, 36, .13);
  --shadow-card: 0 18px 56px rgba(0, 0, 0, .22);
  --radius-card: 18px;
  --radius-small: 10px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --color-background: #F7F6F5;
  --color-surface: #FFFFFF;
  --color-elevated: #F0EFF0;
  --color-text: #19191F;
  --color-muted: #555560;
  --color-subtle: #777783;
  --color-border: #E0DEE1;
  --color-soft-red: rgba(165, 18, 36, .08);
  --shadow-card: 0 18px 45px rgba(37, 25, 28, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--color-background); }
body { margin: 0; background: var(--color-background); color: var(--color-text); font-family: var(--font-sans); font-size: 15px; line-height: 1.6; transition: background-color .2s ease, color .2s ease; }
body, button, input, select { font-family: var(--font-sans); }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { color: inherit; }
a { color: inherit; }
button { font-size: inherit; }
::selection { background: rgba(197, 31, 53, .3); color: var(--color-text); }
:focus-visible { outline: 3px solid #E6A23C; outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 100; top: 12px; inset-inline-start: 12px; padding: 10px 14px; border-radius: 8px; background: var(--color-text); color: var(--color-background); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid color-mix(in srgb, var(--color-border) 68%, transparent); background: color-mix(in srgb, var(--color-background) 91%, transparent); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; width: min(1280px, calc(100% - 48px)); min-height: 76px; margin-inline: auto; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; text-decoration: none; }
.brand-mark { width: 37px; height: 37px; color: var(--color-primary-hover); }
.brand-wordmark { color: var(--color-text); font-size: 18px; font-weight: 760; letter-spacing: -.06em; }
.brand-wordmark span { color: var(--color-primary-hover); }
.primary-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); margin-inline: auto; }
.primary-nav a { position: relative; padding-block: 27px; color: var(--color-muted); font-size: 12px; font-weight: 650; letter-spacing: .01em; text-decoration: none; transition: color .18s ease; }
.primary-nav a::after { position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; border-radius: 2px; background: var(--color-primary-hover); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.primary-nav a:hover, .primary-nav a[aria-current="location"] { color: var(--color-text); }
.primary-nav a[aria-current="location"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--color-border); border-radius: 50%; background: transparent; color: var(--color-muted); cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.icon-button:hover { border-color: var(--color-primary-hover); background: var(--color-soft-red); color: var(--color-text); }
.theme-icon { width: 19px; height: 19px; }
.menu-toggle { display: none; }
.menu-toggle span { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 11px; font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--color-primary); color: #fff; box-shadow: 0 8px 20px rgba(165, 18, 36, .2); }
.button-primary:hover { background: var(--color-primary-hover); box-shadow: 0 10px 25px rgba(165, 18, 36, .29); }
.button-outline { border-color: var(--color-border); background: transparent; color: var(--color-text); }
.button-outline:hover { border-color: var(--color-primary-hover); background: var(--color-soft-red); }
.button-quiet { border-color: transparent; background: transparent; color: var(--color-muted); }
.button-quiet:hover { background: var(--color-elevated); color: var(--color-text); }
.button-small { min-height: 36px; padding-inline: 13px; border-radius: 9px; font-size: 11px; }
.install-button { white-space: nowrap; }
.section-anchor { scroll-margin-top: 76px; }
.hero { position: relative; overflow: hidden; padding: 88px 0 34px; }
.hero-glow { position: absolute; top: -180px; inset-inline-end: -150px; width: 640px; height: 540px; pointer-events: none; background: radial-gradient(ellipse at center, rgba(165, 18, 36, .18), transparent 66%); }
.hero-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .92fr); align-items: center; gap: clamp(42px, 7vw, 100px); }
.hero-copy { padding-block: 18px 32px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--color-primary-hover); font-size: 10px; font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--color-primary-hover); box-shadow: 0 0 0 4px var(--color-soft-red); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 650px; margin-bottom: 23px; font-size: clamp(48px, 6.5vw, 78px); font-weight: 730; letter-spacing: -.075em; line-height: .99; }
h1 span, .features-intro h2 span { color: var(--color-primary-hover); }
.hero-lede { max-width: 520px; margin-bottom: 24px; color: var(--color-muted); font-size: 16px; line-height: 1.75; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 23px; color: var(--color-muted); font-size: 11px; font-weight: 600; }
.hero-points > span { display: inline-flex; align-items: center; gap: 7px; }
.point-check { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: rgba(34, 160, 107, .15); color: var(--color-success); font-size: 10px; font-style: normal; }
.checker-card { padding: 26px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); }
.checker-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.checker-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; border: 1px solid rgba(197, 31, 53, .28); border-radius: 13px; background: var(--color-soft-red); color: var(--color-primary-hover); }
.checker-icon svg { width: 23px; height: 23px; }
.checker-heading h2 { margin: 0 0 3px; font-size: 16px; letter-spacing: -.03em; }
.checker-heading p { margin: 0; color: var(--color-muted); font-size: 11px; }
.field-label { display: block; margin-bottom: 8px; color: var(--color-text); font-size: 11px; font-weight: 700; }
.url-field-wrap { display: flex; align-items: center; min-height: 53px; gap: 7px; padding: 0 8px 0 14px; border: 1px solid var(--color-border); border-radius: 11px; background: var(--color-background); transition: border-color .18s ease, box-shadow .18s ease; }
.url-field-wrap:focus-within { border-color: var(--color-primary-hover); box-shadow: 0 0 0 3px rgba(197, 31, 53, .12); }
.input-link-icon { width: 18px; height: 18px; flex: 0 0 auto; color: var(--color-subtle); }
.url-field-wrap input { width: 100%; min-width: 0; padding: 11px 0; border: 0; outline: 0; background: transparent; color: var(--color-text); direction: ltr; font-size: 12px; }
.url-field-wrap input::placeholder { color: var(--color-subtle); opacity: 1; }
.url-field-wrap input:focus-visible { outline: 0; }
.field-action { flex: 0 0 auto; padding: 7px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--color-primary-hover); font-size: 10px; font-weight: 750; cursor: pointer; }
.field-action:hover { background: var(--color-soft-red); }
.field-action-muted { color: var(--color-muted); }
.field-help { margin: 7px 0 15px; color: var(--color-subtle); font-size: 10px; line-height: 1.5; }
.check-button { width: 100%; }
.check-button svg { width: 17px; height: 17px; }
.privacy-note { display: flex; gap: 9px; margin: 14px 0 0; color: var(--color-muted); font-size: 10px; line-height: 1.55; }
.privacy-note svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--color-success); }
.form-status { min-height: 0; margin: 0; color: var(--color-muted); font-size: 11px; }
.form-status:not(:empty) { margin-top: 12px; }
.form-status[data-state="error"] { color: var(--color-error); }
.form-status[data-state="success"] { color: var(--color-success); }
.url-field-wrap[aria-invalid="true"] { border-color: var(--color-error); }
.result-card { margin-top: 16px; padding: 17px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-background); animation: reveal .24s ease both; }
.result-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-chip { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border: 1px solid transparent; border-radius: 99px; font-size: 9px; font-weight: 750; line-height: 1.2; white-space: nowrap; }
.status-recognized, .status-local { border-color: rgba(34, 160, 107, .22); background: rgba(34, 160, 107, .1); color: var(--color-success); }
.status-pending { border-color: rgba(230, 162, 60, .24); background: rgba(230, 162, 60, .1); color: var(--color-warning); }
.result-source { max-width: 55%; overflow: hidden; color: var(--color-subtle); font-family: var(--font-mono); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.result-card h3 { margin: 12px 0 4px; font-size: 15px; }
.result-intro { margin: 0 0 12px; color: var(--color-muted); font-size: 11px; }
.result-details { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--color-border); }
.result-details > div { min-width: 0; padding: 9px 8px 8px 0; border-bottom: 1px solid var(--color-border); }
.result-details dt { color: var(--color-subtle); font-size: 9px; }
.result-details dd { overflow-wrap: anywhere; margin: 2px 0 0; color: var(--color-text); font-size: 10px; font-weight: 650; }
.result-details dd a { color: var(--color-primary-hover); }
.result-url-row { grid-column: 1 / -1; }
.result-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 12px; }
.result-options strong { font-size: 10px; }
.result-options p { margin: 4px 0 0; color: var(--color-muted); font-size: 9px; line-height: 1.5; }
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 12px; margin-top: 14px; }
.result-actions > span { color: var(--color-subtle); font-size: 9px; }
.hero-footnote { display: flex; align-items: center; gap: 12px; margin-top: 48px; color: var(--color-subtle); font-size: 10px; }
.footnote-line { width: 36px; height: 1px; background: var(--color-primary); }
.section { padding-block: 91px; }
.section-platforms { border-top: 1px solid var(--color-border); background: var(--color-surface); }
.section-heading { margin-bottom: 35px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading .eyebrow { margin-bottom: 12px; }
h2 { margin-bottom: 0; font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; letter-spacing: -.06em; line-height: 1.08; }
.section-heading-row > p { max-width: 350px; margin: 0 0 4px; color: var(--color-muted); font-size: 13px; line-height: 1.7; }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.platform-card { position: relative; display: flex; min-height: 142px; flex-direction: column; padding: 17px; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-background); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.platform-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--color-primary-hover) 60%, var(--color-border)); box-shadow: 0 10px 28px rgba(0,0,0,.09); }
.platform-card-top { display: flex; align-items: center; gap: 10px; }
.platform-glyph { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); color: var(--color-primary-hover); font-size: 11px; font-weight: 800; letter-spacing: -.04em; }
.platform-card h3 { margin: 0; font-size: 13px; letter-spacing: -.02em; }
.platform-card p { margin: 11px 0 13px; color: var(--color-muted); font-size: 10px; line-height: 1.5; }
.platform-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.platform-card .platform-capability { color: var(--color-subtle); font-size: 9px; }
.platform-action { display: inline-flex; align-items: center; gap: 5px; color: var(--color-primary-hover); font-size: 9px; font-weight: 750; text-decoration: none; }
.platform-action:hover { text-decoration: underline; }
.platform-action span { font-size: 12px; }
.section-note { display: flex; align-items: center; gap: 9px; margin: 22px 0 0; color: var(--color-subtle); font-size: 10px; }
.note-marker { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid var(--color-border); border-radius: 50%; font-size: 10px; font-weight: 700; }
.section-tools { background: var(--color-background); }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tool-card { display: flex; flex-direction: column; min-width: 0; padding: 21px; border: 1px solid var(--color-border); border-radius: 15px; background: var(--color-surface); }
.tool-card-wide { grid-column: span 2; }
.tool-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tool-symbol { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-elevated); color: var(--color-muted); }
.tool-symbol svg { width: 22px; height: 22px; }
.tool-symbol-red { border-color: rgba(197,31,53,.28); background: var(--color-soft-red); color: var(--color-primary-hover); }
.tool-card h3 { margin: 0 0 6px; font-size: 15px; letter-spacing: -.035em; }
.tool-card > p { max-width: 620px; margin: 0 0 14px; color: var(--color-muted); font-size: 11px; line-height: 1.65; }
.tool-footnote { display: block; margin-top: auto; padding-top: 12px; color: var(--color-subtle); font-size: 9px; }
.file-pick-button { align-self: flex-start; margin-top: 1px; }
.local-media-result { margin-top: 15px; padding: 13px; border: 1px solid var(--color-border); border-radius: 11px; background: var(--color-background); }
.local-media-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 15px; margin-bottom: 10px; color: var(--color-muted); font-size: 10px; }
.local-media-meta strong { overflow-wrap: anywhere; color: var(--color-text); }
.local-video, .local-audio { display: block; width: 100%; max-height: 300px; border-radius: 8px; background: #000; }
.local-audio { max-height: initial; }
.inline-status { margin: 8px 0 0; color: var(--color-muted); font-size: 10px; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--color-primary-hover); font-size: 10px; font-weight: 700; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.download-heading { display: flex; align-items: start; justify-content: space-between; gap: 22px; }
.download-heading h3 { margin-bottom: 6px; }
.download-heading p { max-width: 610px; margin: 0; color: var(--color-muted); font-size: 11px; }
.download-heading .text-button { flex: 0 0 auto; }
.download-empty { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 15px; border: 1px dashed var(--color-border); border-radius: 11px; }
.empty-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--color-elevated); color: var(--color-subtle); }
.download-empty strong { display: block; font-size: 11px; }
.download-empty p { margin: 2px 0 0; color: var(--color-subtle); font-size: 10px; }
.features-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px, 8vw, 110px); align-items: start; }
.section-features { border-block: 1px solid var(--color-border); background: var(--color-surface); }
.features-intro .eyebrow { margin-bottom: 13px; }
.features-intro h2 { margin-bottom: 17px; }
.features-intro > p:not(.eyebrow) { max-width: 390px; color: var(--color-muted); font-size: 13px; line-height: 1.75; }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--color-primary-hover); font-size: 12px; font-weight: 750; text-decoration: none; }
.text-link:hover { gap: 14px; }
.feature-list { border-top: 1px solid var(--color-border); }
.feature-row { display: grid; grid-template-columns: 38px 1fr 18px; align-items: start; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.feature-number { padding-top: 2px; color: var(--color-primary-hover); font-family: var(--font-mono); font-size: 10px; }
.feature-row h3 { margin: 0 0 5px; font-size: 13px; }
.feature-row p { margin: 0; color: var(--color-muted); font-size: 10px; line-height: 1.6; }
.feature-arrow { color: var(--color-subtle); font-size: 13px; }
.section-about { background: var(--color-background); }
.about-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 55px; align-items: center; }
.about-mark { display: grid; place-items: center; min-height: 270px; border: 1px solid var(--color-border); border-radius: 22px; background: radial-gradient(circle at 50% 50%, var(--color-soft-red), transparent 68%), var(--color-surface); color: var(--color-primary-hover); }
.about-mark svg { width: 140px; height: 140px; }
.about-copy .eyebrow { margin-bottom: 12px; }
.about-copy h2 { max-width: 640px; margin-bottom: 16px; }
.about-lede { max-width: 680px; margin-bottom: 24px; color: var(--color-muted); font-size: 13px; line-height: 1.8; }
.about-values { display: flex; flex-wrap: wrap; gap: 14px 25px; }
.about-values > div { display: flex; align-items: center; gap: 8px; color: var(--color-text); font-size: 10px; }
.value-line { width: 16px; height: 2px; background: var(--color-primary-hover); }
.contact-placeholder { display: flex; flex-wrap: wrap; gap: 9px; margin: 23px 0 0; color: var(--color-subtle); font-size: 10px; }
.contact-placeholder span:first-child { color: var(--color-muted); font-weight: 700; }
.section-settings { border-top: 1px solid var(--color-border); background: var(--color-surface); }
.settings-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 65px; align-items: start; }
.settings-intro .eyebrow { margin-bottom: 12px; }
.settings-intro h2 { margin-bottom: 14px; }
.settings-intro > p:not(.eyebrow) { max-width: 340px; color: var(--color-muted); font-size: 12px; line-height: 1.75; }
.settings-panel { overflow: hidden; border: 1px solid var(--color-border); border-radius: 15px; background: var(--color-background); }
.setting-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(135px, 190px); align-items: center; gap: 20px; padding: 16px 18px; border-bottom: 1px solid var(--color-border); }
.setting-row label { display: block; font-size: 11px; font-weight: 700; }
.setting-row p { margin: 3px 0 0; color: var(--color-subtle); font-size: 9px; line-height: 1.5; }
.setting-row select { width: 100%; min-height: 37px; padding: 0 10px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface); color: var(--color-text); font-size: 10px; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 5px; padding: 13px 14px 8px; }
.settings-status { min-height: 17px; margin: 0; padding: 0 18px 11px; color: var(--color-success); font-size: 10px; }
.offline-strip { padding-block: 20px; border-block: 1px solid var(--color-border); background: var(--color-background); }
.offline-strip-inner { display: flex; align-items: center; gap: 13px; }
.offline-indicator { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 0 4px rgba(34,160,107,.12); }
.offline-indicator[data-offline="true"] { background: var(--color-warning); box-shadow: 0 0 0 4px rgba(230,162,60,.12); }
.offline-strip-inner > div { flex: 1; }
.offline-strip strong { display: block; font-size: 11px; }
.offline-strip p { margin: 2px 0 0; color: var(--color-muted); font-size: 10px; }
.offline-label { color: var(--color-success); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.offline-label[data-offline="true"] { color: var(--color-warning); }
.site-footer { background: var(--color-surface); }
.footer-main { display: flex; justify-content: space-between; gap: 60px; padding-block: 38px 29px; }
.footer-brand { max-width: 300px; }
.footer-brand p { margin: 11px 0 0; color: var(--color-muted); font-size: 10px; }
.footer-links { display: flex; gap: clamp(38px, 8vw, 115px); }
.footer-links > div { display: flex; min-width: 100px; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-links strong { margin-bottom: 3px; color: var(--color-text); font-size: 10px; }
.footer-links a, .footer-link { padding: 0; border: 0; background: transparent; color: var(--color-muted); font-size: 10px; line-height: 1.5; text-decoration: none; cursor: pointer; }
.footer-links a:hover, .footer-link:hover { color: var(--color-primary-hover); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-block: 13px 19px; border-top: 1px solid var(--color-border); color: var(--color-subtle); font-size: 9px; }
.footer-bottom p { margin: 0; }
.footer-bottom p:last-child { text-align: end; }
.policy-dialog { width: min(540px, calc(100% - 32px)); max-height: min(80vh, 720px); padding: 0; border: 1px solid var(--color-border); border-radius: 17px; background: var(--color-surface); color: var(--color-text); box-shadow: 0 25px 80px rgba(0,0,0,.4); }
.policy-dialog::backdrop { background: rgba(5,5,8,.72); backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; border-bottom: 1px solid var(--color-border); }
.dialog-head h2 { font-size: 19px; }
.dialog-close { width: 34px; height: 34px; font-size: 20px; }
.dialog-body { padding: 19px 20px 22px; color: var(--color-muted); font-size: 12px; }
.dialog-body p:last-child { margin-bottom: 0; }
.toast { position: fixed; z-index: 50; right: 20px; bottom: 20px; max-width: min(390px, calc(100% - 40px)); padding: 11px 15px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-elevated); color: var(--color-text); box-shadow: var(--shadow-card); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.toast[data-visible="true"] { opacity: 1; transform: translateY(0); }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 980px) {
  .header-inner { gap: 22px; }
  .primary-nav { gap: 16px; }
  .primary-nav a { font-size: 11px; }
  .hero-layout { grid-template-columns: minmax(0, .9fr) minmax(390px, 1fr); gap: 35px; }
  .hero { padding-top: 70px; }
  .section { padding-block: 75px; }
  .settings-layout { gap: 38px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  .container { width: min(100% - 36px, 560px); }
  .header-inner { position: relative; width: calc(100% - 32px); min-height: 66px; gap: 10px; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-wordmark { font-size: 17px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 38px; height: 38px; margin-inline-start: auto; }
  .header-actions { gap: 7px; }
  .theme-toggle { width: 37px; height: 37px; }
  .install-button { min-height: 32px; padding-inline: 9px; font-size: 9px; }
  .primary-nav { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px; border: 1px solid var(--color-border); border-radius: 13px; background: var(--color-surface); box-shadow: var(--shadow-card); }
  .primary-nav[data-open="true"] { display: flex; flex-direction: column; }
  .primary-nav a { padding: 11px 12px; border-radius: 7px; font-size: 12px; }
  .primary-nav a:hover, .primary-nav a[aria-current="location"] { background: var(--color-elevated); }
  .primary-nav a::after { display: none; }
  .section-anchor { scroll-margin-top: 65px; }
  .hero { padding: 54px 0 26px; }
  .hero-layout { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { padding: 0; }
  h1 { max-width: 560px; font-size: clamp(46px, 13vw, 67px); }
  .hero-lede { max-width: 550px; font-size: 14px; }
  .checker-card { padding: 20px; }
  .hero-footnote { margin-top: 28px; }
  .section { padding-block: 62px; }
  .section-heading-row { display: block; }
  .section-heading-row > p { max-width: 520px; margin-top: 14px; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card-wide { grid-column: auto; }
  .features-layout, .about-layout, .settings-layout { grid-template-columns: 1fr; gap: 30px; }
  .features-intro > p:not(.eyebrow) { max-width: 560px; }
  .about-layout { gap: 24px; }
  .about-mark { min-height: 185px; }
  .about-mark svg { width: 110px; height: 110px; }
  .settings-layout { gap: 18px; }
  .footer-main { gap: 35px; }
  .footer-links { gap: 36px; }
}
@media (max-width: 500px) {
  .container { width: calc(100% - 30px); }
  .header-inner { width: calc(100% - 26px); }
  .header-actions { gap: 5px; }
  .brand { gap: 7px; }
  .brand-wordmark { font-size: 16px; }
  .install-button { padding-inline: 8px; }
  .hero { padding-top: 42px; }
  .eyebrow { font-size: 8px; letter-spacing: .12em; }
  .hero-points { gap: 9px 15px; font-size: 9px; }
  .checker-card { padding: 17px; }
  .checker-heading { gap: 10px; }
  .checker-heading h2 { font-size: 14px; }
  .checker-heading p { font-size: 9px; }
  .url-field-wrap { flex-wrap: wrap; min-height: auto; padding: 9px 10px; }
  .url-field-wrap input { flex-basis: calc(100% - 28px); }
  .input-link-icon { align-self: center; }
  .field-action { margin-inline-start: 24px; }
  .field-action-muted { margin-inline-start: 0; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-card { min-height: 125px; }
  h2 { font-size: clamp(29px, 9vw, 38px); }
  .result-details { grid-template-columns: 1fr; }
  .result-details > div { grid-column: 1; }
  .result-options { grid-template-columns: 1fr; }
  .result-actions { align-items: flex-start; flex-direction: column; }
  .download-heading { flex-direction: column; gap: 8px; }
  .setting-row { grid-template-columns: 1fr; gap: 9px; padding: 13px 14px; }
  .setting-row select { max-width: 220px; }
  .settings-actions { padding-inline: 8px; }
  .settings-actions .button { flex: 1 1 auto; }
  .offline-strip-inner { align-items: flex-start; }
  .offline-label { margin-inline-start: auto; }
  .footer-main { flex-direction: column; padding-block: 30px 24px; }
  .footer-links { justify-content: flex-start; gap: 52px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .footer-bottom p:last-child { text-align: start; }
  .toast { right: 15px; bottom: 15px; }
}
:root[dir="rtl"] .primary-nav a::after { transform-origin: right; }
:root[dir="rtl"] .result-details dd, :root[dir="rtl"] .local-media-meta { direction: ltr; text-align: left; }
:root[dir="rtl"] .url-field-wrap input { text-align: left; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.offline-page { display: grid; align-content: center; min-height: 100vh; max-width: 720px; }
.offline-eyebrow { margin-top: 48px; }
.offline-title { margin-block: 0 22px; font-size: clamp(42px, 8vw, 68px); }
.offline-title span { color: var(--color-primary-hover); }
.offline-copy { max-width: 560px; margin-bottom: 25px; color: var(--color-muted); }
.offline-retry { justify-self: start; }

.result-option { min-width: 0; }
.result-option .field-label { margin: 0 0 4px; font-size: 10px; }
.result-option > strong { display: block; margin-bottom: 7px; font-size: 10px; }
.disabled-select { width: 100%; min-height: 32px; padding: 0 8px; border: 1px solid var(--color-border); border-radius: 7px; background: var(--color-elevated); color: var(--color-muted); font-size: 9px; }
.disabled-select:disabled { cursor: not-allowed; opacity: .72; }
.potential-formats { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 5px; }
.format-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border: 1px solid var(--color-border); border-radius: 5px; color: var(--color-subtle); font-family: var(--font-mono); font-size: 8px; opacity: .68; }
.format-chip small { color: var(--color-muted); font-family: var(--font-sans); font-size: 7px; }

.privacy-copy { display: flex; flex-direction: column; gap: 4px; }
.privacy-caution { color: var(--color-muted); font-size: 9px; line-height: 1.5; }
:root:not([lang="ur"]) .privacy-caution [lang="ur"],
:root[lang="ur"] .privacy-caution [lang="en"] { display: none; }
:root:not([data-offline-language="ur"]) [data-offline-lang="ur"],
:root[data-offline-language="ur"] [data-offline-lang="en"] { display: none; }
:root[dir="rtl"] .offline-page { text-align: right; }
:root[dir="rtl"] .offline-retry { justify-self: end; }

:root:not([lang="ur"]) .download-limit [lang="ur"],
:root[lang="ur"] .download-limit [lang="en"] { display: none; }

.download-blocked-note { flex-basis: 100%; color: var(--color-muted); font-size: 9px; line-height: 1.55; }
:root:not([lang="ur"]) .download-blocked-note [lang="ur"],
:root[lang="ur"] .download-blocked-note [lang="en"] { display: none; }
