:root {
    --navy: #012d47;
    --navy-deep: #001d2f;
    --navy-soft: #0b4561;
    --aqua: #009abf;
    --teal: #1896a9;
    --gray: #c6c6c6;
    --paper: #f7f8f7;
    --white: #ffffff;
    --ink: #102a38;
    --muted: #5b6b74;
    --line: #dce3e6;
    --success: #087a55;
    --danger: #a83434;
    --warning: #8a5a00;
    --shadow: 0 26px 70px rgba(1, 45, 71, .12);
    --radius: 24px;
    --radius-small: 14px;
    --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.public-shell { background: var(--white); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--navy);
    border-radius: 8px;
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-notice {
    padding: 10px 24px;
    color: var(--white);
    background: var(--teal);
    text-align: center;
    font-size: .9rem;
    font-weight: 700;
}

.site-header {
    position: relative;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 94px;
    padding: 18px max(28px, calc((100vw - var(--max)) / 2));
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid rgba(1, 45, 71, .08);
}
.brand, .admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.brand strong, .admin-brand strong {
    display: block;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    line-height: 1;
    letter-spacing: -.02em;
}
.brand small, .admin-brand small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.brand-wave { display: inline-flex; width: 52px; height: 42px; align-items: center; position: relative; }
.brand-wave i {
    position: absolute;
    width: 48px;
    height: 14px;
    border-top: 5px solid var(--aqua);
    border-radius: 50%;
    transform: rotate(-6deg);
}
.brand-wave i:nth-child(1) { top: 5px; left: 0; }
.brand-wave i:nth-child(2) { top: 16px; left: 3px; border-color: var(--teal); }
.brand-wave i:nth-child(3) { top: 27px; left: 7px; border-color: var(--navy); }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a {
    color: var(--navy);
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
}
.primary-nav a:hover { color: var(--aqua); }
.primary-nav .nav-contact {
    padding: 11px 19px;
    color: var(--white);
    background: var(--navy);
    border-radius: 999px;
}
.primary-nav .nav-contact:hover { color: var(--white); background: var(--navy-soft); }
.primary-nav .language-link { padding-left: 24px; border-left: 1px solid var(--line); color: var(--teal); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--navy); }

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr);
    min-height: 690px;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 10%, rgba(0, 154, 191, .2), transparent 34%),
        linear-gradient(135deg, var(--navy-deep), var(--navy) 62%, #064666);
}
.hero::before, .page-hero::before {
    content: "";
    position: absolute;
    inset: auto -10% -45% 30%;
    height: 72%;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    transform: rotate(-8deg);
    box-shadow: 0 -30px 0 rgba(24, 150, 169, .08), 0 -62px 0 rgba(0, 154, 191, .07);
}
.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 740px;
    padding: 90px 5vw 78px max(34px, calc((100vw - var(--max)) / 2));
}
.eyebrow {
    margin: 0 0 18px;
    color: var(--teal);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .19em;
    text-transform: uppercase;
}
.eyebrow.light { color: #7ad6e3; }
.hero h1, .page-hero h1 {
    max-width: 820px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.1rem, 6.5vw, 6.5rem);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: .95;
}
.hero-lede, .page-hero p:not(.eyebrow) {
    max-width: 640px;
    margin: 30px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}
.button-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }
.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: .91rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--navy); background: var(--white); }
.button-ghost-light { color: var(--white); border-color: rgba(255, 255, 255, .45); background: transparent; }
.button-primary { color: var(--white); background: var(--navy); }
.button-primary:hover { background: var(--navy-soft); }
.button-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 58px; color: rgba(255, 255, 255, .62); font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 600px; padding: 70px 5vw 70px 20px; }
.product-stage {
    position: relative;
    display: flex;
    width: min(470px, 92%);
    aspect-ratio: .92;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 46% 54% 50% 50%;
    background: radial-gradient(circle, rgba(0, 154, 191, .22), rgba(255, 255, 255, .025) 62%, transparent 63%);
}
.controller-silhouette {
    position: relative;
    width: 218px;
    height: 272px;
    padding: 35px 32px 28px;
    color: var(--navy);
    background: #c6c6c6;
    border: 7px solid #b5b8b9;
    border-radius: 24px;
    box-shadow: 28px 34px 60px rgba(0, 0, 0, .27), inset -10px -12px 20px rgba(0, 0, 0, .07);
    transform: rotate(6deg) perspective(900px) rotateY(-12deg);
}
.controller-silhouette > span { display: block; margin-bottom: 18px; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; line-height: .9; text-align: center; }
.key-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.key-grid i { display: block; aspect-ratio: 1; background: var(--white); border: 2px solid var(--teal); border-radius: 8px; box-shadow: 0 3px 4px rgba(0, 0, 0, .11); }
.photo-status { position: absolute; right: -10px; bottom: 25px; max-width: 200px; padding: 11px 15px; color: rgba(255, 255, 255, .75); background: rgba(0, 29, 47, .75); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; font-size: .73rem; }

.section { max-width: var(--max); margin: 0 auto; padding: 110px 30px; }
.section-heading.narrow { max-width: 800px; }
.section-heading h2, .story-copy h2, .owner-callout h2, .truth-panel h2, .admin-panel h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4.5vw, 4.2rem);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1.04;
}
.section-heading > p:not(.eyebrow), .story-copy p, .truth-panel p { max-width: 690px; color: var(--muted); font-size: 1.06rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 70px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-grid article { min-height: 280px; padding: 36px; background: var(--white); }
.feature-number { color: var(--aqua); font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.feature-grid h3 { margin: 70px 0 12px; color: var(--navy); font-family: Georgia, serif; font-size: 1.65rem; }
.feature-grid p { margin: 0; color: var(--muted); }

.split-story { display: grid; grid-template-columns: 1fr 1fr; max-width: none; padding: 0; background: var(--paper); }
.story-panel { min-height: 520px; }
.aqua-panel { position: relative; overflow: hidden; background: linear-gradient(145deg, var(--teal), var(--aqua)); }
.wave-large::before, .wave-large::after { content: ""; position: absolute; width: 135%; height: 30%; left: -20%; border-top: 4px solid rgba(255,255,255,.7); border-radius: 50%; transform: rotate(-8deg); }
.wave-large::before { top: 34%; box-shadow: 0 30px 0 rgba(255,255,255,.4), 0 60px 0 rgba(255,255,255,.18); }
.wave-large::after { top: 59%; opacity: .35; }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px max(40px, calc((100vw - var(--max)) / 2)); }
.text-link { color: var(--navy); font-weight: 850; text-decoration: none; }

.owner-callout { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 72px max(30px, calc((100vw - var(--max)) / 2)); color: var(--white); background: var(--navy); }
.owner-callout > div { max-width: 700px; }
.owner-callout h2 { color: var(--white); }
.owner-callout p:not(.eyebrow) { color: rgba(255,255,255,.72); }

.page-hero { position: relative; display: flex; min-height: 460px; align-items: flex-end; overflow: hidden; padding: 90px max(30px, calc((100vw - var(--max)) / 2)); color: var(--white); background: var(--navy); }
.page-hero > div { position: relative; z-index: 2; max-width: 920px; }
.page-hero h1 { font-size: clamp(3.2rem, 6vw, 6rem); }
.kit-hero { background: linear-gradient(125deg, var(--navy-deep), var(--navy) 58%, var(--teal)); }
.resources-hero { background: linear-gradient(135deg, var(--navy), #075673); }
.contact-hero { background: linear-gradient(135deg, var(--navy-deep), #063f5c 70%, var(--aqua)); }
.registration-hero { background: linear-gradient(135deg, var(--navy), #0c526b); }
.pale-hero, .legal-hero { min-height: 390px; color: var(--navy); background: linear-gradient(135deg, #eef5f5, #d8ecee); }
.pale-hero::before, .legal-hero::before { border-color: rgba(1,45,71,.1); box-shadow: 0 -30px 0 rgba(24,150,169,.07), 0 -62px 0 rgba(0,154,191,.05); }
.pale-hero p:not(.eyebrow), .legal-hero p:not(.eyebrow) { color: var(--muted); }

.kit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.kit-grid article { min-height: 330px; padding: 42px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.kit-grid article > span { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--white); background: var(--teal); border-radius: 50%; font-weight: 850; }
.kit-grid h2 { margin: 85px 0 14px; color: var(--navy); font-family: Georgia, serif; font-size: 2.2rem; font-weight: 500; }
.kit-grid p { color: var(--muted); }
.product-gallery { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: repeat(2, 260px); gap: 18px; padding-top: 0; }
.product-gallery > div { display: flex; align-items: center; justify-content: center; padding: 30px; color: var(--muted); background: linear-gradient(135deg, #e7eded, #f9fbfb); border-radius: var(--radius); text-align: center; }
.gallery-large { grid-row: 1 / 3; }
.product-gallery .dark { color: var(--white); background: var(--navy); font-family: Georgia, serif; font-size: 2.2rem; }
.truth-panel { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; margin-bottom: 100px; background: #eef5f5; border-radius: var(--radius); }
.truth-panel > div:first-child { max-width: 760px; }

.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.resource-card { display: grid; grid-template-columns: 62px 1fr auto; min-height: 230px; align-items: start; gap: 26px; padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(1,45,71,.05); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.resource-card:hover { transform: translateY(-4px); border-color: var(--teal); }
.resource-card > span { display: flex; width: 62px; height: 62px; align-items: center; justify-content: center; color: var(--navy); background: #e3f2f3; border-radius: 18px; font-size: .73rem; font-weight: 900; }
.resource-card h2 { margin: 4px 0 10px; color: var(--navy); font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.resource-card p { margin: 0; color: var(--muted); }
.resource-card > b { color: var(--aqua); font-size: 1.6rem; }

.document-list { display: grid; gap: 16px; }
.document-card { display: grid; grid-template-columns: 74px minmax(0,1fr) auto; align-items: center; gap: 28px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-small); }
.pdf-mark { display: flex; width: 64px; height: 74px; align-items: center; justify-content: center; color: var(--white); background: var(--navy); border-radius: 8px 18px 8px 8px; font-size: .75rem; font-weight: 900; }
.document-copy h2 { margin: 0; color: var(--navy); font-size: 1.2rem; }
.document-copy > p { margin: 4px 0; color: var(--muted); }
.document-language { color: var(--teal) !important; font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.document-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; color: var(--muted); font-size: .8rem; }
.empty-state { padding: 50px; color: var(--muted); background: var(--paper); border: 1px dashed #afbdc3; border-radius: var(--radius); text-align: center; }
.empty-state > span { display: inline-flex; width: 58px; height: 65px; align-items: center; justify-content: center; color: var(--white); background: var(--gray); border-radius: 8px; font-weight: 900; }

.gate-layout { display: grid; grid-template-columns: minmax(0,.7fr) minmax(460px,1.3fr); gap: 30px; align-items: stretch; }
.gate-layout-single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.support-first, .gate-card { padding: 44px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.support-first > span { color: var(--aqua); font-weight: 900; }
.support-first h2 { margin-top: 90px; color: var(--navy); font-family: Georgia, serif; font-size: 2rem; }
.support-first p { color: var(--muted); }
.gate-card { background: var(--white); box-shadow: var(--shadow); }
.captcha-form { display: grid; gap: 26px; }
.dev-captcha { padding: 12px 15px; color: #665000; background: #fff7cf; border: 1px solid #ead578; border-radius: 10px; font-size: .84rem; }
.contact-result { display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; }
.contact-result > div { padding: 26px; background: var(--paper); border-radius: var(--radius-small); }
.contact-result span { display: block; margin-bottom: 8px; color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.contact-result a { color: var(--navy); font-size: 1.2rem; font-weight: 850; overflow-wrap: anywhere; }
.hours-note { color: var(--muted); }

.form-section { max-width: 980px; }
.registration-form, .admin-form { display: grid; gap: 26px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
label { display: grid; gap: 7px; }
label > span { color: var(--navy); font-size: .8rem; font-weight: 800; }
input, select, textarea {
    width: 100%;
    padding: 13px 14px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #b9c6cb;
    border-radius: 10px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(0,154,191,.12); outline: 0; }
.field-wide { grid-column: 1 / -1; }
.field-error input { border-color: var(--danger); }
.check-field { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 12px; padding: 18px; background: var(--paper); border-radius: 12px; }
.check-field input, .toggle-row input { width: 18px; height: 18px; margin: 2px 0 0; }
.success-card { padding: 54px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.success-card > span { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; color: var(--white); background: var(--success); border-radius: 50%; font-size: 2rem; }
.success-card h2 { color: var(--navy); font-family: Georgia, serif; font-size: 2.4rem; }
.success-card strong { display: block; margin: 22px 0; color: var(--navy); font-size: 1.35rem; letter-spacing: .05em; }
.status-message { margin-bottom: 24px; padding: 15px 18px; border-radius: 11px; }
.status-message.error { color: #711c1c; background: #fff0f0; border: 1px solid #e9bcbc; }
.status-message.warning { color: #684600; background: #fff8dd; border: 1px solid #ead69a; }
.status-message.success { color: #075d41; background: #eaf8f2; border: 1px solid #acd9c7; }

.legal-copy { max-width: 900px; }
.legal-copy article { padding: 32px 0; border-bottom: 1px solid var(--line); }
.legal-copy h2 { margin: 0 0 10px; color: var(--navy); font-family: Georgia, serif; font-size: 1.65rem; }
.legal-copy p { color: var(--muted); }
.not-found { display: flex; min-height: 76vh; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px; text-align: center; }
.not-found > span { color: rgba(0,154,191,.25); font-family: Georgia, serif; font-size: clamp(7rem, 22vw, 15rem); line-height: .8; }
.not-found h1 { margin: 30px 0 8px; color: var(--navy); font-family: Georgia, serif; font-size: 2.5rem; }
.not-found p { color: var(--muted); }

.site-footer { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 75px max(30px, calc((100vw - var(--max)) / 2)) 35px; color: rgba(255,255,255,.72); background: var(--navy-deep); }
.footer-brand strong { color: var(--white); font-family: Georgia, serif; font-size: 1.8rem; }
.footer-brand p { max-width: 480px; }
.footer-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px 24px; align-content: start; }
.footer-links a { color: rgba(255,255,255,.82); }
.copyright { grid-column: 1 / -1; margin: 30px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }

/* Private administration */
.admin-shell { min-height: 100vh; background: #eef2f3; }
.admin-header { display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 14px max(24px, calc((100vw - 1380px) / 2)); background: var(--white); border-bottom: 1px solid var(--line); }
.admin-header nav { display: flex; align-items: center; gap: 19px; }
.admin-header nav a, .admin-header nav button { color: var(--navy); background: none; border: 0; cursor: pointer; font-size: .82rem; font-weight: 800; text-decoration: none; }
.admin-header nav form { margin: 0; }
.admin-page { max-width: 1380px; margin: 0 auto; padding: 52px 28px 90px; }
.admin-title { margin-bottom: 34px; }
.admin-title p { margin: 0; color: var(--teal); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.admin-title h1 { margin: 4px 0 0; color: var(--navy); font-family: Georgia, serif; font-size: 2.8rem; font-weight: 500; }
.admin-login { display: grid; grid-template-columns: 1fr minmax(360px, 520px); min-height: calc(100vh - 140px); align-items: center; gap: 70px; }
.admin-login-intro { padding: 70px; color: var(--white); background: linear-gradient(145deg, var(--navy-deep), var(--navy)); border-radius: 32px; }
.admin-login-intro h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(3rem,5vw,5rem); font-weight: 500; line-height: 1; }
.admin-login-intro p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.admin-login-card { padding: 44px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.admin-metric-grid.compact { grid-template-columns: repeat(3, minmax(0,260px)); }
.admin-metric-grid article { display: grid; min-height: 180px; align-content: space-between; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-small); }
.admin-metric-grid span { color: var(--muted); font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.admin-metric-grid strong { color: var(--navy); font-family: Georgia, serif; font-size: 3rem; font-weight: 500; }
.admin-metric-grid strong small { font-family: inherit; font-size: 1rem; }
.admin-metric-grid a { color: var(--teal); font-size: .85rem; font-weight: 800; text-decoration: none; }
.admin-metric-grid small { color: var(--muted); }
.admin-panel { margin-bottom: 24px; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-small); }
.admin-panel h2 { font-size: 2rem; }
.admin-health { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.admin-health ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.admin-health li { display: grid; grid-template-columns: 90px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-health li b { color: var(--warning); }
.admin-health li.ok b { color: var(--success); }
.admin-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-small); }
.admin-toolbar > form { display: flex; align-items: flex-end; gap: 10px; flex: 1; max-width: 650px; }
.admin-toolbar > p { max-width: 650px; margin: 0; color: var(--muted); }
.download-menu { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .8rem; }
.download-menu a { padding: 6px 10px; color: var(--navy); background: #edf4f5; border-radius: 8px; }
.table-panel { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--navy); background: #f5f8f8; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
td small { display: block; margin-top: 5px; color: var(--muted); }
td code { font-size: .75rem; }
.status-pill { display: inline-flex; padding: 4px 9px; background: #eef1f2; border-radius: 999px; font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.status-pill.pass { color: var(--success); background: #e6f6ef; }
.status-pill.fail { color: var(--danger); background: #fff0f0; }
.table-action { padding: 7px 11px; color: var(--navy); background: #eef4f5; border: 0; border-radius: 7px; cursor: pointer; font-size: .76rem; font-weight: 800; }
.table-action.danger { color: var(--danger); background: #fff0f0; }
.upload-panel { display: grid; grid-template-columns: .62fr 1.38fr; gap: 45px; }
.document-form { padding-left: 40px; border-left: 1px solid var(--line); }
.settings-form > section { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.settings-form > section + section { padding-top: 16px; }
.toggle-row { display: flex; flex-wrap: wrap; gap: 15px 30px; margin-top: 24px; }
.toggle-row label { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; }

@media (max-width: 980px) {
    .site-header { min-height: 78px; }
    .nav-toggle { display: grid; grid-template-columns: 26px auto; gap: 4px 8px; align-items: center; }
    .nav-toggle span { grid-column: 1; display: block; width: 25px; height: 2px; background: var(--navy); }
    .nav-toggle b { grid-column: 2; grid-row: 1 / 4; font-size: .75rem; }
    .primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 28px 28px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(1,45,71,.08); }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
    .primary-nav .nav-contact { margin-top: 12px; text-align: center; }
    .primary-nav .language-link { padding-left: 4px; border-left: 0; }
    .hero { grid-template-columns: 1fr; }
    .hero-copy { padding-right: 40px; }
    .hero-visual { min-height: 470px; padding: 20px 30px 80px; }
    .product-stage { max-width: 440px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-grid article { min-height: auto; }
    .feature-grid h3 { margin-top: 35px; }
    .split-story { grid-template-columns: 1fr; }
    .story-panel { min-height: 360px; }
    .story-copy { padding: 70px 40px; }
    .owner-callout { align-items: flex-start; flex-direction: column; }
    .resource-grid, .kit-grid { grid-template-columns: 1fr; }
    .truth-panel { align-items: flex-start; flex-direction: column; }
    .gate-layout { grid-template-columns: 1fr; }
    .admin-header { align-items: flex-start; flex-direction: column; gap: 15px; }
    .admin-header nav { width: 100%; overflow-x: auto; padding-bottom: 5px; }
    .admin-metric-grid { grid-template-columns: repeat(2,1fr); }
    .admin-login { grid-template-columns: 1fr; }
    .admin-login-intro { padding: 45px; }
    .admin-health, .upload-panel { grid-template-columns: 1fr; }
    .document-form { padding-left: 0; border-left: 0; }
    .admin-toolbar { align-items: stretch; flex-direction: column; }
}

@media (max-width: 640px) {
    .brand small { display: none; }
    .brand-wave { width: 42px; transform: scale(.82); transform-origin: left center; }
    .hero { min-height: 0; }
    .hero-copy { padding: 75px 24px 45px; }
    .hero h1, .page-hero h1 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
    .hero-facts { flex-direction: column; gap: 9px; margin-top: 38px; }
    .hero-visual { min-height: 390px; }
    .controller-silhouette { transform: scale(.82) rotate(5deg); }
    .photo-status { right: 5px; bottom: 15px; }
    .section { padding: 75px 20px; }
    .page-hero { min-height: 390px; padding: 70px 22px; }
    .feature-grid article, .kit-grid article, .resource-card, .support-first, .gate-card { padding: 26px; }
    .resource-card { grid-template-columns: 50px 1fr; }
    .resource-card > span { width: 50px; height: 50px; }
    .resource-card > b { display: none; }
    .product-gallery { grid-template-columns: 1fr; grid-template-rows: 260px 200px 180px; }
    .gallery-large { grid-row: auto; }
    .document-card { grid-template-columns: 54px 1fr; gap: 17px; }
    .document-card .button { grid-column: 1 / -1; }
    .pdf-mark { width: 52px; height: 62px; }
    .field-grid, .contact-result { grid-template-columns: 1fr; }
    .owner-callout { padding: 60px 24px; }
    .site-footer { grid-template-columns: 1fr; padding: 60px 24px 30px; }
    .footer-links { grid-template-columns: 1fr; }
    .copyright { grid-column: auto; }
    .admin-page { padding: 35px 16px 70px; }
    .admin-brand small { display: none; }
    .admin-header { padding: 14px 18px; }
    .admin-header nav { gap: 14px; }
    .admin-metric-grid, .admin-metric-grid.compact { grid-template-columns: 1fr; }
    .admin-metric-grid article { min-height: 150px; }
    .admin-login-intro, .admin-login-card, .admin-panel { padding: 24px; }
    .admin-toolbar > form { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
    .site-header, .site-footer, .button, .nav-toggle, .admin-header { display: none !important; }
    body { background: #fff; color: #000; }
}
