/* ==========================================================================
   Arsh Art Kitchen Visualizer

   The design tokens below are copied from cabinetspainting.ca's own --aa-*
   custom properties, so the visualizer renders identically to the main site
   without sharing a stylesheet or depending on WordPress in any way.

   Mobile-first throughout: the base rules target a 375px phone and the media
   queries only add room as the screen grows.
   ========================================================================== */

:root {
    /* Brand palette - matches the main website exactly. */
    --aa-navy: #0E2A47;
    --aa-navy-dark: #091E33;
    --aa-navy-deep: #06182E;
    --aa-footer: #050F1C;
    --aa-red: #D32030;
    --aa-red-hover: #B01724;
    --aa-gold: #B5894A;
    --aa-gold-text: #7A5C2E;
    --aa-cream: #FAF6EE;

    --aa-ink: #1F2937;
    --aa-ink-soft: #42485A;
    --aa-muted: #5B6473;
    --aa-line: #E5E7EB;
    --aa-border: #EAE2D2;
    --aa-bg-soft: #F7F8FA;
    --aa-white: #FFFFFF;
    --aa-success: #1F7A5A;
    --aa-warn-bg: #FDF4E3;
    --aa-warn-fg: #8A5D00;
    --aa-fail-bg: #FCF0F1;
    --aa-fail-fg: #A3262E;
    --aa-ok-bg: #E7F6EC;
    --aa-ok-fg: #0A6B26;

    --aa-radius: 8px;
    --aa-radius-lg: 14px;
    --aa-shadow-sm: 0 4px 14px rgba(14, 42, 71, .06);
    --aa-shadow-md: 0 6px 24px rgba(14, 42, 71, .10);
    --aa-shadow-lg: 0 12px 32px rgba(14, 42, 71, .14);

    --aa-container: 1200px;
    --aa-narrow: 880px;

    --aa-font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

/*
 * The JavaScript hides and shows parts of the wizard with the `hidden`
 * attribute. The browser's own `[hidden] { display: none }` lives in the user
 * agent stylesheet, so ANY author rule that sets an explicit display - such as
 * `.aa-layout { display: block }` - silently beats it and the element stays on
 * screen while `element.hidden` reads true.
 *
 * That is exactly how "Perimeter + island" remained visible to a customer who
 * had said their kitchen has no island. Declaring the rule here, in author CSS
 * with !important, makes `hidden` mean hidden for every element in the
 * application rather than fixing one class and waiting for the next one.
 */
[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--aa-white);
    color: var(--aa-ink);
    font-family: var(--aa-font-body);
    font-size: 16px;
    line-height: 1.6;
    /* Never allow the page to slide sideways on a phone. */
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--aa-navy);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

/* A visible focus ring for keyboard users, on every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--aa-gold);
    outline-offset: 2px;
    border-radius: 4px;
}

h1, h2, h3, h4 {
    margin: 0 0 .6em;
    font-weight: 800;
    line-height: 1.2;
    color: var(--aa-navy);
}

h1 { font-size: 1.85rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }

.aa-container {
    width: 100%;
    max-width: var(--aa-container);
    margin: 0 auto;
    padding: 0 16px;
}

.aa-narrow { max-width: var(--aa-narrow); }

.aa-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link for keyboard and screen-reader users. */
.aa-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--aa-navy);
    color: #fff;
    padding: 12px 18px;
    border-radius: 0 0 var(--aa-radius) 0;
}

.aa-skip:focus {
    left: 0;
}

/* --------------------------------------------------------------------------
   Trust bar - the thin navy strip at the very top
   -------------------------------------------------------------------------- */

.aa-trustbar {
    background: var(--aa-navy);
    color: #E8EDF3;
    font-size: .78rem;
    line-height: 1.5;
    padding: 8px 0;
}

.aa-trustbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 18px;
    text-align: center;
}

.aa-trustbar__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.aa-trustbar a {
    color: var(--aa-gold);
    font-weight: 700;
}

.aa-trustbar svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: currentColor;
    opacity: .85;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.aa-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--aa-white);
    border-bottom: 1px solid var(--aa-line);
    box-shadow: var(--aa-shadow-sm);
}

.aa-header__inner {
    display: flex;
    /* The nav is a third flex item. On a phone it must drop onto its own
       full-width row below the logo rather than squeezing in beside it. */
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.aa-header__logo img {
    width: auto;
    height: 40px;
}

.aa-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--aa-line);
    border-radius: var(--aa-radius);
    background: var(--aa-white);
    color: var(--aa-navy);
    cursor: pointer;
}

.aa-header__toggle svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.aa-header__toggle .aa-icon-close { display: none; }
.aa-header__toggle[aria-expanded="true"] .aa-icon-open { display: none; }
.aa-header__toggle[aria-expanded="true"] .aa-icon-close { display: block; }

/* Navigation: a drawer on phones, a row on desktop. */
.aa-nav {
    display: none;
    /* Own full-width row, under the logo and toggle. */
    flex: 0 0 100%;
    width: 100%;
    border-top: 1px solid var(--aa-line);
    padding: 8px 0 16px;
}

.aa-nav.is-open { display: block; }

.aa-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aa-nav__link {
    display: block;
    padding: 12px 4px;
    color: var(--aa-ink);
    font-weight: 600;
    font-size: .95rem;
    border-bottom: 1px solid var(--aa-bg-soft);
}

.aa-nav__link:hover { color: var(--aa-red); text-decoration: none; }

.aa-nav__sublist {
    list-style: none;
    margin: 0;
    padding: 0 0 6px 14px;
}

.aa-nav__sublist .aa-nav__link {
    font-weight: 500;
    font-size: .9rem;
    color: var(--aa-muted);
    padding: 9px 4px;
    border-bottom: 0;
}

.aa-nav__group > summary {
    display: block;
    padding: 12px 4px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border-bottom: 1px solid var(--aa-bg-soft);
    list-style: none;
}

.aa-nav__group > summary::-webkit-details-marker { display: none; }

.aa-nav__group > summary::after {
    content: '+';
    float: right;
    color: var(--aa-muted);
    font-weight: 700;
}

.aa-nav__group[open] > summary::after { content: '\2013'; }

.aa-nav__cta {
    display: block;
    margin-top: 12px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.aa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* 48px tall: comfortable for a thumb. */
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--aa-radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}

.aa-btn:hover { text-decoration: none; }
.aa-btn:active { transform: translateY(1px); }

.aa-btn--primary {
    background: var(--aa-red);
    border-color: var(--aa-red);
    color: #fff;
}

.aa-btn--primary:hover {
    background: var(--aa-red-hover);
    border-color: var(--aa-red-hover);
    color: #fff;
}

.aa-btn--navy {
    background: var(--aa-navy);
    border-color: var(--aa-navy);
    color: #fff;
}

.aa-btn--navy:hover { background: var(--aa-navy-dark); color: #fff; }

.aa-btn--outline {
    background: transparent;
    border-color: var(--aa-navy);
    color: var(--aa-navy);
}

.aa-btn--outline:hover { background: var(--aa-navy); color: #fff; }

.aa-btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */

.aa-main { display: block; }

.aa-hero {
    background: linear-gradient(180deg, var(--aa-cream) 0%, var(--aa-white) 100%);
    border-bottom: 1px solid var(--aa-border);
    padding: 32px 0 28px;
}

.aa-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    border: 1px solid var(--aa-border);
    border-radius: var(--aa-radius);
    background: var(--aa-white);
    padding: 7px 14px;
    color: var(--aa-gold-text);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.aa-hero__lead {
    color: var(--aa-ink-soft);
    font-size: 1.02rem;
    max-width: 44rem;
}

.aa-section { padding: 32px 0; }
.aa-section--soft { background: var(--aa-bg-soft); }

.aa-card {
    border: 1px solid var(--aa-line);
    border-radius: var(--aa-radius-lg);
    background: var(--aa-white);
    box-shadow: var(--aa-shadow-sm);
    padding: 20px;
}

.aa-card + .aa-card { margin-top: 16px; }

.aa-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: var(--aa-ok-bg);
    padding: 7px 15px;
    color: var(--aa-ok-fg);
    font-size: .85rem;
    font-weight: 700;
}

.aa-status-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Numbered steps */
.aa-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: aa-step;
}

.aa-step {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--aa-line);
}

.aa-step:first-child { border-top: 0; padding-top: 0; }

.aa-step__num {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--aa-navy);
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
}

.aa-step__title {
    margin: 0 0 2px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--aa-ink);
}

.aa-step__text {
    margin: 0;
    color: var(--aa-muted);
    font-size: .92rem;
}

/* Mode choice cards */
.aa-modes {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    margin-top: 18px;
}

.aa-mode {
    border: 2px solid var(--aa-line);
    border-radius: var(--aa-radius-lg);
    background: var(--aa-white);
    padding: 18px;
}

.aa-mode__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--aa-navy);
}

.aa-mode__text {
    margin: 0;
    color: var(--aa-muted);
    font-size: .92rem;
}

.aa-note {
    margin: 0;
    color: var(--aa-muted);
    font-size: .85rem;
}

.aa-formats {
    display: inline-block;
    border-radius: var(--aa-radius);
    background: var(--aa-bg-soft);
    padding: 3px 9px;
    font-weight: 700;
    color: var(--aa-ink);
    font-size: .85rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.aa-footer {
    background: var(--aa-footer);
    color: #C6CEDA;
    padding: 34px 0 96px; /* bottom room for the mobile call bar */
    font-size: .92rem;
}

.aa-footer a { color: #C6CEDA; }
.aa-footer a:hover { color: #fff; }

.aa-footer__grid {
    display: grid;
    gap: 26px;
    grid-template-columns: 1fr;
}

.aa-footer__title {
    margin: 0 0 12px;
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.aa-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aa-footer__list li { margin-bottom: 9px; }

.aa-footer__logo img {
    height: 42px;
    width: auto;
    margin-bottom: 14px;
}

.aa-footer__contact div { margin-bottom: 7px; }

.aa-footer__bottom {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .82rem;
    color: #8F9AAB;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Sticky mobile call bar, matching the main site
   -------------------------------------------------------------------------- */

.aa-mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--aa-line);
    box-shadow: 0 -4px 18px rgba(14, 42, 71, .10);
}

.aa-mobilebar .aa-btn { min-height: 50px; font-size: .95rem; }

/*
 * Design-workflow pages render no call bar at all (see Domain\WorkflowPages),
 * so the footer must not keep reserving a strip of empty space for one. The
 * rule for the bar itself is belt and braces: if markup for it ever reaches
 * one of these pages, it still must not sit over the Continue button.
 */
.aa-nobar .aa-mobilebar { display: none; }
.aa-nobar .aa-footer { padding-bottom: 34px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.aa-field { margin-bottom: 16px; }

.aa-label {
    display: block;
    margin-bottom: 6px;
    font-size: .9rem;
    font-weight: 700;
    color: var(--aa-ink);
}

.aa-input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #CBD2DB;
    border-radius: var(--aa-radius);
    background: var(--aa-white);
    color: var(--aa-ink);
    font-family: inherit;
    /* 16px stops iOS Safari zooming in when the field is focused. */
    font-size: 16px;
}

.aa-input:focus {
    border-color: var(--aa-navy);
    outline: 3px solid rgba(14, 42, 71, .15);
    outline-offset: 0;
}

.aa-alert {
    border-radius: var(--aa-radius);
    padding: 12px 15px;
    margin-bottom: 18px;
    font-size: .92rem;
}

.aa-alert--error {
    background: var(--aa-fail-bg);
    color: var(--aa-fail-fg);
    border: 1px solid rgba(163, 38, 46, .25);
}

.aa-alert--notice {
    background: var(--aa-ok-bg);
    color: var(--aa-ok-fg);
    border: 1px solid rgba(10, 107, 38, .25);
}

/* --------------------------------------------------------------------------
   Auth screen
   -------------------------------------------------------------------------- */

.aa-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--aa-navy);
    padding: 24px 16px;
}

.aa-auth__card {
    width: 100%;
    max-width: 400px;
    border-radius: var(--aa-radius-lg);
    background: #fff;
    box-shadow: var(--aa-shadow-lg);
    padding: 28px 24px;
}

.aa-auth__logo {
    display: block;
    height: 38px;
    width: auto;
    margin: 0 auto 20px;
}

/* --------------------------------------------------------------------------
   Admin
   -------------------------------------------------------------------------- */

.aa-admin { background: var(--aa-bg-soft); min-height: 100vh; }

.aa-admin__bar {
    background: var(--aa-navy);
    color: #fff;
    padding: 12px 0;
}

.aa-admin__bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.aa-admin__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
}

.aa-admin__brand:hover { text-decoration: none; }

.aa-admin__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.aa-admin__nav a,
.aa-admin__nav button {
    border: 0;
    border-radius: var(--aa-radius);
    background: rgba(255, 255, 255, .10);
    padding: 8px 14px;
    color: #fff;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}

.aa-admin__nav a:hover,
.aa-admin__nav button:hover {
    background: rgba(255, 255, 255, .20);
    text-decoration: none;
}

.aa-admin__nav a[aria-current="page"] { background: var(--aa-red); }

.aa-admin__body { padding: 24px 0 48px; }

.aa-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

/*
 * A grid item defaults to `min-width: auto`, which means it refuses to shrink
 * below its content's minimum width. The Diagnostics cards hold tables whose
 * min-content width exceeded a 375px phone, so the card grew wider than its
 * own grid track and pushed the whole admin page into sideways scrolling.
 *
 * Letting grid children shrink, and letting long values (file paths, shell
 * commands) break rather than hold the table open, keeps the admin readable
 * on a phone.
 */
.aa-grid > * {
    min-width: 0;
}

.aa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.aa-table th,
.aa-table td {
    padding: 10px 8px 10px 0;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid var(--aa-line);
    /* See .aa-grid: long paths and commands must wrap, not widen the table. */
    overflow-wrap: anywhere;
}

.aa-table tr:first-child th,
.aa-table tr:first-child td { border-top: 0; }

.aa-table th { font-weight: 700; width: 48%; }

.aa-table__hint {
    display: block;
    margin-top: 3px;
    color: var(--aa-muted);
    font-size: .8rem;
    font-weight: 400;
}

.aa-badge {
    display: inline-block;
    border-radius: 4px;
    padding: 3px 9px;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.aa-badge--ok { background: var(--aa-ok-bg); color: var(--aa-ok-fg); }
.aa-badge--warn { background: var(--aa-warn-bg); color: var(--aa-warn-fg); }
.aa-badge--fail { background: var(--aa-fail-bg); color: var(--aa-fail-fg); }
.aa-badge--info { background: #EEF1F4; color: var(--aa-ink-soft); }

/* The dashboard counters. Their own grid rather than the generic one, so
   four tiles never leave a lone orphan on the second row. */
.aa-stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.aa-stat {
    border: 1px solid var(--aa-line);
    border-radius: var(--aa-radius);
    background: #fff;
    padding: 14px 16px;
}

.aa-stat__value { font-size: 1.6rem; font-weight: 800; color: var(--aa-navy); line-height: 1.1; }
.aa-stat__label { color: var(--aa-muted); font-size: .85rem; }

.aa-code {
    display: inline-block;
    border: 1px solid var(--aa-line);
    border-radius: 4px;
    background: var(--aa-bg-soft);
    padding: 3px 8px;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: .88rem;
    user-select: all;
    word-break: break-all;
}

.aa-roadmap { list-style: none; margin: 0; padding: 0; }

.aa-roadmap li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--aa-line);
}

.aa-roadmap li:first-child { border-top: 0; padding-top: 0; }

/* --------------------------------------------------------------------------
   Phase 2 — the customer journey
   -------------------------------------------------------------------------- */

.aa-section--tight { padding-top: 20px; }

/* Progress indicator */
.aa-steps-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 20px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.aa-steps-bar__step {
    border-radius: 999px;
    background: var(--aa-bg-soft);
    padding: 6px 12px;
    color: var(--aa-muted);
    white-space: nowrap;
}

.aa-steps-bar__step.is-current { background: var(--aa-navy); color: #fff; }
.aa-steps-bar__step.is-done { background: var(--aa-ok-bg); color: var(--aa-ok-fg); }

/* Service choice cards */
.aa-choice-heading { margin-bottom: 14px; }
.aa-choice-form { margin: 0; }

.aa-choice-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

.aa-choice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border: 2px solid var(--aa-line);
    border-radius: var(--aa-radius-lg);
    background: var(--aa-white);
    padding: 20px;
    width: 100%;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

/* --------------------------------------------------------------------------
   Sharing a before-and-after
   -------------------------------------------------------------------------- */

.aa-share__preview {
    margin: 16px 0 4px;
    border: 1px solid var(--aa-line);
    border-radius: var(--aa-radius);
    background: var(--aa-bg-soft);
    padding: 8px;
}

.aa-share__preview img {
    display: block;
    border-radius: 4px;
    width: 100%;
    height: auto;
}

.aa-share__status:empty { display: none; }

.aa-share__status {
    margin: 12px 0 0;
    color: var(--aa-ink-soft);
    font-size: .9rem;
}

/*
 * One button per row on a phone, so nothing is mis-tapped on the page whose
 * whole job is to be shared from a phone. Side by side once there is room.
 */
.aa-share__actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.aa-share__caption { margin-top: 16px; }

.aa-share__caption summary {
    cursor: pointer;
    color: var(--aa-navy);
    font-size: .92rem;
    font-weight: 700;
}

.aa-share__caption .aa-label { margin-top: 12px; }

.aa-share__text {
    min-height: 240px;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
}

@media (min-width: 560px) {
    .aa-share__actions { grid-template-columns: 1fr 1fr; }
    .aa-share__actions > :first-child { grid-column: 1 / -1; }
}

/*
 * A service that is not on sale yet: visible, legible, plainly inert.
 *
 * Muted rather than hidden, so customers know refacing is coming, and with
 * `cursor: default` and no hover lift so nothing about it invites a tap. The
 * text stays above a 4.5:1 contrast ratio - "disabled" must not mean
 * "unreadable", and this card is here to be read.
 */
.aa-choice--soon {
    border-style: dashed;
    background: var(--aa-bg-soft);
    cursor: default;
    opacity: .78;
}

.aa-choice--soon:hover,
.aa-choice--soon:focus {
    border-color: var(--aa-line);
    box-shadow: none;
    transform: none;
}

.aa-choice--soon .aa-choice__go {
    color: var(--aa-ink-soft);
    font-weight: 600;
}

.aa-badge-soon {
    display: inline-block;
    margin-left: 8px;
    border-radius: 999px;
    background: var(--aa-navy);
    padding: 3px 10px;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.aa-choice:hover,
.aa-choice:focus-visible {
    border-color: var(--aa-navy);
    box-shadow: var(--aa-shadow-md);
}

.aa-choice:active { transform: translateY(1px); }

.aa-choice__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--aa-radius);
    background: var(--aa-cream);
    width: 46px;
    height: 46px;
    color: var(--aa-gold-text);
}

.aa-choice__icon svg { width: 24px; height: 24px; }

.aa-choice__title {
    color: var(--aa-navy);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
}

.aa-choice__text {
    color: var(--aa-muted);
    font-size: .92rem;
    line-height: 1.5;
}

.aa-choice__go {
    margin-top: auto;
    color: var(--aa-red);
    font-size: .9rem;
    font-weight: 700;
}

/* The locked-service banner on the upload screen */
.aa-mode-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    border: 1px solid var(--aa-line);
    border-radius: var(--aa-radius);
    background: var(--aa-bg-soft);
    padding: 10px 14px;
}

.aa-mode-banner__text { font-weight: 700; font-size: .92rem; }

.aa-mode-banner__change {
    margin-left: auto;
    color: var(--aa-muted);
    font-size: .85rem;
    text-decoration: underline;
}

/* Uploaded photo grid */
.aa-photos {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.aa-photos:empty { display: none; }

.aa-photo {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--aa-line);
    border-radius: var(--aa-radius);
    background: var(--aa-bg-soft);
}

.aa-photo__img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.aa-photo__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    border-radius: 4px;
    background: rgba(14, 42, 71, .85);
    padding: 3px 8px;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
}

.aa-photo__remove,
.aa-photo__remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    margin: 0;
}

.aa-photo__remove button,
.aa-photo__remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    /* 36px: comfortable to hit with a thumb without covering the photo. */
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--aa-fail-fg);
    cursor: pointer;
    box-shadow: var(--aa-shadow-sm);
}

.aa-photo__remove button:hover,
.aa-photo__remove-btn:hover { background: #fff; }

.aa-photo__remove svg,
.aa-photo__remove-btn svg { width: 16px; height: 16px; }

.aa-photo__meta {
    padding: 8px 10px;
    background: #fff;
    color: var(--aa-muted);
    font-size: .75rem;
    line-height: 1.45;
}

.aa-photos--review .aa-photo__img,
.aa-photos--admin .aa-photo__img { height: 160px; }

/* Drop zone */
.aa-dropzone {
    margin: 0 0 14px;
    border: 2px dashed #C3CCD6;
    border-radius: var(--aa-radius-lg);
    background: var(--aa-bg-soft);
    padding: 24px 18px;
    text-align: center;
    transition: border-color .15s ease, background-color .15s ease;
}

.aa-dropzone.is-dragging { border-color: var(--aa-navy); background: var(--aa-cream); }

.aa-dropzone__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.aa-dropzone__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--aa-navy);
    width: 48px;
    height: 48px;
    color: #fff;
}

.aa-dropzone__icon svg { width: 22px; height: 22px; }

.aa-dropzone__title { color: var(--aa-navy); font-size: 1.05rem; font-weight: 700; }
.aa-dropzone__hint { color: var(--aa-muted); font-size: .85rem; }

.aa-progress {
    overflow: hidden;
    margin-top: 14px;
    border-radius: 999px;
    background: #DCE2E8;
    height: 6px;
}

.aa-progress__bar {
    width: 0;
    height: 100%;
    background: var(--aa-navy);
    transition: width .15s ease;
}

.aa-full-note {
    margin: 0 0 14px;
    border-radius: var(--aa-radius);
    background: var(--aa-ok-bg);
    padding: 10px 14px;
    color: var(--aa-ok-fg);
    font-size: .88rem;
}

.aa-uploader__actions { margin-top: 4px; }

.aa-btn.is-disabled {
    opacity: .45;
    pointer-events: none;
}

.aa-next-step {
    margin-top: 20px;
    border-top: 1px solid var(--aa-line);
    padding-top: 18px;
}

.aa-next-step h2 { font-size: 1.1rem; }

/* Admin listing extras */
.aa-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.aa-filters a {
    border-radius: var(--aa-radius);
    background: var(--aa-bg-soft);
    padding: 6px 12px;
    color: var(--aa-ink-soft);
    font-size: .85rem;
    font-weight: 600;
}

.aa-filters a:hover { text-decoration: none; background: #E8ECF0; }
.aa-filters a.is-active { background: var(--aa-navy); color: #fff; }

.aa-table-scroll { overflow-x: auto; }

.aa-table--list th { width: auto; white-space: nowrap; }
.aa-table--list td { white-space: nowrap; }
.aa-table--list thead th {
    border-top: 0;
    border-bottom: 2px solid var(--aa-line);
    color: var(--aa-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.aa-ref {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: .85rem;
}

.aa-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: var(--aa-muted);
    font-size: .88rem;
}

/* --------------------------------------------------------------------------
   Phase 3 — the design wizard
   -------------------------------------------------------------------------- */

/* Progress indicator */
.aa-wizard { margin-bottom: 20px; }

.aa-wizard__list {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.aa-wizard__list::-webkit-scrollbar { display: none; }

.aa-wizard__step {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: var(--aa-bg-soft);
    padding: 7px 12px;
    color: var(--aa-muted);
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.aa-wizard__step.is-current { background: var(--aa-navy); color: #fff; }
.aa-wizard__step.is-done { background: var(--aa-ok-bg); color: var(--aa-ok-fg); }

.aa-wizard__marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .10);
    width: 18px;
    height: 18px;
    font-size: .7rem;
}

.aa-wizard__step.is-current .aa-wizard__marker { background: rgba(255, 255, 255, .22); }
.aa-wizard__marker svg { width: 11px; height: 11px; }

/* Fieldsets */
.aa-fieldset {
    margin: 0 0 22px;
    border: 0;
    padding: 0;
}

.aa-legend {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 0;
    color: var(--aa-navy);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
}

.aa-legend__hint {
    display: block;
    margin-top: 3px;
    color: var(--aa-muted);
    font-size: .85rem;
    font-weight: 400;
}

.aa-callout {
    border-left: 3px solid var(--aa-gold);
    border-radius: 0 var(--aa-radius) var(--aa-radius) 0;
    background: var(--aa-cream);
    padding: 12px 16px;
    color: var(--aa-ink);
    font-size: .92rem;
}

/* Yes/no and keep/change pills */
.aa-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aa-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* 48px tall: a comfortable thumb target. */
    min-height: 48px;
    border: 2px solid var(--aa-line);
    border-radius: 999px;
    background: #fff;
    padding: 10px 18px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.aa-pill:hover { border-color: #C3CCD6; }

.aa-pill.is-selected {
    border-color: var(--aa-navy);
    background: var(--aa-navy);
    color: #fff;
}

.aa-pill__tick {
    display: none;
    align-items: center;
    justify-content: center;
}

.aa-pill.is-selected .aa-pill__tick { display: inline-flex; }
.aa-pill__tick svg { width: 15px; height: 15px; }

.aa-pill input:focus-visible + .aa-pill__tick,
.aa-pill:focus-within { outline: 3px solid var(--aa-gold); outline-offset: 2px; }

/* Colour layout cards */
.aa-layout-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.aa-layout {
    position: relative;
    display: block;
    border: 2px solid var(--aa-line);
    border-radius: var(--aa-radius-lg);
    background: #fff;
    padding: 16px 44px 16px 16px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.aa-layout:hover { border-color: #C3CCD6; }
.aa-layout:focus-within { outline: 3px solid var(--aa-gold); outline-offset: 2px; }

.aa-layout.is-selected {
    border-color: var(--aa-navy);
    box-shadow: var(--aa-shadow-sm);
}

.aa-layout__tick {
    position: absolute;
    top: 16px;
    right: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--aa-navy);
    width: 22px;
    height: 22px;
    color: #fff;
}

.aa-layout.is-selected .aa-layout__tick { display: inline-flex; }
.aa-layout__tick svg { width: 13px; height: 13px; }

.aa-layout__name {
    display: block;
    color: var(--aa-navy);
    font-size: 1.02rem;
    font-weight: 800;
}

.aa-layout__text {
    display: block;
    margin-top: 2px;
    color: var(--aa-muted);
    font-size: .88rem;
}

.aa-layout__count {
    display: inline-block;
    margin-top: 8px;
    border-radius: 4px;
    background: var(--aa-bg-soft);
    padding: 2px 8px;
    color: var(--aa-ink-soft);
    font-size: .75rem;
    font-weight: 700;
}

/* Colour picker */
.aa-colors__filters {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    grid-template-columns: 1fr;
}

.aa-colors__grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aa-color {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--aa-line);
    border-radius: var(--aa-radius);
    background: #fff;
    padding: 8px;
    cursor: pointer;
    transition: border-color .15s ease;
}

.aa-color:hover { border-color: #C3CCD6; }
.aa-color:focus-within { outline: 3px solid var(--aa-gold); outline-offset: 2px; }
.aa-color.is-selected { border-color: var(--aa-navy); box-shadow: var(--aa-shadow-sm); }

.aa-color__swatch {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 6px;
    /* 52px: large enough to judge a colour and to tap accurately. */
    width: 52px;
    height: 52px;
}

.aa-color__tick {
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--aa-navy);
    width: 22px;
    height: 22px;
    color: #fff;
}

.aa-color.is-selected .aa-color__tick { display: inline-flex; }
.aa-color__tick svg { width: 13px; height: 13px; }

.aa-color__body { min-width: 0; }

.aa-color__name {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.25;
}

.aa-color__meta {
    display: block;
    margin-top: 2px;
    color: var(--aa-muted);
    font-size: .74rem;
}

.aa-color__flag,
.aa-option__flag {
    position: absolute;
    top: -8px;
    right: 8px;
    border-radius: 999px;
    background: var(--aa-gold);
    padding: 2px 8px;
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* Image option cards (door styles, hardware, countertops, backsplashes) */
.aa-option-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aa-option {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid var(--aa-line);
    border-radius: var(--aa-radius-lg);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.aa-option:hover { border-color: #C3CCD6; }
.aa-option:focus-within { outline: 3px solid var(--aa-gold); outline-offset: 2px; }
.aa-option.is-selected { border-color: var(--aa-navy); box-shadow: var(--aa-shadow-sm); }

.aa-option__media {
    position: relative;
    display: block;
    background: var(--aa-bg-soft);
    aspect-ratio: 4 / 3;
}

.aa-option__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aa-option__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #B9C2CC;
}

.aa-option__placeholder svg { width: 34px; height: 34px; }

.aa-option__tick {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--aa-navy);
    width: 26px;
    height: 26px;
    color: #fff;
}

.aa-option.is-selected .aa-option__tick { display: inline-flex; }
.aa-option__tick svg { width: 14px; height: 14px; }

.aa-option__body { padding: 10px 12px 12px; }

.aa-option__name {
    display: block;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.25;
}

.aa-option__meta {
    display: block;
    margin-top: 2px;
    color: var(--aa-muted);
    font-size: .78rem;
}

.aa-empty {
    margin: 0;
    border-radius: var(--aa-radius);
    background: var(--aa-bg-soft);
    padding: 14px;
    color: var(--aa-muted);
    font-size: .9rem;
}

.aa-swatch-note {
    margin: 0 0 18px;
    color: var(--aa-muted);
    font-size: .8rem;
    line-height: 1.5;
}

/* Wizard navigation */
.aa-wizard-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.aa-wizard-actions .aa-btn { flex: 1 1 auto; }
.aa-wizard-actions .aa-btn--outline { flex: 0 0 auto; min-width: 96px; }

.aa-btn--lg { min-height: 56px; font-size: 1.05rem; }

/* Review */
.aa-review__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.aa-review__head h2 { margin: 0; font-size: 1.1rem; }

.aa-review__edit {
    color: var(--aa-red);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: underline;
}

.aa-review__row {
    display: grid;
    gap: 2px 14px;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--aa-line);
    padding: 11px 0;
}

.aa-review__row:first-of-type { border-top: 0; }

.aa-review__key {
    color: var(--aa-muted);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.aa-review__value {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .95rem;
}

.aa-review__swatch {
    flex: 0 0 auto;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 5px;
    width: 34px;
    height: 34px;
}

/* Lead capture */
.aa-save__lead { color: var(--aa-ink-soft); font-size: 1rem; }
.aa-save__recap { margin-top: 16px; }

.aa-recap { margin: 0; padding: 0; list-style: none; }

.aa-recap li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--aa-line);
    padding: 9px 0;
    font-size: .92rem;
}

.aa-recap li:first-child { border-top: 0; }
.aa-recap span { color: var(--aa-muted); font-size: .85rem; }

.aa-label__optional {
    color: var(--aa-muted);
    font-size: .8rem;
    font-weight: 400;
}

.aa-field__hint {
    margin: 5px 0 0;
    color: var(--aa-muted);
    font-size: .8rem;
}

/* Done */
.aa-done { text-align: center; }

.aa-done__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--aa-ok-bg);
    width: 56px;
    height: 56px;
    color: var(--aa-ok-fg);
}

.aa-done__mark svg { width: 28px; height: 28px; }
.aa-done__lead { color: var(--aa-ink-soft); }
.aa-done .aa-recap { text-align: left; }
.aa-done .aa-card__subtitle { text-align: left; }

.aa-build-note {
    margin: 18px 0 0;
    border: 1px dashed var(--aa-warn-fg);
    border-radius: var(--aa-radius);
    background: var(--aa-warn-bg);
    padding: 12px 14px;
    color: var(--aa-warn-fg);
    font-size: .84rem;
    text-align: left;
}

/* --------------------------------------------------------------------------
   Admin — design libraries
   -------------------------------------------------------------------------- */

.aa-admin-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.aa-admin-head h1 { margin: 0; }

.aa-library-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--aa-line);
    border-radius: var(--aa-radius-lg);
    background: #fff;
    padding: 18px;
    color: var(--aa-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.aa-library-card:hover {
    border-color: var(--aa-navy);
    box-shadow: var(--aa-shadow-sm);
    text-decoration: none;
}

.aa-library-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--aa-radius);
    background: var(--aa-cream);
    width: 40px;
    height: 40px;
    color: var(--aa-gold-text);
}

.aa-library-card__icon svg { width: 21px; height: 21px; }
.aa-library-card__name { font-size: 1.02rem; font-weight: 800; color: var(--aa-navy); }
.aa-library-card__count { color: var(--aa-muted); font-size: .85rem; }

.aa-admin-swatch {
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 5px;
    width: 38px;
    height: 28px;
}

.aa-admin-thumb {
    display: block;
    border: 1px solid var(--aa-line);
    border-radius: 5px;
    width: 64px;
    height: 48px;
    object-fit: cover;
}

.aa-admin-thumb--lg { width: 160px; height: 120px; }

.aa-reorder { display: flex; gap: 3px; }

.aa-reorder form { margin: 0; }

.aa-reorder button {
    border: 1px solid var(--aa-line);
    border-radius: 4px;
    background: #fff;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--aa-ink-soft);
    font-family: inherit;
    cursor: pointer;
}

.aa-reorder button:hover { background: var(--aa-bg-soft); }

.aa-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.aa-row-actions form { margin: 0; }

.aa-row-actions a,
.aa-row-actions button {
    border: 1px solid var(--aa-line);
    border-radius: 4px;
    background: #fff;
    padding: 5px 10px;
    color: var(--aa-ink-soft);
    font-family: inherit;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.aa-row-actions a:hover,
.aa-row-actions button:hover { background: var(--aa-bg-soft); text-decoration: none; }
.aa-row-actions .is-danger { color: var(--aa-fail-fg); border-color: #E4C2C5; }

tr.is-archived { opacity: .6; }

.aa-hex-row { display: flex; align-items: center; gap: 10px; }

.aa-hex-picker {
    flex: 0 0 auto;
    border: 1px solid var(--aa-line);
    border-radius: var(--aa-radius);
    width: 52px;
    height: 48px;
    padding: 3px;
    background: #fff;
    cursor: pointer;
}

.aa-input--narrow { max-width: 140px; }

.aa-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    font-size: .92rem;
    cursor: pointer;
}

.aa-check input { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Error page
   -------------------------------------------------------------------------- */

.aa-error { padding: 56px 0; text-align: center; }
.aa-error__code { font-size: 3.4rem; font-weight: 800; color: var(--aa-navy); line-height: 1; margin-bottom: 8px; }

/* ==========================================================================
   Larger phones
   ========================================================================== */

@media (min-width: 480px) {
    h1 { font-size: 2.1rem; }
    .aa-modes { grid-template-columns: 1fr 1fr; }
    .aa-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .aa-colors__filters { grid-template-columns: 2fr 1fr; }
    .aa-option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .aa-review__row { grid-template-columns: 150px 1fr; align-items: baseline; }
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (min-width: 768px) {
    .aa-container { padding: 0 24px; }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.65rem; }

    .aa-hero { padding: 48px 0 42px; }
    .aa-section { padding: 44px 0; }
    .aa-card { padding: 26px; }

    .aa-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aa-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

    /* The sticky call bar is a phone affordance only. */
    .aa-mobilebar { display: none; }
    .aa-footer { padding-bottom: 34px; }

    .aa-choice-grid { grid-template-columns: 1fr 1fr; }
    .aa-dropzone { padding: 32px 24px; }
    .aa-photo__img { height: 170px; }

    .aa-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .aa-colors__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .aa-option-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .aa-wizard__step { font-size: .82rem; padding: 8px 14px; }
}

/* ==========================================================================
   Small laptop - multi-column layouts, but the menu stays a drawer
   ========================================================================== */

@media (min-width: 1024px) {
    .aa-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .aa-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   Desktop - navigation becomes a row and the burger disappears

   The breakpoint is 1200px, not 1024px, because the full menu plus the
   call-to-action measures about 906px next to a 197px logo, which needs
   roughly 1182px of viewport once container padding and the scrollbar are
   counted. Below this the drawer is the better layout.
   ========================================================================== */

@media (min-width: 1200px) {
    .aa-header__inner { min-height: 84px; }
    .aa-header__logo img { height: 48px; }
    .aa-header__toggle { display: none; }

    .aa-nav {
        display: block;
        /* Back to sharing the header row with the logo. */
        flex: 0 1 auto;
        width: auto;
        border-top: 0;
        padding: 0;
    }

    .aa-nav__list {
        display: flex;
        align-items: center;
        gap: 2px;
    }

    /* Tight enough that the full menu plus the call-to-action fits on one
       row inside the 1200px container, matching the main website. The logo
       and the longest menu need about 1170px together; any more padding and
       the nav wraps onto a second line. */
    .aa-nav__link {
        padding: 10px 8px;
        border-bottom: 0;
        font-size: .86rem;
        white-space: nowrap;
    }

    .aa-nav__group { position: relative; }

    .aa-nav__group > summary {
        padding: 10px 8px;
        border-bottom: 0;
        font-size: .86rem;
        white-space: nowrap;
    }

    .aa-nav__group > summary::after { content: ''; margin-left: 5px; }

    .aa-nav__sublist {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 10;
        min-width: 220px;
        border: 1px solid var(--aa-line);
        border-radius: var(--aa-radius);
        background: #fff;
        box-shadow: var(--aa-shadow-md);
        padding: 8px;
    }

    .aa-nav__cta { margin-top: 0; margin-left: 8px; }

    .aa-nav__cta .aa-btn {
        min-height: 42px;
        padding: 10px 16px;
        font-size: .88rem;
    }
}

/* ==========================================================================
   Accessibility and print
   ========================================================================== */

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

@media print {
    .aa-trustbar, .aa-header, .aa-mobilebar, .aa-admin__nav { display: none; }
    body { color: #000; }
}

/* ==========================================================================
   Admin → AI Lab (Phase 4A)

   A private comparison surface. The grids are deliberately plain: the point
   is to judge the photographs, so nothing here should compete with them.
   ========================================================================== */

.aa-lab-grid,
.aa-lab-compare {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    margin-top: 10px;
}

.aa-lab-figure {
    margin: 0;
    border: 1px solid var(--aa-line);
    border-radius: var(--aa-radius);
    padding: 10px;
    background: #fff;
    min-width: 0;
}

.aa-lab-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--aa-radius);
    background: var(--aa-bg-soft);
}

.aa-lab-figure figcaption {
    margin-top: 8px;
    font-size: .82rem;
    color: var(--aa-muted);
    line-height: 1.45;
}

.aa-lab-figure details { margin-top: 8px; }
.aa-lab-figure summary {
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    color: var(--aa-navy);
}

.aa-pre {
    max-height: 320px;
    overflow: auto;
    background: var(--aa-bg-soft);
    border-radius: var(--aa-radius);
    padding: 10px;
    font-size: .78rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.aa-check {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 6px 0;
    font-size: .92rem;
}

.aa-check input { margin-top: 3px; flex: 0 0 auto; }

/* Two photographs side by side once there is room for them to be useful. */
@media (min-width: 760px) {
    .aa-lab-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .aa-lab-compare { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}
/* ---------------------------------------------------------------------------
   Generation progress (Phase 4C)

   The spinner says "we are still asking", not "we are making progress" - the
   bar is the only thing that reports real work, and it moves only when an
   image is finished. Keeping those two signals separate is what lets the page
   be reassuring during a slow generation without inventing a percentage.
   --------------------------------------------------------------------------- */

/*
 * The "usually about 60-90 seconds" line. Sits above the live status and is
 * deliberately quieter than it: an expectation, not the truth of this job.
 */
.aa-progress__estimate {
    margin: 0 0 16px;
    color: var(--aa-ink-soft, #55606E);
    font-size: .95rem;
    line-height: 1.45;
}

.aa-progress__headline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    color: var(--aa-navy);
    font-size: 1.05rem;
    font-weight: 700;
}

.aa-spinner {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 2px solid #DCE2E8;
    border-top-color: var(--aa-navy);
    border-radius: 50%;
    animation: aa-spin .9s linear infinite;
}

.aa-spinner.is-stopped {
    border-top-color: #DCE2E8;
    animation: none;
}

@keyframes aa-spin {
    to { transform: rotate(360deg); }
}

/* Honour a reduced-motion preference: pulse gently instead of spinning. */
@media (prefers-reduced-motion: reduce) {
    .aa-spinner { animation: aa-pulse 1.6s ease-in-out infinite; }
    @keyframes aa-pulse { 50% { opacity: .35; } }
}

.aa-stages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.aa-stage {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--aa-muted);
    font-size: .82rem;
}

.aa-stage__dot {
    width: 9px;
    height: 9px;
    border: 2px solid #DCE2E8;
    border-radius: 50%;
    background: transparent;
}

.aa-stage.is-done { color: var(--aa-navy); }
.aa-stage.is-done .aa-stage__dot { border-color: var(--aa-navy); background: var(--aa-navy); }

.aa-stage.is-current { color: var(--aa-navy); font-weight: 700; }
.aa-stage.is-current .aa-stage__dot { border-color: var(--aa-navy); background: transparent; }