:root {
    --bg: #f2f1eb;
    --surface: #ffffff;
    --surface-muted: #e5e3da;
    --text: #0b0b0b;
    --muted: #474741;
    --border: #8b8a83;
    --brand: #050505;
    --brand-soft: #171717;
    --brand-text: #ffffff;
    --accent: #ffe500;
    --accent-strong: #e1ca00;
    --accent-text: #050505;
    --link: #143d73;
    --focus: #ffe500;
    --base-size: 100%;
}

html[data-theme="high"] {
    --bg: #000000;
    --surface: #000000;
    --surface-muted: #121212;
    --text: #ffffff;
    --muted: #ffffff;
    --border: #ffffff;
    --brand: #000000;
    --brand-soft: #000000;
    --brand-text: #ffffff;
    --accent: #ffff00;
    --accent-strong: #ffff00;
    --accent-text: #000000;
    --link: #7dd3fc;
    --focus: #ffff00;
}

html[data-theme="blue-yellow"] {
    --bg: #061b70;
    --surface: #0a248b;
    --surface-muted: #07195e;
    --text: #fff83b;
    --muted: #fff83b;
    --border: #fff83b;
    --brand: #061b70;
    --brand-soft: #0a248b;
    --brand-text: #fff83b;
    --accent: #fff83b;
    --accent-strong: #fff83b;
    --accent-text: #061b70;
    --link: #ffffff;
    --focus: #ffffff;
}

html[data-theme="black-white"] {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-muted: #f1f1f1;
    --text: #000000;
    --muted: #222222;
    --border: #000000;
    --brand: #ffffff;
    --brand-soft: #f1f1f1;
    --brand-text: #000000;
    --accent: #000000;
    --accent-strong: #000000;
    --accent-text: #ffffff;
    --link: #000000;
    --focus: #000000;
}

html[data-text-size="125"] { --base-size: 125%; }
html[data-text-size="150"] { --base-size: 150%; }

* { box-sizing: border-box; }
html { font-size: var(--base-size); scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: .09em; }
a:hover { text-decoration-thickness: .16em; }
button, input, select, textarea, summary { font: inherit; }
:focus-visible {
    outline: .2rem solid #ffffff;
    outline-offset: .16rem;
    box-shadow: 0 0 0 .42rem #050505;
}
@media (forced-colors: active) {
    :focus-visible {
        outline: .22rem solid CanvasText;
        box-shadow: none;
    }
}
.shell { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 2.5rem)); }
.skip-link {
    position: absolute;
    left: 1rem;
    top: -10rem;
    z-index: 1000;
    padding: .8rem 1rem;
    background: var(--accent);
    color: var(--accent-text);
    border: 2px solid currentColor;
    font-weight: 800;
}
.skip-link:focus { top: 1rem; }

h1, h2, h3 {
    margin: 0;
    line-height: 1.04;
    letter-spacing: -.03em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.8rem); font-weight: 900; }
h2 { font-size: clamp(1.95rem, 4vw, 3.3rem); }
h3 { font-size: clamp(1.55rem, 2.5vw, 2.4rem); }
p { margin: 0 0 1rem; }
.lede { margin: 0; max-width: 56ch; font-size: clamp(1.1rem, 1.55vw, 1.28rem); line-height: 1.65; }
.eyebrow {
    margin: 0 0 .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 900;
    font-size: .8rem;
}

.eyebrow-on-dark {
    color: var(--accent);
}

.eyebrow-on-surface {
    color: var(--text);
}

.eyebrow-on-accent {
    color: var(--accent-text);
}

/* Primary site header and utility navigation. */
.site-header { background: var(--brand); color: var(--brand-text); border-bottom: .5rem solid var(--accent); }
.header-main {
    min-height: 5.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    color: var(--brand-text);
    font-weight: 900;
    text-decoration: none;
}
.brand-lockup {
    display: inline-grid;
    grid-template-columns: auto auto;
    border: 2px solid var(--brand-text);
    line-height: 1;
    letter-spacing: .04em;
}
.brand-lockup > span { padding: .5rem .55rem .46rem; }
.brand-lockup .brand-it { background: var(--accent); color: var(--accent-text); }
.brand-sub { font-size: .68rem; letter-spacing: .15em; color: var(--accent); }
.veraccess-lockup {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: stretch;
    border: 2px solid var(--brand-text);
    line-height: 1;
    letter-spacing: .035em;
}
.veraccess-name {
    padding: .5rem .62rem .46rem;
    font-weight: 900;
}
.veraccess-software {
    display: grid;
    place-items: center;
    padding: .5rem .55rem .46rem;
    background: var(--accent);
    color: var(--accent-text);
    font-size: .72em;
    font-weight: 900;
    letter-spacing: .08em;
}

.main-nav, .language-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 1.15rem;
}
.main-nav a {
    display: inline-block;
    padding: 1rem 0 .8rem;
    border-bottom: .28rem solid transparent;
    color: var(--brand-text);
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
}
.main-nav a:hover { border-bottom-color: var(--brand-text); }
.main-nav a[aria-current="page"],
.main-nav a.is-current-section { color: var(--accent); border-bottom-color: var(--accent); }
.utility-bar { background: var(--accent); color: var(--accent-text); }
.utility-inner { display: flex; justify-content: space-between; gap: 1.25rem; align-items: center; min-height: 2.9rem; }
.language-nav { display: flex; gap: .7rem; align-items: center; }
.language-nav a { display: inline-block; padding: .45rem 0; color: var(--accent-text); font-weight: 700; font-size: .95rem; }
.language-nav a[aria-current="page"] { text-decoration-thickness: .2em; }
.utility-label { font-weight: 800; }
.display-settings { position: relative; }
.display-settings summary { cursor: pointer; font-weight: 800; padding: .45rem 0; }
.display-panel {
    position: absolute;
    right: 0;
    z-index: 20;
    width: min(26rem, calc(100vw - 2rem));
    padding: 1rem;
    background: var(--surface);
    color: var(--text);
    border: 3px solid var(--text);
}
.display-panel fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.display-panel fieldset:last-child { margin-bottom: 0; }
.display-panel legend { font-weight: 800; margin-bottom: .4rem; }
.display-panel label { display: block; padding: .35rem 0; }

/* Home hero and Tango Touch control motif. */
.home-hero {
    background: var(--brand);
    color: var(--brand-text);
    padding: clamp(2.5rem, 5vw, 4.8rem) 0 clamp(4rem, 7vw, 6.8rem);
}
.hero-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    color: var(--accent);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hero-number, .section-number { font-variant-numeric: tabular-nums; }
.hero-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 28rem);
    gap: clamp(2.5rem, 6vw, 6rem);
    padding-top: clamp(2.5rem, 5vw, 4.75rem);
    align-items: start;
}
.hero-title-block {
    display: grid;
    gap: 1.65rem;
    min-width: 0;
    max-width: 38rem;
}
.home-hero h1 {
    max-width: 7.1ch;
    font-size: clamp(3rem, 6.2vw, 5.35rem);
}
.hero-copy {
    display: grid;
    align-content: start;
    gap: 1.5rem;
    min-width: 0;
    max-width: 27rem;
    padding-top: clamp(1.2rem, 3.2vw, 3rem);
    justify-self: end;
}
.hero-copy .lede {
    max-width: none;
}
.hero-copy .lede { color: var(--brand-text); margin: 0; }
.hero-since {
    margin: 0;
    max-width: 26rem;
    padding-left: 1rem;
    border-left: .45rem solid var(--accent);
    color: var(--accent);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.5;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.35rem; margin-top: .2rem; }
.button {
    display: inline-flex;
    min-height: 3.15rem;
    align-items: center;
    justify-content: center;
    padding: .68rem 1rem;
    border: 2px solid currentColor;
    border-radius: 0;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.button.primary:hover { background: var(--brand-text); color: var(--brand); border-color: var(--brand-text); }
.button.secondary { background: transparent; color: var(--text); }
.home-hero .arrow-link { color: var(--brand-text); text-decoration-color: var(--accent); }
.arrow-link { display: inline-flex; gap: .5rem; align-items: baseline; font-weight: 700; }
.arrow-link.strong { font-weight: 900; }
.arrow-link span { font-size: 1.15em; }

.tango-console {
    margin-top: clamp(3.6rem, 7vw, 6.8rem);
    border: 3px solid var(--accent);
    background: var(--brand-soft);
}
.console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.console-header p { margin: 0; }
.console-header span { font-size: .78rem; }
.console-menu {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
}
.console-menu li {
    min-height: 8.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    border-right: 1px solid var(--accent);
    color: var(--brand-text);
    font-size: 1.05rem;
    font-weight: 800;
}
.console-menu li:last-child { border-right: 0; }
.console-key { color: var(--accent); font-size: .78rem; letter-spacing: .08em; }

/* Product register on the home page. */
.products-section { padding: clamp(4.2rem, 7vw, 7rem) 0; }
.section-index {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    align-items: baseline;
    border-bottom: 3px solid var(--text);
    padding-bottom: .75rem;
    margin-bottom: 0;
    gap: 0 .75rem;
}
.section-index .section-number { font-weight: 900; }
.section-index h2 { margin: 0; }
.product-row {
    display: grid;
    grid-template-columns: minmax(16rem, .68fr) minmax(0, 1.32fr);
    gap: clamp(2rem, 4vw, 4rem);
    padding: clamp(3rem, 5vw, 4.75rem) 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.product-meta { max-width: 24rem; display: grid; align-content: start; gap: .9rem; }
.product-code {
    display: inline-block;
    margin-bottom: 1.25rem;
    padding: .32rem .5rem;
    background: var(--brand);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
}
.product-row-featured .product-code { background: var(--accent); color: var(--accent-text); }
.product-meta h3 { margin: 0; }
.product-meta p { color: var(--muted); margin: 0; font-size: 1.02rem; line-height: 1.7; }
.product-visual {
    position: relative;
    display: block;
    border: 3px solid var(--text);
    background: var(--surface);
    overflow: hidden;
}
.product-visual::after { content: ""; position: absolute; inset: auto 0 0; height: .55rem; background: var(--accent); }
.product-visual img { width: 100%; display: block; aspect-ratio: 16 / 9.4; object-fit: cover; }
.image-index {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    padding: .48rem .65rem;
    background: var(--accent);
    color: var(--accent-text);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
}

/* Accessibility principles. */
.principles-section { background: var(--surface); border-block: 1px solid var(--border); padding: clamp(4rem, 7vw, 6.8rem) 0; }
.principles-grid { display: grid; grid-template-columns: minmax(14rem, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.principles-heading { border-top: .5rem solid var(--accent); padding-top: 1rem; }
.principles-heading .section-number { display: block; margin-bottom: 1.25rem; font-weight: 900; }
.principles-heading h2 { margin: 0; }
.principles-copy > p { max-width: 58ch; margin: 0 0 2.4rem; font-size: 1.03rem; line-height: 1.75; }
.principles-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--text); }
.principles-list li { min-height: 7.4rem; display: flex; flex-direction: column; justify-content: center; padding: 1.1rem 1rem; border-bottom: 1px solid var(--border); }
.principles-list li:nth-child(odd) { border-right: 1px solid var(--border); }
.principles-list strong { font-size: 1.15rem; }
.principles-list span { color: var(--muted); }

/* Reseller entry band. */
.dealer-band { background: var(--accent); color: var(--accent-text); padding: clamp(3rem, 5vw, 4.6rem) 0; }
.dealer-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 20rem); gap: 2.5rem; align-items: end; }
.dealer-kicker { display: block; margin-bottom: .6rem; font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.dealer-band h2 { margin: 0 0 .6rem; }
.dealer-band p { margin: 0; max-width: 52ch; line-height: 1.6; }
.dealer-entry {
    min-height: 7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    background: var(--brand);
    color: var(--brand-text);
    font-size: 1.25rem;
    font-weight: 900;
    text-decoration: none;
    border: 3px solid var(--brand);
}
.dealer-entry:hover { background: var(--surface); color: var(--text); }
.dealer-arrow { font-size: 2.4rem; line-height: 1; }

/* Secondary page headers. */
.page-hero { padding: clamp(3.2rem, 6vw, 5.8rem) 0 4rem; background: var(--brand); color: var(--brand-text); border-bottom: .55rem solid var(--accent); }
.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 27rem);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
.page-hero h1 {
    max-width: 8.4ch;
    font-size: clamp(2.8rem, 5vw, 4.6rem);
}
.page-hero .lede {
    color: var(--brand-text);
    max-width: 28ch;
    margin: 0;
    padding-top: 1rem;
    justify-self: end;
    line-height: 1.65;
}
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.compact-index h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }

/* Tango Touch product page. */
.product-hero { background: var(--brand); color: var(--brand-text); padding: clamp(2.25rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 6.5rem); border-bottom: .55rem solid var(--accent); }
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, 28rem); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.product-hero-copy .product-label { margin-bottom: clamp(2rem, 5vw, 4rem); }
.product-hero-copy h1 { font-size: clamp(3rem, 7vw, 6rem); }
.product-hero-copy .lede { margin-top: 1.6rem; }
.product-history { max-width: 55ch; margin: 1.5rem 0 0; color: var(--brand-text); }
.product-hero-visual { position: relative; margin: 0; border: 3px solid var(--accent); background: var(--surface); }
.product-hero-visual img { display: block; width: 100%; }
.product-hero-visual figcaption { padding: .75rem 1rem; background: var(--accent); color: var(--accent-text); font-weight: 900; }
.visual-tag { position: absolute; top: 0; left: 0; z-index: 2; padding: .55rem .7rem; background: var(--brand); color: var(--accent); font-size: .75rem; font-weight: 900; letter-spacing: .1em; }
.feature-register { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.feature-rows { list-style: none; margin: 0; padding: 0; }
.feature-rows li {
    display: grid;
    grid-template-columns: 4rem minmax(12rem, .55fr) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: baseline;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}
.feature-rows li:last-child { border-bottom: 3px solid var(--text); }
.feature-number { color: var(--muted); font-weight: 900; font-variant-numeric: tabular-nums; }
.feature-rows strong { font-size: 1.15rem; }
.feature-rows p { margin: 0; color: var(--muted); }
.screens-section { background: var(--brand); color: var(--brand-text); padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.light-index { border-bottom-color: var(--accent); }
.light-index .section-number, .light-index h2 { color: var(--brand-text); }
.screens-editorial { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(16rem, .65fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.screens-editorial figure { margin: 0; }
.screens-editorial a { display: block; border: 3px solid var(--accent); }
.screens-editorial img { display: block; width: 100%; background: var(--surface); }
.screens-editorial figcaption { display: grid; grid-template-columns: 2.5rem 1fr; gap: .8rem; padding-top: .7rem; color: var(--brand-text); font-weight: 800; }
.screens-editorial figcaption span { color: var(--accent); }
.screen-secondary { margin-bottom: 3rem; }

/* Downloads and reseller area registers. */
.download-register { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 3px solid var(--text); gap: 0; }
.download-register > div { min-height: 10rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 1.2rem; border-right: 1px solid var(--border); }
.download-register > div:last-child { border-right: 0; }
.download-register span { font-size: .78rem; color: var(--muted); font-weight: 900; }
.download-register strong { font-size: 1.2rem; }
.dealer-login-grid { display: grid; grid-template-columns: minmax(15rem, .7fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.register-label { margin: 0 0 .75rem; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.dealer-capabilities ul { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--text); max-width: 32rem; }
.dealer-capabilities li { display: grid; grid-template-columns: 3rem 1fr; gap: .9rem; padding: 1.3rem 0; border-bottom: 1px solid var(--border); font-weight: 800; font-size: 1.04rem; }
.dealer-capabilities li span { color: var(--muted); font-size: .78rem; padding-top: .15rem; }
.form-card { background: var(--surface); color: var(--text); border: 3px solid var(--text); padding: clamp(1.8rem, 3vw, 2.6rem); max-width: 38rem; }
.form-heading { display: grid; grid-template-columns: 2.5rem 1fr; align-items: baseline; gap: .5rem; margin-bottom: 1.8rem; border-bottom: 3px solid var(--text); padding-bottom: .8rem; }
.form-heading span { color: var(--accent-strong); font-weight: 900; font-size: 1.5rem; }
.form-heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .45rem; font-weight: 800; }
.field input { width: 100%; min-height: 3.25rem; padding: .75rem .8rem; border: 2px solid var(--text); border-radius: 0; background: var(--surface); color: var(--text); }
.login-help { margin-top: 1.4rem; max-width: 42rem; line-height: 1.7; }
.notice { padding: 1rem 1.2rem; border-left: .5rem solid var(--accent); background: var(--surface-muted); max-width: 42rem; }

.error-summary {
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border: 3px solid var(--text);
    border-left-width: .55rem;
    border-left-color: #b00020;
    background: var(--surface);
    color: var(--text);
}
.error-summary h2,
.error-summary h3 {
    margin: 0 0 .6rem;
    font-size: 1.2rem;
    line-height: 1.25;
}
.error-summary ul {
    margin: .4rem 0 0;
    padding-left: 1.35rem;
}
.error-summary a { font-weight: 800; }
.field-error {
    margin: .4rem 0 0;
    color: #8a0018;
    font-weight: 800;
}
.field [aria-invalid="true"] {
    border-color: #8a0018;
    border-width: 3px;
}
html[data-theme="high"] .error-summary,
html[data-theme="black-white"] .error-summary,
html[data-theme="blue-yellow"] .error-summary {
    border-left-color: var(--text);
}
html[data-theme="high"] .field [aria-invalid="true"],
html[data-theme="black-white"] .field [aria-invalid="true"],
html[data-theme="blue-yellow"] .field [aria-invalid="true"] {
    border-color: var(--text);
}
html[data-theme="high"] .field-error,
html[data-theme="black-white"] .field-error,
html[data-theme="blue-yellow"] .field-error {
    color: var(--text);
    text-decoration: underline;
    text-decoration-thickness: .14em;
}

/* Footer. */
.site-footer { padding: 2.5rem 0; background: var(--brand); color: var(--brand-text); border-top: .4rem solid var(--accent); }
.site-footer a { color: var(--brand-text); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.footer-grid p { margin: .25rem 0 0; }
.footer-brand { display: inline-grid; grid-template-columns: auto auto; font-weight: 900; font-size: 1.4rem; line-height: 1; border: 2px solid var(--brand-text); }
.footer-brand span { padding: .45rem .5rem; }
.footer-brand span:last-child { background: var(--accent); color: var(--accent-text); }
.footer-veraccess-lockup {
    font-size: .95rem;
}
.footer-parent {
    margin-top: .55rem !important;
    color: var(--brand-text);
    font-size: .82rem;
}


@media (max-width: 900px) {
    .console-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .console-menu li { border-bottom: 1px solid var(--accent); }
    .console-menu li:nth-child(2) { border-right: 0; }
    .console-menu li:nth-child(3), .console-menu li:nth-child(4) { border-bottom: 0; }
    .feature-rows li { grid-template-columns: 3rem 1fr; }
    .feature-rows p { grid-column: 2; }
}

@media (max-width: 1080px) {
    .hero-editorial,
    .page-hero-grid,
    .product-hero-grid,
    .dealer-login-grid,
    .product-row,
    .principles-grid,
    .dealer-band-inner,
    .screens-editorial,
    .download-register {
        grid-template-columns: 1fr;
    }
    .hero-copy,
    .page-hero .lede {
        justify-self: start;
        max-width: 40rem;
        padding-top: 0;
    }
    .hero-title-block,
    .page-hero-grid > div {
        max-width: 44rem;
    }
    .form-card,
    .notice,
    .dealer-capabilities ul {
        max-width: none;
    }
    .product-visual,
    .product-hero-visual { max-width: 52rem; }
}

@media (max-width: 820px) {
    .header-main, .utility-inner { align-items: flex-start; flex-direction: column; }
    .header-main { padding-block: 1rem; }
    .main-nav { gap: 0 .8rem; }
    .utility-inner { padding-block: .65rem; }
    .language-nav { align-items: flex-start; flex-direction: column; }
    .display-settings { width: 100%; }
    .display-panel { position: static; margin-top: .5rem; }
    .product-row { gap: 1.8rem; }
    .home-hero h1,
    .page-hero h1 { max-width: 9ch; }
    .product-visual { order: -1; }
    .principles-list { grid-template-columns: 1fr; }
    .principles-list li:nth-child(odd) { border-right: 0; }
    .screen-secondary { margin: 0; }
    .download-register > div { min-height: 7rem; border-right: 0; border-bottom: 1px solid var(--border); }
    .download-register > div:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
    h1, h2, h3 { letter-spacing: -.02em; }
    .shell { width: min(100% - 1.25rem, 1120px); }
    .section-index { grid-template-columns: 3rem 1fr; }
    .utility-label { display: none; }
    .language-nav ul { gap: 0 .8rem; }
    h1 { font-size: clamp(2.8rem, 15vw, 4.7rem); }
    .console-menu { grid-template-columns: 1fr; }
    .console-menu li { min-height: 5.2rem; border-right: 0; border-bottom: 1px solid var(--accent); }
    .console-menu li:nth-child(3) { border-bottom: 1px solid var(--accent); }
    .console-menu li:last-child { border-bottom: 0; }
    .feature-rows li { grid-template-columns: 2.5rem 1fr; gap: .75rem; }
    .brand-sub { display: none; }
    .veraccess-software { font-size: .64em; }
}

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

/* v0.8: richer product material and reseller workflow. */
.product-fact {
    display: grid;
    gap: .25rem;
    margin-top: 1.8rem;
    padding: 1rem 0 0 1rem;
    border-left: .55rem solid var(--accent);
    max-width: 38rem;
}
.product-fact span { color: var(--accent); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.product-fact strong { color: var(--brand-text); }
.product-hero-action { margin-top: 1.8rem; }
.screen-grid-expanded {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
}
.screen-card { margin: 0; align-self: start; }
.screen-card-lead { grid-column: 1 / -1; width: min(78%, 900px); }
.screen-card a { display: block; border: 3px solid var(--accent); background: var(--surface); }
.screen-card img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: contain; }
.screen-card figcaption { display: grid; grid-template-columns: 2.7rem 1fr; gap: .8rem; padding-top: .7rem; font-weight: 800; }
.screen-card figcaption span { color: var(--accent); }
.kids-screen-grid .screen-card-lead { width: min(70%, 820px); }

.download-intro-copy { max-width: 62ch; margin: 2rem 0 2.5rem; font-size: 1.08rem; }
.download-list { border-top: 3px solid var(--text); }
.download-row {
    display: grid;
    grid-template-columns: 8rem minmax(13rem, .85fr) minmax(18rem, 1fr);
    gap: clamp(1rem, 3vw, 3rem);
    align-items: center;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--border);
}
.download-row:last-child { border-bottom: 3px solid var(--text); }
.download-code { display: flex; flex-direction: column; gap: .25rem; }
.download-code span { font-weight: 900; font-size: .85rem; background: var(--brand); color: var(--accent); padding: .45rem .55rem; width: fit-content; }
.download-code small { color: var(--muted); font-weight: 800; }
.download-name h3 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 2rem); }
.download-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.35rem; justify-content: flex-end; }
.download-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.download-notes p { display: grid; grid-template-columns: 2rem 1fr; margin: 0; padding: 1rem; background: var(--surface-muted); }
.download-notes span { font-weight: 900; }

.area-shell { padding-top: 1.5rem; padding-bottom: clamp(4rem, 8vw, 7rem); }
.area-nav {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    border-block: 2px solid var(--text);
}
.area-nav > a, .area-nav form { border-right: 1px solid var(--border); }
.area-nav > a {
    display: flex;
    align-items: center;
    min-height: 3.4rem;
    padding: .65rem .9rem;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}
.area-nav > a:hover, .area-nav > a[aria-current="page"] { background: var(--accent); color: var(--accent-text); }
.area-nav form { margin-left: 0; }
.area-nav-logout {
    height: 100%;
    min-height: 3.4rem;
    border: 0;
    background: var(--brand);
    color: var(--brand-text);
    padding: .65rem 1rem;
    font-weight: 800;
    cursor: pointer;
}
.area-nav-logout:hover { background: var(--accent); color: var(--accent-text); }
.dealer-user-summary { display: grid; gap: .2rem; border-left: .5rem solid var(--accent); padding-left: 1rem; }
.dealer-user-summary strong { font-size: clamp(1.3rem, 2.5vw, 2rem); }
.dealer-user-summary span { color: var(--accent); font-weight: 800; }
.compact-area-hero { padding-bottom: 2.7rem; }
.admin-hero { background: var(--brand-soft); }
.notice.warning { border-left-color: #c89200; }
.error-notice { border-left-color: #b00020; }
.notice strong { display: block; margin-bottom: .25rem; }
.notice p { margin: .25rem 0 0; }

.area-dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 3px solid var(--text); margin-bottom: clamp(3rem, 6vw, 5rem); }
.area-action {
    min-height: 15rem;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: .65rem;
    padding: 1.25rem;
    color: var(--text);
    text-decoration: none;
    background: var(--surface);
    border-right: 1px solid var(--text);
}
.area-action:last-child { border-right: 0; }
.area-action:hover { background: var(--surface-muted); }
.area-action.primary-action { background: var(--accent); color: var(--accent-text); }
.area-action.admin-action { background: var(--brand); color: var(--brand-text); }
.area-action-index { font-size: .76rem; font-weight: 900; letter-spacing: .08em; }
.area-action strong { font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.05; }
.area-action-arrow { justify-self: end; font-size: 2rem; }
.area-section { margin-top: clamp(3rem, 6vw, 5rem); }
.area-section-heading { display: grid; grid-template-columns: 4rem 1fr; align-items: baseline; border-bottom: 3px solid var(--text); padding-bottom: .7rem; margin-bottom: 1.4rem; }
.area-section-heading span { font-weight: 900; color: var(--muted); }
.area-section-heading h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 3rem); }

.responsive-table { overflow-x: auto; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { padding: .8rem .9rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--brand); color: var(--brand-text); font-size: .8rem; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }

.order-form { display: grid; gap: 2rem; }
.order-fieldset { margin: 0; padding: 0; border: 0; }
.order-fieldset > legend {
    width: 100%;
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 0;
    border-bottom: 3px solid var(--text);
    padding: 0 0 .75rem;
    margin-bottom: 1.25rem;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 900;
}
.order-fieldset > legend span { color: var(--muted); font-size: .82rem; padding-top: .45rem; }
.admin-order-block {
    padding: 0 1.2rem 1.2rem;
    background: var(--brand);
    color: var(--brand-text);
    border: 0;
    border-bottom: .5rem solid var(--accent);
}
.admin-order-block > legend {
    width: calc(100% + 2.4rem);
    margin-left: -1.2rem;
    margin-bottom: 1.2rem;
    padding: .85rem 1.2rem .75rem;
    background: var(--brand);
    color: var(--brand-text);
    border-bottom: .25rem solid var(--accent);
}
.admin-order-block > legend span { color: var(--accent); }
.admin-order-block .field label { color: var(--brand-text); }
.order-lines { border-top: 1px solid var(--border); }
.order-line { display: grid; grid-template-columns: minmax(0, 1fr) 8rem auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); align-items: end; }
.order-line .field { margin: 0; }
.field select, .field textarea {
    width: 100%;
    min-height: 3.25rem;
    padding: .65rem .75rem;
    border: 2px solid var(--text);
    border-radius: 0;
    background: var(--surface);
    color: var(--text);
}
.quantity-field input { text-align: right; }
.add-order-line { margin-top: 1rem; }
.order-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.field-wide { grid-column: 1 / -1; }
.order-submit-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding-top: 1rem; border-top: 3px solid var(--text); }
.order-submit-row p { margin: 0; max-width: 55ch; }
button:disabled { cursor: not-allowed; opacity: .55; }

.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); }
.review-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.review-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.review-lines span { color: var(--muted); font-weight: 800; }
.review-details { margin: 0; }
.review-details div { display: grid; grid-template-columns: minmax(8rem, .7fr) 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.review-details dt { font-weight: 800; }
.review-details dd { margin: 0; overflow-wrap: anywhere; }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 3px solid var(--text); }
.confirm-actions form { margin: 0; }
.order-complete-hero {
    background: var(--brand);
    color: var(--brand-text);
    border-bottom: .55rem solid var(--accent);
    padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.complete-hero-layout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
    max-width: 70rem;
}
.complete-mark {
    width: clamp(4.75rem, 8vw, 6.5rem);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 0;
    background: var(--accent);
    color: var(--accent-text);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    font-weight: 900;
}
.complete-hero-copy {
    min-width: 0;
}
.order-complete-hero h1 {
    max-width: 15ch;
    font-size: clamp(3rem, 6vw, 5.5rem);
}
.order-complete-hero .lede {
    max-width: 46rem;
    margin-top: 1rem;
}
.complete-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: clamp(2.5rem, 5vw, 4rem) 0 0;
    padding: 0;
    background: var(--accent);
    color: var(--accent-text);
    border: 3px solid var(--accent);
}
.complete-status-grid > div {
    min-width: 0;
    padding: 1rem 1.15rem;
    border-right: 1px solid var(--accent-text);
}
.complete-status-grid > div:last-child {
    border-right: 0;
}
.complete-status-grid dt {
    margin: 0 0 .35rem;
    font-size: .78rem;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.complete-status-grid dd {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.15;
    font-weight: 900;
    overflow-wrap: anywhere;
}
.complete-next-step {
    margin-top: 2rem;
}
.license-key-list { border-top: 3px solid var(--text); }
.license-key-row { display: grid; grid-template-columns: 8rem minmax(14rem, .7fr) 1fr; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.license-key-row > span { font-weight: 900; }
.license-key-row > strong, .license-history-row code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.1rem; letter-spacing: .04em; }
.license-key-row small { color: var(--muted); }

.license-history-list { border-top: 3px solid var(--text); }
.license-history-row { display: grid; grid-template-columns: minmax(13rem, 1fr) minmax(13rem, .7fr) minmax(10rem, .55fr); gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.license-history-row > div:first-child { display: grid; gap: .2rem; }
.license-history-row > div:first-child span { color: var(--muted); font-size: .78rem; font-weight: 900; }
.license-history-row code { color: var(--text); background: transparent; overflow-wrap: anywhere; }
.license-meta { display: flex; flex-direction: column; gap: .2rem; color: var(--muted); font-size: .86rem; }
.license-state { width: fit-content; padding: .15rem .4rem; border: 1px solid currentColor; font-weight: 800; }
.license-state.available { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

.invoice-queue { display: grid; gap: 1.5rem; }
.invoice-card { border: 3px solid var(--text); background: var(--surface); }
.invoice-card > header { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem .9rem; background: var(--brand); color: var(--brand-text); font-weight: 900; }
.invoice-card-main { display: grid; grid-template-columns: minmax(16rem, .85fr) minmax(18rem, 1fr); gap: 2rem; padding: 1.2rem; }
.invoice-card h2 { margin: 0 0 .7rem; font-size: clamp(1.5rem, 3vw, 2.3rem); }
.invoice-card dl { margin: 0; }
.invoice-card dl div { display: grid; grid-template-columns: 9rem 1fr; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid var(--border); }
.invoice-card dt { font-weight: 800; }
.invoice-card dd { margin: 0; overflow-wrap: anywhere; }
.invoice-items { margin: .8rem 0 0; padding-left: 1.2rem; }
.invoice-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; border-top: 1px solid var(--border); }
.admin-badge { padding: .25rem .45rem; background: var(--accent); color: var(--accent-text); font-size: .78rem; font-weight: 900; }
.empty-state { padding: 2rem; border: 3px solid var(--text); background: var(--accent); color: var(--accent-text); font-size: 1.25rem; }

@media (max-width: 900px) {
    .area-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .area-action:nth-child(2) { border-right: 0; }
    .area-action:nth-child(-n+2) { border-bottom: 1px solid var(--text); }
    .download-row { grid-template-columns: 7rem 1fr; }
    .download-actions { grid-column: 2; justify-content: flex-start; }
    .license-history-row { grid-template-columns: 1fr 1fr; }
    .license-meta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
}

@media (max-width: 720px) {
    .screen-grid-expanded, .review-grid, .order-details-grid, .invoice-card-main, .download-notes { grid-template-columns: 1fr; }
    .screen-card-lead, .kids-screen-grid .screen-card-lead { width: 100%; grid-column: auto; }
    .area-dashboard-grid { grid-template-columns: 1fr; }
    .area-action { border-right: 0; border-bottom: 1px solid var(--text); min-height: 11rem; }
    .area-action:last-child { border-bottom: 0; }
    .order-line { grid-template-columns: minmax(0, 1fr) 7rem auto; }
    .order-submit-row { grid-template-columns: 1fr; }
    .license-key-row, .license-history-row { grid-template-columns: 1fr; }
    .license-meta { grid-column: auto; }
    .area-nav form { margin-left: 0; }
}

@media (max-width: 520px) {
    .download-row { grid-template-columns: 1fr; }
    .download-actions { grid-column: auto; }
    .order-line { grid-template-columns: 1fr; }
    .order-line-remove { justify-self: start; }
    .quantity-field { max-width: 9rem; }
    .review-details div { grid-template-columns: 1fr; gap: .2rem; }
}

.screen-grid-expanded > .screen-card:only-child { grid-column: 1 / -1; width: min(78%, 900px); }
.installer-list { border-top: 3px solid var(--text); }
.installer-row { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.installer-row:last-child { border-bottom: 3px solid var(--text); }
.installer-index { color: var(--muted); font-weight: 900; }
.installer-row h2 { margin: .65rem 0 .35rem; font-size: clamp(1.45rem, 3vw, 2.2rem); }
.installer-row p { margin: 0; color: var(--muted); }
.download-source-note { max-width: 65ch; margin-top: 1.5rem; padding-left: 1rem; border-left: .5rem solid var(--accent); }
@media (max-width: 680px) { .installer-row { grid-template-columns: 2.5rem 1fr; } .installer-row .button { grid-column: 2; justify-self: start; } }

.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;
}

.order-line-remove {
    align-self: end;
    min-height: 2.75rem;
    padding: .55rem .75rem;
    border: 2px solid currentColor;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.order-line-remove:hover:not(:disabled),
.order-line-remove:focus-visible {
    background: var(--accent);
    color: var(--accent-text);
}

.order-line-remove:disabled {
    opacity: .4;
    cursor: not-allowed;
}


/* v0.9: typography and spacing refinements for long localized content. */
.eyebrow,
.register-label,
.hero-label,
.dealer-kicker,
.product-code,
.image-index,
.console-key,
.area-action-index,
.order-fieldset > legend span,
.section-number,
.hero-number,
.feature-number,
.installer-index {
    line-height: 1.2;
}

.lede,
.product-meta p,
.principles-copy > p,
.download-intro-copy,
.login-help,
.notice,
.review-details dd,
.invoice-card dd,
.download-source-note,
.product-history,
.feature-rows p {
    overflow-wrap: anywhere;
}

.main-nav a,
.language-nav a,
.area-nav > a,
.area-nav-logout {
    line-height: 1.3;
}

.dealer-login-grid > div:last-child,
.page-hero-grid > *,
.hero-editorial > * {
    min-width: 0;
}

.login-form .button.primary,
.order-submit-row .button.primary,
.confirm-actions .button,
.confirm-actions button,
.dealer-entry,
.area-action,
.invoice-card > footer .button {
    min-width: min(100%, 16rem);
}

@media (max-width: 980px) {
    .home-hero h1,
    .page-hero h1,
    .product-hero-copy h1 {
        max-width: 9ch;
    }
}

@media (max-width: 720px) {
    .home-hero,
    .page-hero,
    .product-hero {
        padding-top: 2.35rem;
    }

    .hero-title-block,
    .hero-copy,
    .page-hero-grid,
    .product-hero-grid {
        gap: 1rem;
    }

    .dealer-entry {
        min-height: 5.75rem;
    }
}


/* v1.0: compositional rework for more stable editorial spacing. */
.product-row .arrow-link,
.dealer-band .dealer-entry,
.login-form .button,
.area-action,
.download-actions .button {
    font-size: 1rem;
}

.product-row .arrow-link {
    margin-top: .35rem;
}

.section-index,
.area-section-heading,
.form-heading,
.order-fieldset > legend {
    gap: 0 .85rem;
}

.section-index h2,
.area-section-heading h2 {
    line-height: 1.08;
}

.principles-heading h2 {
    max-width: 8ch;
}

.dealer-capabilities,
.login-form {
    min-width: 0;
}

.dealer-login-grid > div:last-child {
    display: grid;
    align-content: start;
}

.utility-inner,
.header-main {
    row-gap: .75rem;
}

@media (max-width: 1080px) {
    .hero-editorial,
    .page-hero-grid,
    .product-row,
    .principles-grid,
    .dealer-band-inner {
        gap: 2rem;
    }

    .hero-copy {
        max-width: 38rem;
    }
}

@media (max-width: 720px) {
    .home-hero h1 {
        font-size: clamp(2.7rem, 12vw, 4.3rem);
    }

    .page-hero h1 {
        font-size: clamp(2.35rem, 10vw, 3.8rem);
    }

    .product-meta,
    .hero-title-block,
    .hero-copy,
    .principles-copy > p,
    .dealer-band p {
        max-width: none;
    }

    .dealer-band-inner {
        gap: 1.5rem;
    }
}

/* v1.1: markup-led composition and consistent 16:9 screenshots. */
.hero-mast {
    display: grid;
    gap: clamp(2.25rem, 5vw, 4rem);
    padding-top: clamp(2.5rem, 5vw, 4.75rem);
}

.hero-mast > h1 {
    max-width: 9ch;
    font-size: clamp(3rem, 6.1vw, 5.4rem);
    line-height: 1.02;
}

.hero-support-row {
    display: grid;
    grid-template-columns: minmax(15rem, .68fr) minmax(22rem, 1.15fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
    max-width: 64rem;
}

.hero-support-row .hero-since {
    margin: 0;
    align-self: start;
}

.hero-intro {
    min-width: 0;
    padding-top: 1.15rem;
    border-top: 2px solid var(--accent);
}

.hero-intro .lede {
    max-width: 40ch;
    margin: 0;
}

.hero-intro .actions {
    margin-top: 1.5rem;
}

.product-register {
    border-bottom: 3px solid var(--text);
}

.product-entry {
    display: grid;
    grid-template-columns: minmax(15rem, .7fr) minmax(0, 1.3fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
    padding: clamp(3rem, 6vw, 5rem) 0;
    border-bottom: 1px solid var(--border);
}

.product-entry:last-child {
    border-bottom: 0;
}

.product-entry-copy {
    min-width: 0;
    max-width: 26rem;
    display: grid;
    align-content: center;
    gap: 1rem;
}

.product-entry-copy .product-code {
    margin: 0;
    width: fit-content;
}

.product-entry-copy h3,
.product-entry-copy p {
    margin: 0;
}

.product-entry-copy p {
    color: var(--muted);
    line-height: 1.7;
}

.product-entry-media {
    position: relative;
    display: block;
    min-width: 0;
    border: 3px solid var(--text);
    background: var(--surface);
    overflow: hidden;
}

.product-entry-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: .5rem;
    background: var(--accent);
    pointer-events: none;
}

.product-entry-featured .product-code {
    background: var(--accent);
    color: var(--accent-text);
}

.product-entry-reverse {
    grid-template-columns: minmax(0, 1.3fr) minmax(15rem, .7fr);
}

.product-entry-reverse .product-entry-media {
    order: 1;
}

.product-entry-reverse .product-entry-copy {
    order: 2;
    justify-self: end;
}

.screenshot-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff;
}

.screenshot-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-entry-media .screenshot-frame,
.product-hero-visual .screenshot-frame,
.screen-card-media .screenshot-frame {
    background: #fff;
}

.product-entry-media .image-index {
    z-index: 3;
}

.principles-index {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.principles-body {
    display: grid;
    grid-template-columns: minmax(16rem, .7fr) minmax(0, 1.3fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.principles-intro {
    margin: 0;
    max-width: 38ch;
    font-size: 1.08rem;
    line-height: 1.75;
}

.principles-body .principles-list {
    margin: 0;
}

.page-hero-stack {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.page-hero-stack .eyebrow,
.page-hero-stack h1,
.page-hero-stack .lede {
    margin: 0;
}

.page-hero-stack h1 {
    max-width: 14ch;
    font-size: clamp(2.8rem, 5.4vw, 4.8rem);
}

.page-hero-stack .lede {
    max-width: 52ch;
    padding-top: .35rem;
    justify-self: start;
    line-height: 1.65;
}

.product-hero-visual .screenshot-frame {
    border: 0;
}

.screen-card-media {
    display: block;
    border: 3px solid var(--accent);
    background: var(--surface);
}

.screen-card a.screen-card-media {
    border: 3px solid var(--accent);
}

.screen-card-media img {
    display: block;
}

.screen-card-lead,
.kids-screen-grid .screen-card-lead,
.screen-grid-expanded > .screen-card:only-child {
    width: min(100%, 960px);
}

.screen-card-lead {
    justify-self: start;
}

@media (max-width: 1080px) {
    .hero-support-row {
        max-width: none;
    }

    .product-entry,
    .product-entry-reverse,
    .principles-body {
        grid-template-columns: 1fr;
    }

    .product-entry-copy,
    .product-entry-reverse .product-entry-copy {
        order: 2;
        justify-self: start;
        max-width: 38rem;
    }

    .product-entry-media,
    .product-entry-reverse .product-entry-media {
        order: 1;
        width: min(100%, 56rem);
    }

    .principles-intro {
        max-width: 55ch;
    }
}

@media (max-width: 820px) {
    .hero-support-row {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .hero-intro {
        max-width: 42rem;
    }

    .hero-mast > h1 {
        max-width: 10ch;
    }
}

@media (max-width: 560px) {
    .hero-mast {
        gap: 2rem;
    }

    .hero-mast > h1 {
        font-size: clamp(2.75rem, 13vw, 4.2rem);
        max-width: none;
    }

    .product-entry {
        padding-block: 2.75rem;
        gap: 1.75rem;
    }

    .page-hero-stack h1 {
        font-size: clamp(2.45rem, 11vw, 3.7rem);
    }
}

/* v1.3: restored public content and editorial detail sections. */
.detail-section {
    padding: clamp(4rem, 7vw, 6.5rem) 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 2px solid var(--text);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.detail-item {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: .7rem 1rem;
    padding: 1.5rem 1.25rem 1.7rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-item:nth-child(odd) {
    border-right: 1px solid var(--border);
    padding-right: 1.5rem;
}

.detail-item:nth-child(even) {
    padding-left: 1.5rem;
}

.detail-index {
    grid-row: 1 / span 2;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 900;
}

.detail-item h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    line-height: 1.12;
}

.detail-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.contact-band {
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    background: var(--accent);
    color: var(--accent-text);
}

.contact-band-inner {
    display: grid;
    grid-template-columns: minmax(14rem, .65fr) minmax(0, 1.35fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
}

.contact-band h2,
.contact-band p {
    margin: 0;
}

.contact-band a {
    color: var(--accent-text);
    font-weight: 900;
}

.about-history-copy {
    width: min(760px, 100%);
    margin: clamp(2rem, 4vw, 3rem) 0 0 auto;
    font-size: 1.08rem;
    line-height: 1.78;
}

.about-history-copy p {
    margin: 0 0 1.6rem;
}

.contact-section {
    padding: clamp(4rem, 7vw, 6.5rem) 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(16rem, .72fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.contact-grid > div:first-child {
    max-width: 32rem;
}

.contact-grid > div:first-child p:not(.eyebrow) {
    line-height: 1.7;
}

.contact-form textarea {
    width: 100%;
    padding: .75rem .8rem;
    border: 2px solid var(--text);
    border-radius: 0;
    background: var(--surface);
    color: var(--text);
    resize: vertical;
}

.screen-grid-expanded {
    align-items: start;
}

@media (max-width: 900px) {
    .detail-grid,
    .contact-band-inner,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .detail-item,
    .detail-item:nth-child(odd),
    .detail-item:nth-child(even) {
        border-right: 0;
        padding-inline: 0;
    }

    .about-history-copy {
        margin-left: 0;
    }
}


/* v1.5: international brand lockup and wider header breakpoint. */
@media (max-width: 980px) {
    .header-main {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 1rem;
    }
}


/* v1.6: international brand lockup and safer display-heading wrapping. */
.home-hero h1:lang(de) {
    max-width: 10.4ch;
    font-size: clamp(3rem, 5.7vw, 5.15rem);
}

.home-hero h1:lang(en) {
    max-width: 10ch;
}

.home-hero h1:lang(fi) {
    max-width: 11.5ch;
}

.footer-veraccess-lockup {
    border-color: var(--brand-text);
}

@media (max-width: 720px) {
    .home-hero h1:lang(de),
    .home-hero h1:lang(en),
    .home-hero h1:lang(fi) {
        max-width: 10ch;
        font-size: clamp(2.65rem, 11.5vw, 4.1rem);
    }
}

/* v1.7: wider masthead composition without losing the left anchor. */
.home-hero .hero-mast > h1 {
    width: min(100%, 13.5ch);
    max-width: none;
    font-size: clamp(3rem, 5.6vw, 5.15rem);
    line-height: 1.01;
    text-wrap: balance;
}

.home-hero .hero-mast > h1:lang(de) {
    width: min(100%, 15.2ch);
    font-size: clamp(3rem, 5.25vw, 4.95rem);
}

.home-hero .hero-mast > h1:lang(en) {
    width: min(100%, 14.2ch);
}

.home-hero .hero-mast > h1:lang(fi) {
    width: min(100%, 15.5ch);
    font-size: clamp(3rem, 5.25vw, 4.95rem);
}

.home-hero .hero-mast > h1:lang(sv) {
    width: min(100%, 13.8ch);
}

.hero-support-row {
    max-width: none;
    grid-template-columns: minmax(15rem, .72fr) minmax(24rem, 1fr);
}

.hero-intro {
    max-width: 34rem;
    justify-self: end;
    width: 100%;
}

@media (max-width: 1080px) {
    .home-hero .hero-mast > h1,
    .home-hero .hero-mast > h1:lang(de),
    .home-hero .hero-mast > h1:lang(en),
    .home-hero .hero-mast > h1:lang(fi),
    .home-hero .hero-mast > h1:lang(sv) {
        width: min(100%, 13ch);
    }

    .hero-intro {
        justify-self: start;
        max-width: 42rem;
    }
}

@media (max-width: 720px) {
    .home-hero .hero-mast > h1,
    .home-hero .hero-mast > h1:lang(de),
    .home-hero .hero-mast > h1:lang(en),
    .home-hero .hero-mast > h1:lang(fi),
    .home-hero .hero-mast > h1:lang(sv) {
        width: 100%;
        font-size: clamp(2.65rem, 11.5vw, 4.1rem);
    }
}


/* v1.8: stacked secondary page headings and search metadata support. */
.compact-area-hero .page-hero-stack {
    gap: .85rem;
}

.compact-area-hero .page-hero-stack .lede {
    max-width: 58ch;
}

@media (min-width: 1081px) {
    .about-hero .page-hero-stack,
    .downloads-hero .page-hero-stack,
    .dealer-hero .page-hero-stack,
    .compact-area-hero .page-hero-stack {
        width: min(1120px, calc(100% - 2.5rem));
    }
}


/* Small branded labels use the active theme text color on content surfaces. */
.contact-section .eyebrow-on-surface {
    display: inline-block;
    margin-bottom: .9rem;
}

/* v1.12: reseller pricing and invoice preparation. */
.area-dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.price-list-meta,
.invoice-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 2px solid var(--text);
}

.price-list-meta p,
.invoice-toolbar p {
    margin: 0;
}

.price-table td:first-child {
    min-width: 20rem;
}

.price-table td:not(:first-child),
.price-table th:not(:first-child),
.invoice-lines td:not(:first-child),
.invoice-lines th:not(:first-child) {
    white-space: nowrap;
    text-align: right;
}

.priced-review-lines li {
    align-items: start;
}

.review-line-product,
.review-line-price {
    display: grid;
    gap: .25rem;
}

.review-line-product > span,
.review-line-price > span {
    color: var(--muted);
    font-size: .9rem;
}

.review-line-price {
    justify-items: end;
    text-align: right;
    min-width: 10rem;
}

.order-price-summary,
.invoice-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 3px solid var(--text);
}

.order-price-summary strong,
.invoice-total-row strong {
    font-size: 1.35rem;
}

.invoice-toolbar > div {
    max-width: 46rem;
}

.invoice-lines-wrap {
    min-width: 0;
}

.invoice-lines {
    font-size: .94rem;
}

.invoice-card-main {
    grid-template-columns: minmax(15rem, .7fr) minmax(28rem, 1.3fr);
}

@media (max-width: 900px) {
    .area-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .area-action {
        border-right: 1px solid var(--text);
        border-bottom: 1px solid var(--text);
    }

    .area-action:nth-child(even) {
        border-right: 0;
    }

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

@media (max-width: 640px) {
    .area-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .area-action,
    .area-action:nth-child(even) {
        border-right: 0;
    }

    .price-list-meta,
    .invoice-toolbar,
    .priced-review-lines li,
    .order-price-summary,
    .invoice-total-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .review-line-price {
        justify-items: start;
        text-align: left;
    }
}


/* v1.14: read-only reseller-area activation state. */
.area-read-only-notice {
    margin-bottom: 1.5rem;
}
.area-action-disabled {
    cursor: not-allowed;
}
.area-action-disabled .area-action-index,
.area-action-disabled strong,
.area-action-disabled span {
    opacity: .82;
}


/* v1.15: reseller-area layout corrections. */
.area-dashboard-hero .page-hero-stack {
    display: grid;
    gap: 1rem;
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.area-dashboard-hero h1 {
    max-width: 15ch;
}

.area-dashboard-hero .dealer-user-summary {
    width: fit-content;
    max-width: min(100%, 34rem);
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, auto);
    align-items: baseline;
    gap: .35rem .9rem;
    margin-top: .45rem;
    padding-left: 1rem;
    border-left: .42rem solid var(--accent);
}

.area-dashboard-hero .dealer-user-summary strong {
    color: var(--brand-text);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.area-dashboard-hero .dealer-user-summary span {
    color: var(--accent);
    font-size: .9rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.area-nav {
    width: fit-content;
    max-width: 100%;
}

.area-nav form {
    margin-left: 0;
}

.area-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    padding: 0;
    border: 2px solid var(--text);
    background: var(--text);
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.area-dashboard-grid .area-action {
    grid-column: span 3;
    min-width: 0;
    min-height: 12.5rem;
    border: 0;
    padding: 1.35rem;
}

.area-dashboard-grid-admin .area-action {
    grid-column: span 2;
}

.area-dashboard-grid-admin .area-action:nth-child(n + 4) {
    grid-column: span 3;
}

.area-dashboard-grid .area-action strong {
    font-size: clamp(1.45rem, 2.25vw, 2rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.area-dashboard-grid .area-action > span:not(.area-action-index):not(.area-action-arrow) {
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.area-dashboard-grid .area-action-arrow {
    align-self: end;
}

.area-action.primary-action.area-action-disabled {
    background: var(--surface-muted);
    color: var(--text);
    box-shadow: inset 0 .4rem 0 var(--accent);
}

.area-action-disabled .area-action-index,
.area-action-disabled strong,
.area-action-disabled span {
    opacity: 1;
}

@media (max-width: 900px) {
    .area-dashboard-grid,
    .area-dashboard-grid-admin,
    .area-dashboard-grid-reseller {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .area-dashboard-grid .area-action,
    .area-dashboard-grid-admin .area-action,
    .area-dashboard-grid-admin .area-action:nth-child(n + 4),
    .area-dashboard-grid-reseller .area-action {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .area-dashboard-hero .dealer-user-summary {
        grid-template-columns: 1fr;
        gap: .15rem;
    }

    .area-nav {
        width: 100%;
    }

    .area-dashboard-grid,
    .area-dashboard-grid-admin,
    .area-dashboard-grid-reseller {
        grid-template-columns: 1fr;
    }
}


/* v1.16: keep the reseller navigation compact instead of pushing logout to the far edge. */
.area-nav {
    width: fit-content;
    max-width: 100%;
}
.area-nav form {
    border-right: 0;
}


/* v1.17: compact area navigation and dev-only legacy diagnostics. */
.area-nav {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    align-self: flex-start;
}
.area-nav > a,
.area-nav form {
    flex: 0 0 auto;
}
.area-nav form {
    display: flex;
    width: auto;
}
.legacy-diagnostics {
    margin-top: 1.5rem;
    max-width: 46rem;
    padding: 1rem 1.2rem;
    border: 2px solid var(--text);
    background: var(--surface);
}
.legacy-diagnostics summary {
    cursor: pointer;
    font-weight: 800;
}
.legacy-diagnostics p {
    margin: .75rem 0 0;
}
.legacy-diagnostics ul {
    margin: .75rem 0 0;
}

/* v1.18: group license history by product. */
.license-product-groups {
    display: grid;
    gap: clamp(2rem, 4vw, 3.5rem);
}

.license-product-group {
    min-width: 0;
}

.license-product-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0 0 .8rem;
    border-bottom: 3px solid var(--text);
}

.license-product-heading > div {
    display: grid;
    gap: .35rem;
    min-width: 0;
}

.license-product-heading span {
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    color: var(--muted);
}

.license-product-heading h3 {
    font-size: clamp(1.45rem, 2.5vw, 2.15rem);
    line-height: 1.1;
}

.license-product-heading > strong {
    display: grid;
    place-items: center;
    min-width: 2.6rem;
    min-height: 2.6rem;
    padding: .35rem .55rem;
    background: var(--accent);
    color: var(--accent-text);
    font-variant-numeric: tabular-nums;
}

.license-product-group .license-history-list {
    border-top: 0;
}

.license-history-row-grouped {
    grid-template-columns: minmax(10rem, .7fr) minmax(13rem, 1fr) minmax(10rem, .55fr);
}

.license-row-detail {
    display: grid;
    gap: .25rem;
}

.license-row-detail span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
}

.license-row-detail strong {
    font-size: .95rem;
}

@media (max-width: 820px) {
    .license-history-row-grouped {
        grid-template-columns: 1fr 1fr;
    }

    .license-history-row-grouped .license-meta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .license-product-heading {
        align-items: start;
    }

    .license-history-row-grouped {
        grid-template-columns: 1fr;
    }

    .license-history-row-grouped .license-meta {
        grid-column: auto;
    }
}

/* v1.20: market-prioritized reseller catalogue. */
.market-product-group + .market-product-group {
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.market-product-group-title {
    margin: 0 0 1rem;
    padding-bottom: .65rem;
    border-bottom: 3px solid var(--text);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.15;
}

select optgroup {
    font-weight: 800;
}

select optgroup option {
    font-weight: 400;
}


/* v1.21: keep reseller-area hero aligned to the same content column as the rest of the page. */
.area-dashboard-hero .page-hero-stack .dealer-user-summary {
    justify-self: start;
}

@media (max-width: 720px) {
    .area-dashboard-hero .page-hero-stack {
        width: min(100%, calc(100% - 1.25rem));
    }
}


/* v1.22: reseller company identity and read-only license status checker. */
.area-dashboard-hero .dealer-user-summary {
    display: block;
    width: fit-content;
    max-width: min(100%, 42rem);
}

.area-dashboard-hero .dealer-user-summary strong {
    display: block;
}

.license-check-form {
    margin-bottom: 1.5rem;
}

.license-check-form .field {
    max-width: 26rem;
}

.license-check-form input {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: .06em;
}

.license-check-feedback {
    margin-top: 1.25rem;
}

.license-check-results {
    display: grid;
    gap: 1.25rem;
}

.license-status-card {
    border: 3px solid var(--text);
    background: var(--surface);
}

.license-status-card > header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.license-status-card h3 {
    margin-top: .8rem;
    font-size: clamp(1.4rem, 2.5vw, 2.1rem);
}

.license-status {
    flex: 0 0 auto;
    padding: .45rem .65rem;
    border: 2px solid currentColor;
    font-size: .9rem;
}

.license-status.available {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--accent);
}

.license-status.used {
    background: var(--brand);
    color: var(--brand-text);
    border-color: var(--brand);
}

.license-status-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.license-status-details > div {
    padding: 1rem 1.2rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.license-status-details > div:nth-child(3n) {
    border-right: 0;
}

.license-status-details dt {
    margin-bottom: .3rem;
    font-size: .8rem;
    font-weight: 800;
    color: var(--muted);
}

.license-status-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.license-status-details code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 1rem;
}

@media (max-width: 760px) {
    .license-status-card > header {
        display: grid;
    }

    .license-status {
        justify-self: start;
    }

    .license-status-details {
        grid-template-columns: 1fr;
    }

    .license-status-details > div,
    .license-status-details > div:nth-child(3n) {
        border-right: 0;
    }
}


/* v1.23: accessible collapsible product groups for license history. */
.license-disclosure-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin: 0 0 1rem;
}

.license-disclosure-toolbar[hidden] {
    display: none;
}

.compact-button {
    min-height: 2.6rem;
    padding: .45rem .75rem;
    font-size: .92rem;
}

.license-product-groups {
    display: grid;
    gap: .8rem;
}

.license-product-group {
    border: 2px solid var(--text);
    background: var(--surface);
}

.license-product-summary {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 4.4rem;
    padding: .85rem 3.5rem .85rem 1rem;
    cursor: pointer;
    list-style: none;
    background: var(--surface);
    color: var(--text);
}

.license-product-summary::-webkit-details-marker {
    display: none;
}

.license-product-summary::after {
    content: "+";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.8rem;
    height: 1.8rem;
    display: grid;
    place-items: center;
    border: 2px solid currentColor;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}

.license-product-group[open] > .license-product-summary::after {
    content: "−";
}

.license-product-group[open] > .license-product-summary {
    background: var(--accent);
    color: var(--accent-text);
}

.license-product-summary:hover {
    background: var(--surface-muted);
}

.license-product-group[open] > .license-product-summary:hover {
    background: var(--accent);
}

.license-product-summary-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: .8rem;
    min-width: 0;
}

.license-product-summary-main > strong {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.license-product-code {
    display: inline-block;
    padding: .2rem .42rem;
    background: var(--brand);
    color: var(--accent);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1.2;
}

.license-product-group[open] .license-product-code {
    background: var(--accent-text);
    color: var(--accent);
}

.license-product-count {
    white-space: nowrap;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 800;
}

.license-product-group[open] .license-product-count {
    color: var(--accent-text);
}

.license-product-content {
    padding: 0 1rem .4rem;
    border-top: 2px solid var(--text);
}

.license-product-content .license-history-list {
    border-top: 0;
}

@media (max-width: 640px) {
    .license-product-summary {
        grid-template-columns: 1fr;
        gap: .4rem;
        padding-right: 3.5rem;
    }

    .license-product-summary-main {
        grid-template-columns: 1fr;
        gap: .35rem;
    }

    .license-product-code {
        width: fit-content;
    }

    .license-product-count {
        white-space: normal;
    }

    .license-product-content {
        padding-inline: .75rem;
    }
}

/* v1.24: dedicated administration area. */
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: -1.25rem 0 2.5rem;
    border-bottom: 2px solid var(--text);
}

.admin-nav a {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    padding: .65rem .9rem;
    border-right: 1px solid var(--border);
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a[aria-current="page"] {
    background: var(--text);
    color: var(--surface);
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 3px solid var(--text);
}

.admin-dashboard-card {
    min-height: 12rem;
    display: grid;
    align-content: start;
    gap: .7rem;
    padding: 1.3rem;
    color: var(--text);
    text-decoration: none;
    border-right: 1px solid var(--text);
    border-bottom: 1px solid var(--text);
    background: var(--surface);
}

.admin-dashboard-card:nth-child(2n) { border-right: 0; }
.admin-dashboard-card:nth-last-child(-n+2) { border-bottom: 0; }
.admin-dashboard-card:hover { background: var(--accent); color: var(--accent-text); }
.admin-dashboard-card > span { font-size: .78rem; font-weight: 900; }
.admin-dashboard-card > strong { font-size: clamp(1.45rem, 2.8vw, 2.3rem); line-height: 1.05; }
.admin-dashboard-card p { margin: 0; max-width: 38ch; }

.admin-page-toolbar,
.invoice-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 3px solid var(--text);
}

.admin-page-toolbar p,
.invoice-toolbar p { margin: .3rem 0 0; }

.admin-users-table td:last-child { white-space: nowrap; }

.generated-password {
    margin: 1.5rem 0;
    padding: 1.2rem;
    border: 3px solid var(--text);
    background: var(--accent);
    color: var(--accent-text);
}
.generated-password p { margin: .35rem 0 1rem; }
.generated-password-row { display: flex; align-items: stretch; gap: .75rem; }
.generated-password-row input {
    min-width: 0;
    flex: 1;
    padding: .7rem .8rem;
    border: 2px solid var(--text);
    background: var(--surface);
    color: var(--text);
    font: 700 1rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.admin-user-form { max-width: 52rem; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field-help { margin: .4rem 0 0; color: var(--muted); font-size: .92rem; }
.admin-submit-row { margin-top: 1.5rem; }

.admin-product-list { display: grid; gap: 1rem; }
.admin-product { border: 2px solid var(--text); background: var(--surface); }
.admin-product > summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    cursor: pointer;
    font-weight: 800;
}
.admin-product[open] > summary { background: var(--accent); color: var(--accent-text); border-bottom: 2px solid var(--text); }
.admin-product-form { padding: 1.2rem; }
.admin-product-active { display: inline-flex; gap: .6rem; align-items: center; margin-bottom: 1rem; font-weight: 800; }
.admin-product-form table input[type="text"],
.admin-product-form table input[type="number"],
.admin-product-form table input:not([type]) {
    width: 100%;
}
.admin-product-form table input {
    min-height: 2.7rem;
    padding: .45rem .55rem;
    border: 2px solid var(--text);
    background: var(--surface);
    color: var(--text);
}
.admin-product-form table input[type="checkbox"] { width: 1.35rem; min-height: 1.35rem; padding: 0; }
.small-number-input { width: 5.5rem !important; }
.price-input { width: 7.5rem !important; }
.currency-input { width: 4.8rem !important; text-transform: uppercase; }

@media (max-width: 760px) {
    .admin-dashboard-grid,
    .admin-form-grid { grid-template-columns: 1fr; }
    .admin-dashboard-card,
    .admin-dashboard-card:nth-child(2n),
    .admin-dashboard-card:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--text); }
    .admin-dashboard-card:last-child { border-bottom: 0; }
    .admin-page-toolbar,
    .invoice-toolbar,
    .generated-password-row { align-items: stretch; flex-direction: column; }
    .admin-nav { overflow-x: auto; flex-wrap: nowrap; }
    .admin-nav a { white-space: nowrap; }
}


/* v1.25: keep the administrative order fieldset legend inside its dark visual context. */
@media (max-width: 520px) {
    .admin-order-block > legend {
        width: calc(100% + 1.6rem);
        margin-left: -.8rem;
        padding-inline: .8rem;
    }
    .admin-order-block {
        padding-left: .8rem;
        padding-right: .8rem;
    }
}


/* v1.26: stronger visual transition after a completed order. */
@media (prefers-reduced-motion: no-preference) {
    .complete-hero-layout {
        animation: order-complete-enter .32s ease-out both;
    }
    .complete-status-grid {
        animation: order-complete-enter .42s .08s ease-out both;
    }
}

@keyframes order-complete-enter {
    from {
        opacity: 0;
        transform: translateY(.75rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .complete-hero-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .complete-mark {
        width: 4.75rem;
    }
    .complete-status-grid {
        grid-template-columns: 1fr;
    }
    .complete-status-grid > div {
        border-right: 0;
        border-bottom: 1px solid var(--accent-text);
    }
    .complete-status-grid > div:last-child {
        border-bottom: 0;
    }
}


/* v1.27: actionable license delivery and order details. */
.license-delivery-row {
    grid-template-columns: minmax(12rem, .8fr) minmax(13rem, 1fr) auto;
    gap: 1rem 1.5rem;
    align-items: center;
}

.license-delivery-product {
    display: grid;
    gap: .25rem;
}

.license-delivery-product > span {
    font-weight: 900;
}

.license-delivery-product small {
    color: var(--muted);
}

.license-delivery-key {
    color: var(--text);
    background: transparent;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: .035em;
    overflow-wrap: anywhere;
}

.license-delivery-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .65rem;
}

.compact-button {
    min-height: 2.75rem;
    padding: .5rem .75rem;
    font-size: .92rem;
}

.order-detail-link {
    font-weight: 800;
}

.order-detail-summary {
    width: min(50rem, 100%);
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.order-license-groups {
    display: grid;
    gap: 2rem;
}

.order-license-group {
    border: 2px solid var(--text);
    background: var(--surface);
}

.order-license-group-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.2rem;
    background: var(--accent);
    color: var(--accent-text);
}

.order-license-group-heading > div {
    display: grid;
    gap: .25rem;
}

.order-license-group-heading span {
    font-weight: 900;
}

.order-license-group-heading h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.order-license-group .license-key-list {
    border-top: 0;
    padding-inline: 1.2rem;
}

.order-license-group .license-delivery-row {
    grid-template-columns: minmax(13rem, 1fr) auto;
}

.order-detail-actions {
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (max-width: 820px) {
    .license-delivery-row,
    .order-license-group .license-delivery-row {
        grid-template-columns: 1fr;
    }

    .license-delivery-actions {
        justify-content: flex-start;
    }

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

/* v1.29: administrative order management and protected destructive actions. */
.admin-dashboard-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
}

.admin-orders-table td,
.admin-orders-table th {
    white-space: nowrap;
}

.admin-orders-table td:nth-child(3) {
    min-width: 13rem;
    white-space: normal;
}

.admin-order-summary {
    max-width: 58rem;
}

.admin-danger-zone {
    margin-top: clamp(3.5rem, 7vw, 6rem);
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border: 3px solid var(--text);
    border-top-width: .7rem;
    background: var(--surface);
}

.admin-danger-heading {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding-bottom: 1.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--text);
}

.admin-danger-heading > span {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    background: var(--text);
    color: var(--surface);
    font-size: 1.5rem;
    font-weight: 900;
}

.admin-danger-heading h2 {
    margin: 0 0 .55rem;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.admin-danger-heading p {
    margin: 0;
    max-width: 64ch;
}

.admin-delete-order-form {
    display: grid;
    gap: 1rem;
    max-width: 46rem;
}

.admin-delete-order-form .field {
    margin: 0;
}

.admin-confirm-check {
    display: grid;
    grid-template-columns: 1.35rem minmax(0, 1fr);
    gap: .7rem;
    align-items: start;
    font-weight: 750;
}

.admin-confirm-check input {
    width: 1.25rem;
    height: 1.25rem;
    margin: .18rem 0 0;
}

.danger-button {
    width: fit-content;
    background: var(--text);
    color: var(--surface);
    border-color: var(--text);
}

.danger-button:hover {
    background: var(--accent);
    color: var(--accent-text);
    border-color: var(--text);
}

@media (max-width: 760px) {
    .admin-dashboard-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .admin-danger-heading {
        grid-template-columns: 1fr;
    }
}

/* v1.32: compact file metadata inside download actions. */
.download-file-meta { margin-left: .55rem; padding-left: .55rem; border-left: 1px solid currentColor; font-size: .78em; font-weight: 800; white-space: nowrap; }

/* Reseller area introduction */
.area-welcome {
    margin: 0 0 clamp(2rem, 4vw, 3rem);
    border: 3px solid var(--text);
    background: var(--surface);
}
.area-welcome-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .9rem 1.1rem;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: .5rem solid var(--accent);
    background: var(--brand);
    color: var(--brand-text);
}
.area-welcome-header > span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: .2rem .55rem;
    background: var(--accent);
    color: var(--accent-text);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.area-welcome-header h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.7rem);
    color: inherit;
}
.area-welcome-body {
    padding: clamp(1.2rem, 3vw, 2rem);
}
.area-welcome-copy {
    display: grid;
    gap: 1.3rem;
    max-width: 52rem;
}
.area-welcome-copy > p,
.area-welcome-copy section,
.area-welcome-copy section p {
    margin: 0;
}
.area-welcome-copy h3 {
    margin-bottom: .45rem;
    font-size: clamp(1.18rem, 2vw, 1.45rem);
    letter-spacing: -.015em;
}
.area-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.6rem;
}
.area-info-page {
    max-width: 58rem;
    margin-bottom: clamp(3rem, 7vw, 6rem);
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 3px solid var(--text);
    background: var(--surface);
}
.area-info-page > h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

@media (max-width: 620px) {
    .area-welcome-header {
        grid-template-columns: 1fr;
    }
    .area-welcome-header > span {
        justify-self: start;
    }
    .area-welcome-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .area-welcome-actions .button {
        width: 100%;
    }
}

/* v2.0 RC5: keep the global header inside narrow mobile viewports. */
.header-main > nav,
.utility-inner > *,
.main-nav,
.language-nav,
.language-nav ul {
    min-width: 0;
    max-width: 100%;
}

.brand,
.brand-lockup,
.veraccess-lockup {
    max-width: 100%;
}

@media (max-width: 980px) {
    .header-main > nav,
    .main-nav {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .main-nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .main-nav li,
    .main-nav a {
        min-width: 0;
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: .72rem 0;
        overflow-wrap: anywhere;
    }

    .language-nav,
    .language-nav ul {
        width: 100%;
    }
}

/* v2.0 RC6: prevent the home hero support row from reintroducing a desktop minimum width on mobile. */
@media (max-width: 820px) {
    .hero-support-row {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
    }

    .hero-support-row > *,
    .hero-intro,
    .hero-since {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .hero-intro {
        justify-self: stretch;
    }
}

/* v2.0 RC8: allow long localized words to wrap safely on narrow screens. */
.main-nav a,
.language-nav a,
.area-nav > a,
.area-nav-logout,
.home-hero h1,
.page-hero h1,
.product-hero-copy h1,
.area-dashboard-hero h1 {
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

@media (max-width: 560px) {
    .main-nav a,
    .area-nav > a,
    .area-nav-logout {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        white-space: normal;
    }
}
