:root {
  --red: #c8102e;
  --red-dark: #9f0d25;
  --ink: #202124;
  --muted: #61656b;
  --line: #dfe1e5;
  --surface: #f5f6f7;
  --white: #fff;
  --header-height: 62px;
  --shadow: 0 8px 22px rgba(20, 23, 28, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 12px); }
body { margin: 0; color: var(--ink); background: var(--white); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; font-size: 16px; line-height: 1.55; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #1769aa; outline-offset: 3px; }
.container { width: min(100% - 32px, 1180px); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding: 48px 0; }
.section-muted { background: var(--surface); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; color: var(--white); background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-height); background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(20, 23, 28, .04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; width: 120px; min-height: 44px; }
.brand img { width: 120px; aspect-ratio: 5796 / 1825; object-fit: contain; }
.menu-toggle { position: relative; z-index: 102; display: grid; align-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #303338; border-radius: 1px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.primary-nav { position: fixed; top: 0; right: 0; z-index: 101; width: min(86vw, 350px); height: 100dvh; padding: 84px 24px 24px; background: var(--white); box-shadow: -12px 0 32px rgba(0,0,0,.14); }
.primary-nav ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: flex; align-items: center; min-height: 48px; padding: 10px 6px; text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 650; }
.primary-nav a[aria-current="page"] { color: var(--red); }
.menu-overlay { position: fixed; inset: 0; z-index: 99; background: rgba(20, 23, 28, .52); }

.hero { padding: 20px 0 24px; background: var(--white); }
.hero-grid { display: grid; gap: 16px; }
.eyebrow { margin: 0 0 6px; color: var(--red); font-size: .75rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(2rem, 9.5vw, 2.5rem); font-weight: 740; line-height: 1.15; letter-spacing: -.03em; }
h2 { margin: 0; font-size: clamp(1.55rem, 7vw, 2rem); line-height: 1.25; letter-spacing: -.025em; }
h3 { line-height: 1.3; }
.hero-lead { margin: 12px 0 0; color: #3d4045; font-size: 1rem; font-weight: 600; line-height: 1.5; }
.hero-note { margin: 5px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.65; }
/* TODO: Replace with approved HGC lifestyle hero image. */
.hero-visual { display: none; aspect-ratio: 4 / 3; align-items: end; padding: 20px; color: #575b60; background: #e7eaec; border: 1px solid #d9dcdf; }
.hero-visual span { font-size: .78rem; }
.estate-search-section { position: relative; z-index: 2; padding: 16px 0 24px; background: var(--surface); }
.search-panel { padding: 20px 18px; background: var(--white); border: 1px solid #e5e7e9; border-radius: 6px; box-shadow: var(--shadow); }
.search-panel > h2 { margin-bottom: 14px; font-size: 1.3rem; font-weight: 720; }
.search-controls { display: grid; gap: 10px; }
input[type="search"] { width: 100%; min-height: 54px; padding: 0 15px; color: var(--ink); background: var(--white); border: 1px solid #9ca1a7; border-radius: 4px; font-size: 1rem; }
input[type="search"]::placeholder { color: #6c7075; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 18px; border: 1px solid transparent; border-radius: 4px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; }
.button-primary { color: var(--white); background: var(--red); border-color: var(--red); }
.button-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button:active { transform: translateY(1px); }
.button-light { color: var(--red); background: var(--white); border-color: var(--white); }
.button-dark { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button-outline { color: var(--red); background: var(--white); border-color: var(--red); }
.form-status:empty, .cta-status:empty { display: none; }
.form-status, .cta-status { margin: 10px 0 0; color: var(--red-dark); font-size: .88rem; }
.search-panel .button-primary { min-height: 54px; font-weight: 680; }
input[type="search"]:focus { border-color: var(--red); outline: 2px solid rgba(200, 16, 46, .18); outline-offset: 1px; }
.popular-searches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; font-size: .78rem; }
.popular-searches span { width: 100%; color: var(--muted); }
.popular-searches button { min-height: 44px; padding: 7px 13px; color: #484c51; background: #f6f7f8; border: 1px solid #e1e3e5; border-radius: 4px; font-size: .82rem; cursor: pointer; }

.quick-actions { padding-block: 28px; background: var(--white); }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.action-grid a { display: flex; min-width: 0; min-height: 92px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 14px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-size: .88rem; font-weight: 750; box-shadow: 0 3px 12px rgba(20,23,28,.04); }
.action-icon { display: grid; place-items: center; width: 34px; height: 30px; color: var(--red); font-size: .7rem; font-weight: 850; border-bottom: 3px solid var(--red); }
.action-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.action-icon-text { align-content: end; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; flex: 0 0 auto; color: var(--red); font-size: .82rem; font-weight: 750; }
.estate-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 276px); gap: 12px; overflow-x: auto; padding: 2px 16px 18px; margin-inline: -16px; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.estate-card { display: flex; min-height: 210px; flex-direction: column; padding: 20px; background: var(--white); border-top: 4px solid var(--red); box-shadow: var(--shadow); scroll-snap-align: start; }
.estate-card p { margin: 0 0 12px; color: var(--muted); font-size: .78rem; }
.estate-card h3 { margin: 0; font-size: 1.28rem; }
.estate-card span { margin: 12px 0; color: var(--red-dark); font-size: .88rem; font-weight: 700; }
.estate-card a { min-height: 44px; margin-top: auto; padding-top: 12px; font-weight: 750; }
.marketing-card { display: grid; gap: 22px; padding: 28px 22px; color: var(--white); background: var(--red); border-left: 6px solid var(--ink); }
.marketing-card > * { min-width: 0; max-width: 100%; }
.marketing-card .eyebrow { color: var(--white); opacity: .85; }
.marketing-card p:not(.eyebrow) { margin: 12px 0 0; }
.marketing-card .button { margin-top: 20px; }
/* TODO: Replace with approved HGC lifestyle image. */
.marketing-visual { display: flex; align-items: end; min-height: 160px; aspect-ratio: 16 / 9; padding: 16px; color: #45484d; background: #f1f2f3; border: 1px solid rgba(255,255,255,.6); }
.marketing-visual span { font-size: .78rem; }
.plan-grid, .benefit-grid, .article-grid { display: grid; gap: 14px; }
.plan-card { display: flex; flex-direction: column; padding: 22px; background: var(--white); border: 1px solid var(--line); }
.plan-speed { margin: 0; color: var(--red); font-size: 1.55rem; font-weight: 850; }
.plan-card h3 { margin: 5px 0; }
.plan-card > p:not(.plan-speed) { margin: 4px 0 14px; color: var(--muted); }
.plan-card strong { margin-bottom: 18px; font-size: .93rem; }
.plan-card .button { margin-top: auto; }
.benefit-grid article { padding: 20px 0; border-bottom: 1px solid var(--line); }
.benefit-grid span { color: var(--red); font-size: .78rem; font-weight: 850; }
.benefit-grid h3 { margin: 6px 0; font-size: 1.06rem; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
.process-section { color: var(--white); background: var(--ink); }
.process-section .eyebrow { color: #ff7b91; }
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 14px; min-height: 112px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 40px; bottom: 0; left: 19px; width: 1px; background: #5a5e63; }
.steps span { position: relative; z-index: 1; display: grid; place-items: center; align-self: start; width: 40px; height: 40px; color: var(--white); background: var(--red); border-radius: 50%; font-size: .78rem; font-weight: 800; }
.steps h3 { margin: 7px 0 4px; }
.steps p { margin: 0; color: #c9cbd0; font-size: .9rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-item button { position: relative; width: 100%; min-height: 58px; padding: 17px 42px 17px 0; color: var(--ink); background: transparent; border: 0; font-weight: 750; text-align: left; cursor: pointer; }
.faq-item button::after { content: "+"; position: absolute; top: 12px; right: 4px; color: var(--red); font-size: 1.45rem; }
.faq-item button[aria-expanded="true"]::after { content: "−"; }
.faq-answer p { margin: 0; padding: 0 36px 18px 0; color: var(--muted); }
.article-grid article { padding: 22px; background: var(--white); border: 1px solid var(--line); }
.article-grid span { color: var(--red); font-size: .75rem; font-weight: 800; }
.article-grid h3 { margin: 10px 0; font-size: 1.08rem; }
.article-grid p { color: var(--muted); font-size: .9rem; }
.article-grid a { display: inline-flex; align-items: center; min-height: 44px; color: var(--red); font-weight: 750; }
.final-cta { background: var(--white); }
.cta-panel { display: grid; gap: 12px; padding: 26px 20px; background: #f1f2f3; border-left: 5px solid var(--red); }
.cta-panel p:not(.eyebrow):not(.cta-status) { margin: 10px 0 4px; color: var(--muted); }
.site-footer { padding: 42px 0 calc(28px + env(safe-area-inset-bottom)); color: #dddfe3; background: #17191c; }
.footer-grid { display: grid; gap: 34px; }
.footer-grid img { width: 112px; aspect-ratio: 5796 / 1825; object-fit: contain; filter: none; background: var(--white); padding: 5px; }
.footer-grid p { font-size: .84rem; }
.footer-grid .disclaimer { color: #aeb1b6; font-size: .75rem; }
.footer-grid h2 { font-size: 1rem; }
.footer-grid ul { margin: 10px 0 0; padding: 0; list-style: none; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 44px; color: #dddfe3; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #383b40; font-size: .74rem; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.mobile-sticky-cta { position: fixed; right: 0; bottom: 0; left: 0; z-index: 90; display: grid; grid-template-columns: 42fr 58fr; gap: 8px; padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid #e1e3e5; box-shadow: 0 -4px 14px rgba(20,23,28,.07); }
.mobile-sticky-cta .button { min-height: 48px; padding-inline: 8px; font-size: .84rem; font-weight: 680; }
.mobile-sticky-cta .button-light { color: var(--red); background: #fff; border-color: #d7dade; }

/* Shared main-page components */
.page-hero { padding: 34px 0; background: var(--white); border-bottom: 1px solid #eceeef; }
.page-hero h1 { max-width: 780px; font-size: clamp(1.9rem, 8.4vw, 2.55rem); }
.page-hero > .container > p:last-child { max-width: 720px; margin: 14px 0 0; color: var(--muted); font-size: 1rem; }
.page-hero-compact { padding-block: 28px; }
.page-search label:not(.visually-hidden) { display: block; margin-bottom: 8px; color: #45494e; font-size: .88rem; font-weight: 650; }
.search-autocomplete { position: relative; min-width: 0; }
.search-autocomplete > input { display: block; }
.search-results { position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 20; max-height: min(352px, 48vh); overflow-y: auto; background: var(--white); border: 1px solid #d9dcdf; border-radius: 4px; box-shadow: 0 10px 24px rgba(20, 23, 28, .12); }
.search-result-item { display: grid; gap: 3px; width: 100%; min-height: 58px; padding: 10px 14px; color: var(--ink); background: var(--white); border: 0; border-bottom: 1px solid #eceeef; text-align: left; cursor: pointer; }
.search-result-item:last-child { border-bottom: 0; }
.search-result-item:hover, .search-result-item.is-active, .search-result-item[aria-selected="true"] { background: #f7f1f2; }
.search-result-item strong { font-size: .95rem; }
.search-result-item span { color: var(--muted); font-size: .78rem; }
.search-message { padding: 16px 14px; }
.search-message p { margin: 0; color: var(--muted); font-size: .88rem; }
.search-whatsapp-link { min-height: 44px; margin-top: 8px; padding: 7px 0; color: var(--red); background: transparent; border: 0; font-weight: 700; text-align: left; cursor: pointer; }
.search-status { min-height: 1.3em; margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.search-status:empty { min-height: 0; margin-top: 0; }
.search-selection { margin-top: 14px; padding: 14px; background: #f7f8f9; border-left: 4px solid var(--red); }
.search-selection p { margin: 0 0 10px; font-weight: 700; }
.search-selection .button { width: 100%; }
.search-selection .button:disabled { color: #70747a; background: #eceeef; border-color: #d5d8db; cursor: not-allowed; }
.filter-groups { display: grid; gap: 24px; }
.filter-groups h3 { margin: 0 0 10px; font-size: .95rem; }
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.filter-bar button { flex: 0 0 auto; min-height: 44px; padding: 8px 16px; color: #4b4f54; background: var(--white); border: 1px solid #d8dbde; border-radius: 4px; font-weight: 650; cursor: pointer; scroll-snap-align: start; }
.filter-bar button.is-active, .filter-bar button[aria-pressed="true"] { color: var(--white); background: var(--red); border-color: var(--red); }
.ui-note { margin: 14px 0 0; color: var(--muted); font-size: .78rem; }
.content-grid { display: grid; gap: 14px; }
.estate-grid .estate-card { min-height: 200px; }
.compact-list { display: grid; border-top: 1px solid var(--line); }
.compact-list a { display: grid; gap: 3px; min-height: 68px; align-content: center; padding: 10px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.compact-list span { color: var(--muted); font-size: .8rem; }
.info-card, .offer-card { padding: 22px; background: var(--white); border: 1px solid var(--line); }
.info-card h2, .info-card h3, .offer-card h3 { margin: 0 0 10px; }
.info-card p, .offer-card p { color: var(--muted); }
.offer-card { display: flex; min-height: 235px; flex-direction: column; }
.offer-card > span { color: var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .06em; }
.offer-card strong { margin: 10px 0 20px; }
.offer-card .button { margin-top: auto; }
.route-card { display: block; min-height: 180px; padding: 22px; background: var(--surface); border-left: 4px solid var(--red); text-decoration: none; }
.route-card > span { color: var(--red); font-size: .76rem; font-weight: 800; }
.route-card h3 { margin: 14px 0 8px; }
.route-card p { margin: 0; color: var(--muted); }
.use-case-grid .info-card { min-height: 150px; }
.faq-categories { display: grid; gap: 38px; }
.faq-categories > section > h2 { margin-bottom: 14px; font-size: 1.35rem; }
.contact-methods { display: grid; gap: 14px; }
.contact-methods .button { width: 100%; margin-top: 10px; }
.contact-placeholder { color: var(--ink) !important; font-weight: 700; }
.lead-form { padding: 20px 18px; background: var(--surface); border: 1px solid #e2e4e6; }
.form-grid { display: grid; gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field label { font-size: .88rem; font-weight: 650; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 50px; padding: 11px 13px; color: var(--ink); background: var(--white); border: 1px solid #9ca1a7; border-radius: 4px; font: inherit; font-size: 1rem; }
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--red); outline: 2px solid rgba(200,16,46,.18); outline-offset: 1px; }
.consent-field { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; min-height: 44px; margin: 20px 0; padding-block: 4px; font-size: .88rem; cursor: pointer; }
.consent-field input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }
.consent-field a { color: var(--red); }
.form-submit { width: 100%; min-height: 52px; }
.form-submit:disabled { cursor: wait; opacity: .72; }
.field-error { margin: -10px 0 8px; color: var(--red-dark); font-size: .82rem; font-weight: 650; }
.form-summary { margin: 0 0 18px; padding: 12px 14px; color: var(--red-dark); background: #fff3f5; border-left: 4px solid var(--red); font-weight: 700; }
.form-error { color: var(--red-dark); }
.form-success { margin-top: 20px; padding: 24px 20px; background: #f2f8f4; border-left: 5px solid #2f7650; }
.form-success h3 { margin: 0 0 8px; }
.form-success p { margin: 0 0 18px; color: #43534a; }
.honeypot-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.legal-layout { padding-block: 32px 56px; }
.legal-nav { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 28px; padding-bottom: 10px; }
.legal-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: .84rem; }
.legal-content { max-width: 800px; }
.legal-content section { padding: 0 0 28px; }
.legal-content section + section { padding-top: 28px; border-top: 1px solid var(--line); }
.legal-content h2 { margin-bottom: 12px; font-size: 1.35rem; }
.legal-content p { margin: 0; color: #4f5358; line-height: 1.75; }
.legal-todo { max-width: 800px; margin: 0 0 28px; padding: 14px 16px; color: #5c4b20; background: #fff8e5; border-left: 4px solid #c88b10; font-size: .85rem; }

/* Dynamic estate detail page */
.breadcrumb { padding: 12px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .78rem; }
.breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumb li:not(:last-child)::after { content: ">"; margin-left: 8px; color: #8b8f94; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.estate-hero { padding: 34px 0 38px; background: var(--white); border-bottom: 1px solid var(--line); }
.estate-title-row { display: grid; gap: 12px; align-items: start; }
.estate-title-row h1 { font-size: clamp(1.9rem, 9vw, 2.55rem); }
.estate-name-en { margin: 8px 0 0; color: var(--muted); font-weight: 650; }
.estate-intro { max-width: 720px; margin: 18px 0 22px; color: #45494e; }
.estate-badge { display: inline-flex; width: fit-content; min-height: 32px; align-items: center; padding: 5px 10px; color: var(--red-dark); background: #fbecef; border: 1px solid #efc4cc; font-size: .78rem; font-weight: 750; }
.estate-meta { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.estate-meta div { display: grid; grid-template-columns: minmax(88px, 34%) 1fr; gap: 14px; min-height: 58px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.estate-meta dt, .offer-meta dt { color: var(--muted); font-size: .82rem; font-weight: 650; }
.estate-meta dd, .offer-meta dd { min-width: 0; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.offer-list { display: grid; gap: 14px; }
.offer-card { min-height: 0; border-top: 4px solid var(--red); }
.offer-card.is-featured { box-shadow: var(--shadow); }
.offer-card .offer-speed { margin: 0 0 4px; color: var(--red); font-size: 1.45rem; font-weight: 850; }
.offer-card .offer-title { margin: 4px 0 0; color: var(--ink); font-weight: 700; }
.offer-price { margin: 18px 0 12px !important; color: var(--red-dark) !important; font-size: 1.18rem; font-weight: 800; }
.offer-meta { display: grid; gap: 8px; margin: 8px 0 20px; }
.offer-meta div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; }
.offer-card .button { width: 100%; }
.related-estates { display: grid; gap: 14px; }
.related-estates .estate-card { min-height: 190px; }
.empty-state { padding: 24px 20px; background: var(--white); border-left: 5px solid var(--red); box-shadow: var(--shadow); }
.empty-state h1, .empty-state h3 { margin: 0 0 10px; }
.empty-state p:not(.eyebrow):not(.cta-status) { margin: 0 0 20px; color: var(--muted); }
.button-row { display: grid; gap: 10px; }
.error-page { min-height: 52vh; background: var(--surface); }

/* Consent UI is only injected when a valid analytics vendor ID is configured. */
.tracking-consent { position: fixed; z-index: 1200; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); left: 10px; max-height: calc(100vh - 100px); overflow-y: auto; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); box-shadow: 0 12px 34px rgba(23, 26, 29, .2); }
.tracking-consent[hidden] { display: none; }
.tracking-consent-inner { padding: 16px; }
.tracking-consent p { margin: 0; font-size: .88rem; line-height: 1.55; }
.tracking-preferences { display: grid; gap: 8px; margin-top: 14px; padding: 12px; background: var(--surface); }
.tracking-preferences label { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; font-size: .86rem; }
.tracking-preferences input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); }
.tracking-consent-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
.tracking-consent-actions button, .tracking-settings-button { min-height: 44px; padding: 9px 13px; color: var(--ink); background: var(--white); border: 1px solid #8f9499; border-radius: 3px; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.tracking-consent-actions [data-consent-all] { color: var(--white); background: var(--red); border-color: var(--red); }
.tracking-settings-button { margin-left: 10px; }

@media (min-width: 768px) {
  .tracking-consent { right: 20px; bottom: 20px; left: auto; width: min(520px, calc(100vw - 40px)); }
  .tracking-consent-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
