/* Add Property wizard styles - ported from the standalone Add Prop Form's guestden.css.
   Scoped under `.addprop` so the shared html,body and .mud-* overrides do NOT leak into
   GuestDen's own shell. `.gd-*` classes are unique to the wizard and left global. */

/* ============================================================================
   GuestDen theme tokens — the Felix Portal look.

   Colours here mirror Layout/GuestDenTheme.cs. The C# theme drives MudBlazor
   components; these tokens drive our own markup. Keep the two in step: change
   a brand colour in BOTH places, or nowhere.
   ============================================================================ */

:root {
    --gd-orange: #FD7E14;
    --gd-orange-dark: #E06A00;
    --gd-orange-soft: #FFF3E8;

    --gd-ink: #12263F;
    --gd-muted: #6E84A3;
    --gd-line: #E3EBF6;
    --gd-line-strong: #D5DEE9;
    --gd-surface: #FFFFFF;
    --gd-ground: #F9FBFD;

    --gd-info: #049AF2;
    --gd-success: #1F7A1F;
    --gd-error: #D74242;

    /* Neutral surface for hover and current-item states. Orange is reserved for the
       primary action and the single position marker — everything else uses this. */
    --gd-tint: #F1F5FA;
    --gd-tint-strong: #E8EEF6;

    --gd-radius-sm: 4px;
    --gd-radius: 6px;
    --gd-radius-lg: 10px;
    --gd-radius-pill: 100px;

    --gd-font: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.addprop {
    font-family: var(--gd-font);
    background: var(--gd-ground);
    color: var(--gd-ink);
}

/* ---- Layout height chain ---------------------------------------------------
   Ported from Felix Portal MainLayout.razor:162-204. Everything is pinned to
   --mud-appbar-height so the drawer and content never disagree about where the
   app bar ends. */

.gd-layout { min-height: 100vh; }

/* MudLayout already offsets for the app bar — do not add a second offset here, or the
   drawer ends up sitting under it. Content scrolls with the page. */
.gd-main {
    padding-bottom: 48px;
    min-height: calc(100vh - var(--mud-appbar-height));
}

/* ---- Brand pill buttons ----------------------------------------------------
   Felix Portal's .PrimaryBtn / .SecondaryBtn (MainLayout.razor:206-246), kept
   for parity where a page wants the exact house pill rather than a MudButton. */

.gd-pill,
.gd-pill-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 8px 20px;
    margin: 0 3px;
    border: none;
    border-radius: var(--gd-radius-pill);
    color: #fff;
    font-family: var(--gd-font);
    font-weight: 400;
    cursor: pointer;
}

.gd-pill { background: var(--gd-orange); }
.gd-pill:hover { background: var(--gd-orange-dark); }
.gd-pill-dark { background: #000; }
.gd-pill-dark:hover { background: #222; }

/* ---- Two-column field rows -------------------------------------------------
   The live WeWeb form lays every control out as: label on the left with an
   orange help tooltip, input on the right. This reproduces that, and collapses
   to stacked on small screens. */

.gd-field-row {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 16px 24px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid var(--gd-line);
}

.gd-field-row:last-child { border-bottom: none; }

.gd-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gd-ink);
    line-height: 1.35;
}

.gd-field-label .gd-required { color: var(--gd-error); }

/* Muted until reached for. Forty of these down a page in full orange is a lot of noise
   for something most people never click. */
.gd-field-help {
    color: #A9B6C6;
    cursor: help;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.gd-field-label:hover .gd-field-help,
.gd-field-help:hover { color: var(--gd-orange); }

.gd-field-control { min-width: 0; }

.gd-field-hint {
    font-size: 0.75rem;
    color: var(--gd-muted);
    margin-top: 4px;
}

/* A rule message rendered by FieldRow, matched to MudBlazor's own helper text under an input. */
.gd-field-error {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-top: 4px;
    padding-inline: 2px;
}

/* Guidance that needs noticing but is not an error — a length limit reached, a channel caveat. */
.gd-field-note {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #8A5A00;
    background: #FFF7E6;
    border: 1px solid #F5DDA8;
    border-radius: 6px;
    padding: 6px 8px;
    margin-top: 6px;
}

.gd-field-note .mud-icon-root { font-size: 15px; margin-top: 1px; flex-shrink: 0; }

@media (max-width: 900px) {
    .gd-field-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
    .gd-field-label { padding-top: 0; }
}

/* ---- Step rail ------------------------------------------------------------- */

.gd-rail-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--gd-radius);
    color: var(--gd-ink);
    text-decoration: none;
    font-size: 0.8125rem;
    line-height: 1.3;
}

.gd-rail-link:hover { background: var(--gd-tint); }

/* Current step: a neutral surface plus one orange marker — the dot and the left rule.
   The colour says "here", the weight says "current"; it does not need both plus a tint. */
.gd-rail-link.active { background: var(--gd-tint-strong); color: var(--gd-ink); font-weight: 600; }

.gd-rail-dot {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    background: #E0E0E0;
    color: #fff;
}

.gd-rail-link.active .gd-rail-dot { background: var(--gd-orange); }
.gd-rail-link:not(.active) .gd-rail-dot { background: #C8D2DF; }
.gd-rail-dot.done { background: var(--gd-success); }

.gd-rail-section {
    padding: 14px 14px 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gd-muted);
}

/* ---- Misc ------------------------------------------------------------------ */

.gd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--gd-muted);
}

/* The page you are on is stated by the heading right below it — the breadcrumb only has
   to be legible, not coloured. */
.gd-breadcrumb .current { color: var(--gd-ink); font-weight: 600; }

/* The gold rule under the app bar, matching the live form. */
.gd-appbar-rule { border-bottom: 2px solid var(--gd-orange); }

/* ---- Logo --------------------------------------------------------------------
   Mark + wordmark. --gd-logo-size is set inline by FelixLogo so one number drives
   both the SVG and the type. */

/* Sampled from the official mark (Felix.Portal/wwwroot/images/felix.png). */
:root { --gd-logo-orange: #FE5723; }

.gd-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.36em;
    font-size: var(--gd-logo-size, 30px);
    line-height: 1;
}

.gd-logo-mark {
    height: 1em;
    width: auto;
    flex-shrink: 0;
    display: block;
}

.gd-wordmark {
    font-family: var(--gd-font);
    font-weight: 800;
    font-size: 1.05em;
    letter-spacing: -0.035em;
    color: #000;
    white-space: nowrap;
}

/* The dot over the i, in brand orange. The glyph itself is a dotless i so this is
   the only dot drawn. */
.gd-wordmark-i {
    position: relative;
    display: inline-block;
}

/* Measured from the glyph box bottom rather than the top: the line box top moves with
   line-height, the baseline does not, so this stays put as the logo scales. */
.gd-wordmark-i::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.76em;
    transform: translateX(-50%);
    width: 0.185em;
    height: 0.185em;
    border-radius: 50%;
    background: var(--gd-logo-orange);
}

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

/* ---- Sign in -----------------------------------------------------------------
   Two columns: the form on a white ground, the brand panel on dark. Each column is
   a three-row grid (top / centred body / bottom) so the corners stay anchored and
   the body optically centres, instead of one block floating in whitespace. */

.gd-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    background: var(--gd-surface);
}

.gd-login-form {
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 40px clamp(28px, 6vw, 84px);
    background: var(--gd-surface);
}

/* One left edge for the logo, the form and the footer. */
.gd-login-col {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.gd-login-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 0;
}

.gd-login-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--gd-ink);
    margin: 0;
}

.gd-login-sub {
    font-size: 0.875rem;
    color: var(--gd-muted);
    margin: 6px 0 28px;
}

.gd-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}

.gd-login-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 28px;
    padding: 12px 14px;
    border: 1px solid var(--gd-line);
    border-left: 3px solid var(--gd-orange);
    border-radius: 0 var(--gd-radius) var(--gd-radius) 0;
    background: var(--gd-ground);
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--gd-muted);
}

.gd-login-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--gd-muted);
}

/* ---- Brand panel -------------------------------------------------------------- */

.gd-login-art {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 40px clamp(28px, 4vw, 64px);
    background: linear-gradient(155deg, #0E1F35 0%, #16304E 48%, #1E3E64 100%);
    color: #fff;
}

/* The mark, oversized and low-contrast in the bottom-right corner. */
.gd-login-art::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -150px;
    width: 560px;
    height: 530px;
    background: url("../img/felix-logo.svg") no-repeat center / contain;
    opacity: 0.09;
    pointer-events: none;
}

.gd-login-art > * { position: relative; z-index: 1; }

.gd-login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: start;
    justify-self: start;
    padding: 5px 12px;
    border-radius: var(--gd-radius-pill);
    background: rgba(253, 126, 20, 0.16);
    border: 1px solid rgba(253, 126, 20, 0.35);
    color: #FFC48C;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gd-login-art h1 {
    font-size: clamp(1.6rem, 2.4vw, 2.15rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.02em;
    margin: 22px 0 12px;
}

.gd-login-art p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    max-width: 40ch;
}

.gd-login-mid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px 0;
}

.gd-login-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.gd-login-stat-n {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

.gd-login-stat-l {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.gd-login-tour { margin-top: 24px; }
.gd-login-gap { margin-bottom: 16px; }

@media (max-width: 980px) {
    .gd-login { grid-template-columns: 1fr; }
    .gd-login-art { display: none; }
}

/* Laptop and up: exactly one screen, never a page scrollbar.
   The tour preview is 16:10, so sized by width alone it grows taller than a laptop screen and
   pushes the page into scrolling. Instead its width comes from the height left after the text:
   --gd-tour-reserve is that text's height, and it shrinks with the tighter spacing below. */
@media (min-width: 981px) {
    .gd-login {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .gd-login-form,
    .gd-login-art { min-height: 0; }

    /* Safety valve for an unusually short window: the form column scrolls on its own rather than
       clipping a field. At normal laptop heights it fits and never shows a scrollbar. */
    .gd-login-form { overflow-y: auto; }

    .gd-login-art { --gd-tour-reserve: 520px; }

    .gd-login-tour .gd-tour {
        width: min(100%, calc((100dvh - var(--gd-tour-reserve)) * 1.6));
    }
}

/* Typical laptop heights (1366×768, 1536×864, 1920×1080 at 125–150% scaling). */
@media (min-width: 981px) and (max-height: 860px) {
    .gd-login-form,
    .gd-login-art { padding-block: 28px; }
    .gd-login-body { padding: 16px 0; }
    .gd-login-sub { margin-bottom: 20px; }
    .gd-login-gap { margin-bottom: 12px; }
    .gd-login-note { margin-top: 18px; padding: 10px 12px; }
    .gd-login-art h1 { margin: 16px 0 10px; }
    .gd-login-mid { padding: 16px 0; }
    .gd-login-tour { margin-top: 18px; }
    .gd-login-stats { padding-top: 16px; }
    .gd-login-art { --gd-tour-reserve: 450px; }
}

@media (min-width: 981px) and (max-height: 740px) {
    .gd-login-form,
    .gd-login-art { padding-block: 22px; }
    .gd-login-body { padding: 8px 0; }
    .gd-login-title { font-size: 1.5rem; }
    .gd-login-sub { margin: 4px 0 16px; }
    .gd-login-note { margin-top: 14px; }
    .gd-login-art p { font-size: 0.875rem; line-height: 1.55; }
    .gd-login-stats { display: none; }
    .gd-login-art { --gd-tour-reserve: 360px; }
}

/* Very short windows: drop the decoration before anything the user needs. */
@media (min-width: 981px) and (max-height: 600px) {
    .gd-login-tour,
    .gd-login-foot { display: none; }
}

/* ---- Product tour ------------------------------------------------------------- */

.gd-tour {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #0A1626;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
    aspect-ratio: 16 / 10;
}

.gd-tour video { width: 100%; height: 100%; object-fit: cover; display: block; }

.gd-tour-cap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

/* The mock shown when no video file is present. A miniature of the real wizard,
   animating through its first four steps on a loop. */

.gd-mock { width: 100%; height: 100%; display: flex; flex-direction: column; background: #F4F7FB; }

.gd-mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    background: #fff;
    border-bottom: 2px solid var(--gd-orange);
    flex-shrink: 0;
}

.gd-mock-dot { width: 8px; height: 8px; border-radius: 50%; background: #DDE3EC; }

.gd-mock-url {
    margin-left: 8px;
    height: 14px;
    flex: 1;
    border-radius: 7px;
    background: #F1F4F9;
    max-width: 190px;
}

.gd-mock-body { flex: 1; display: flex; min-height: 0; }

.gd-mock-rail {
    width: 34%;
    max-width: 160px;
    padding: 12px 10px;
    background: #fff;
    border-right: 1px solid #E3EBF6;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.gd-mock-step { display: flex; align-items: center; gap: 8px; }

.gd-mock-num {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #DDE3EC;
    flex-shrink: 0;
    animation: gd-mock-num 8s infinite;
}

.gd-mock-label {
    height: 7px;
    border-radius: 4px;
    background: #E8EDF4;
    flex: 1;
    animation: gd-mock-label 8s infinite;
}

.gd-mock-step:nth-child(1) .gd-mock-num,
.gd-mock-step:nth-child(1) .gd-mock-label { animation-delay: 0s; }
.gd-mock-step:nth-child(2) .gd-mock-num,
.gd-mock-step:nth-child(2) .gd-mock-label { animation-delay: 2s; }
.gd-mock-step:nth-child(3) .gd-mock-num,
.gd-mock-step:nth-child(3) .gd-mock-label { animation-delay: 4s; }
.gd-mock-step:nth-child(4) .gd-mock-num,
.gd-mock-step:nth-child(4) .gd-mock-label { animation-delay: 6s; }

@keyframes gd-mock-num {
    0%, 2%    { background: #DDE3EC; transform: scale(1); }
    5%, 24%   { background: #FD7E14; transform: scale(1.18); }
    27%, 100% { background: #1F7A1F; transform: scale(1); }
}

@keyframes gd-mock-label {
    0%, 2%    { background: #E8EDF4; width: 55%; }
    6%, 24%   { background: #FFD9BA; width: 85%; }
    28%, 100% { background: #E8EDF4; width: 70%; }
}

.gd-mock-form {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.gd-mock-h { height: 11px; width: 42%; border-radius: 5px; background: #C9D4E2; }

.gd-mock-field {
    height: 26px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #E3EBF6;
    position: relative;
    overflow: hidden;
}

/* A bar sweeping across each field, staggered, so it reads as being filled in. */
.gd-mock-field::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 9px;
    height: 8px;
    width: 0;
    border-radius: 4px;
    background: #DCE4EE;
    animation: gd-mock-fill 8s infinite;
}

.gd-mock-field:nth-of-type(1)::after { animation-delay: 0.4s; }
.gd-mock-field:nth-of-type(2)::after { animation-delay: 1.4s; }
.gd-mock-field:nth-of-type(3)::after { animation-delay: 2.4s; }
.gd-mock-field:nth-of-type(4)::after { animation-delay: 3.4s; }

@keyframes gd-mock-fill {
    0%   { width: 0; }
    14%  { width: 62%; }
    82%  { width: 62%; }
    100% { width: 0; }
}

.gd-mock-btn {
    margin-top: auto;
    align-self: flex-end;
    height: 24px;
    width: 92px;
    border-radius: 12px;
    background: var(--gd-orange);
    animation: gd-mock-btn 8s infinite;
}

@keyframes gd-mock-btn {
    0%, 70%  { opacity: 0.35; transform: translateY(2px); }
    78%, 96% { opacity: 1; transform: translateY(0); }
    100%     { opacity: 0.35; transform: translateY(2px); }
}

/* Respect a reduced-motion preference - the panel still reads fine static. */
@media (prefers-reduced-motion: reduce) {
    .gd-mock-num,
    .gd-mock-label,
    .gd-mock-field::after,
    .gd-mock-btn { animation: none; }

    .gd-mock-field::after { width: 62%; }
}

/* ---- User menu --------------------------------------------------------------- */

.gd-user-menu { min-width: 260px; padding-top: 0; }

.gd-user-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 12px;
    background: var(--gd-orange-soft);
}

.gd-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gd-ink);
    line-height: 1.3;
}

.gd-user-mail {
    font-size: 0.75rem;
    color: var(--gd-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Step 2 room cards -------------------------------------------------------- */

.gd-room-card {
    border: 1px solid var(--gd-line);
    border-radius: var(--gd-radius-lg);
    background: var(--gd-surface);
    padding: 18px 20px;
    margin-bottom: 16px;
}

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

.gd-room-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gd-ink);
}

/* ---- Step 4 image grid --------------------------------------------------------- */

.gd-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.gd-image-card {
    border: 1px solid var(--gd-line);
    border-radius: var(--gd-radius-lg);
    overflow: hidden;
    background: var(--gd-surface);
    display: flex;
    flex-direction: column;
}

.gd-image-thumb {
    aspect-ratio: 4 / 3;
    background: var(--gd-ground) center / cover no-repeat;
    border-bottom: 1px solid var(--gd-line);
    position: relative;
}

.gd-image-pos {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--gd-radius-pill);
    padding: 2px 9px;
}

.gd-image-body { padding: 10px 12px 12px; }

.gd-dropzone {
    border: 2px dashed var(--gd-line-strong);
    border-radius: var(--gd-radius-lg);
    background: var(--gd-ground);
    padding: 36px 24px;
    text-align: center;
    transition: border-color var(--gd-transition, .15s ease), background var(--gd-transition, .15s ease);
}

.gd-dropzone:hover { border-color: var(--gd-orange); background: var(--gd-orange-soft); }

/* ---- Menu toggle --------------------------------------------------------------
   Three bars that fold into a cross. No filled box — it sits on the app bar as a
   glyph, and only picks up a tint on hover so it never competes with the logo. */

.gd-burger {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: transparent;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.18s ease;
}

.gd-burger:hover { background: var(--gd-tint); }

.gd-burger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.32);
}

.gd-burger span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: var(--gd-ink);
    transition: transform 0.26s cubic-bezier(.22, .61, .36, 1),
                opacity 0.18s ease,
                width 0.26s ease,
                background 0.18s ease;
}

.gd-burger:hover span { background: var(--gd-ink); }

/* Three equal bars closed, a clean cross open. Anything cleverer stops reading as a menu
   at this size. */
.gd-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gd-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.gd-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Collapsed rail ------------------------------------------------------------
   Closing the drawer narrows it to an icon rail rather than removing it, so the
   step numbers and their state stay visible while the form gets the width. */

.addprop .mud-drawer.mud-drawer--closed.mud-drawer-mini { overflow: hidden; }

.addprop .mud-drawer--closed .gd-rail-text,
.addprop .mud-drawer--closed .gd-rail-section { display: none; }

.addprop .mud-drawer--closed .gd-rail-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.addprop .mud-drawer--closed .gd-rail-divider { margin: 8px 12px; }

.gd-rail-divider {
    height: 1px;
    background: var(--gd-line);
    margin: 10px 14px;
}

/* Keeps the label from wrapping mid-collapse as the drawer animates. */
.gd-rail-text { white-space: nowrap; overflow: hidden; }

/* ---- Price rules table -------------------------------------------------------- */

.gd-pr-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gd-ink);
    white-space: nowrap;
}

/* ---- Video preview ------------------------------------------------------------ */

.gd-video-preview {
    margin: 8px 0 16px;
    max-width: 520px;
    aspect-ratio: 16 / 9;
    border-radius: var(--gd-radius-lg);
    overflow: hidden;
    border: 1px solid var(--gd-line);
    background: #000;
}

.gd-video-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ---- Dashboard ----------------------------------------------------------------- */

.gd-dash-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.gd-dash-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gd-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.gd-stat {
    background: var(--gd-surface);
    border: 1px solid var(--gd-line);
    border-radius: var(--gd-radius-lg);
    padding: 16px 18px;
}

.gd-stat-n {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--gd-ink);
}

.gd-stat-l {
    font-size: 0.75rem;
    color: var(--gd-muted);
    margin-top: 4px;
}

/* ---- Property rows -------------------------------------------------------------- */

.gd-prop-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 6px;
    border-bottom: 1px solid var(--gd-line);
    cursor: pointer;
    border-radius: var(--gd-radius);
    transition: background 0.15s ease;
}

.gd-prop-row:last-child { border-bottom: none; }
.gd-prop-row:hover { background: var(--gd-tint); }

.gd-prop-main { flex: 1; min-width: 0; }

.gd-prop-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gd-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-prop-meta {
    font-size: 0.75rem;
    color: var(--gd-muted);
    margin-top: 2px;
}

.gd-prop-progress {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gd-prop-progress > :first-child { flex: 1; }

.gd-prop-pct {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gd-muted);
    width: 34px;
    text-align: right;
}

@media (max-width: 720px) {
    .gd-prop-progress { display: none; }
}

.gd-empty {
    text-align: center;
    padding: 44px 20px;
}

/* ---- Review grid ---------------------------------------------------------------- */

.gd-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
}

.gd-review-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--gd-line);
    border-radius: var(--gd-radius-lg);
    background: var(--gd-surface);
    text-decoration: none;
    color: var(--gd-muted);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.gd-review-item:hover { border-color: var(--gd-line-strong); background: var(--gd-tint); }
.gd-review-item.started { color: var(--gd-orange-dark); border-color: #F6D2B4; }
.gd-review-item.done { color: var(--gd-success); border-color: #C6E3C0; }

.gd-review-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gd-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-review-state { font-size: 0.75rem; }

/* ---- User menu role line --------------------------------------------------------- */

.gd-user-role {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gd-orange-dark);
    margin-top: 2px;
}

/* ---- User menu sections ---------------------------------------------------------- */

.gd-menu-section {
    padding: 10px 16px 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gd-muted);
}

/* ---- Dashboard stat accents ------------------------------------------------------ */

.gd-stat-live { color: var(--gd-info); }
.gd-stat-ready { color: var(--gd-success); }

/* ---- Auth panel backdrop --------------------------------------------------------
   Sits behind everything in .gd-login-art. Either property footage or a drawn
   skyline, both under a scrim so the headline and card stay readable. */

.gd-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gd-backdrop-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Footage is atmosphere, not the subject — pull it back so white text stays crisp. */
    opacity: 0.34;
    filter: saturate(0.75);
}

.gd-backdrop-sky {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 62%;
    display: block;
}

.gd-sky-block { fill: rgba(255, 255, 255, 0.045); }

.gd-sky-win { fill: rgba(255, 255, 255, 0.05); }

/* Lit windows warm up and cool down on a long, staggered loop, so the skyline is alive
   without ever pulling the eye off the form. */
.gd-sky-win.lit {
    fill: var(--gd-orange);
    opacity: 0.16;
    animation: gd-window 9s ease-in-out infinite;
}

@keyframes gd-window {
    0%, 100% { opacity: 0.10; }
    45%      { opacity: 0.52; }
    70%      { opacity: 0.20; }
}

/* Fades the skyline into the panel at the top and deepens it at the very bottom, so it
   reads as distance rather than a band stuck to the edge. */
.gd-backdrop-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(14, 31, 53, 0.86) 0%,
            rgba(14, 31, 53, 0.52) 34%,
            rgba(14, 31, 53, 0.62) 68%,
            rgba(10, 22, 38, 0.90) 100%);
}

/* The mark watermark has to sit above the backdrop but below the copy. */
.gd-login-art::after { z-index: 0; }

@media (prefers-reduced-motion: reduce) {
    .gd-sky-win.lit { animation: none; opacity: 0.3; }
    .gd-backdrop-video { display: none; }
}

/* ---- Skeleton loaders -------------------------------------------------------------
   A sheen sweeping across placeholder blocks shaped like the content that is coming. */

.gd-skel {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #EDF1F6;
}

.gd-skel::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(255, 255, 255, 0) 100%);
    animation: gd-sheen 1.4s ease-in-out infinite;
}

@keyframes gd-sheen {
    100% { transform: translateX(100%); }
}

.gd-skel-wrap { width: 100%; }

.gd-skel-title { height: 26px; width: 220px; margin-bottom: 10px; }
.gd-skel-sub { height: 13px; width: 340px; max-width: 70%; margin-bottom: 26px; }

.gd-skel-row {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 24px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--gd-line);
}

.gd-skel-label { height: 13px; width: 62%; }
.gd-skel-field { height: 38px; max-width: 420px; }

.gd-skel-listrow {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 6px;
    border-bottom: 1px solid var(--gd-line);
}

.gd-skel-name { height: 14px; width: 210px; margin-bottom: 8px; }
.gd-skel-meta { height: 11px; width: 150px; }
.gd-skel-bar { height: 6px; width: 180px; border-radius: 3px; }

.gd-skel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.gd-skel-tile { height: 86px; border-radius: var(--gd-radius-lg); }

@media (max-width: 900px) {
    .gd-skel-row { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .gd-skel::after { animation: none; }
}

/* ---- Expansion panels ------------------------------------------------------------
   The open panel should be obvious at a glance — on Features and Chapters you are
   often several panels deep and need to know which one you are in. */

.addprop .mud-expand-panel {
    border: 1px solid var(--gd-line) !important;
    border-radius: var(--gd-radius-lg) !important;
    margin-bottom: 10px !important;
    background: var(--gd-surface) !important;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.addprop .mud-expand-panel::before { display: none !important; }

.addprop .mud-expand-panel:hover { border-color: var(--gd-line-strong) !important; }

.addprop .mud-expand-panel .mud-expand-panel-header {
    padding: 14px 18px !important;
    font-size: 0.9375rem;
}

/* Open: brand border, a rule down the left edge, tinted header, lifted off the page. */
/* Open: lifted off the page, a firmer neutral border, and one orange rule down the left
   edge. The open panel is already the only one showing its contents — it needs a marker,
   not a highlight. */
.addprop .mud-expand-panel.mud-panel-expanded {
    border-color: var(--gd-line-strong) !important;
    box-shadow: 0 4px 18px rgba(18, 38, 63, 0.08) !important;
}

.addprop .mud-expand-panel.mud-panel-expanded .mud-expand-panel-header {
    background: var(--gd-surface);
    border-bottom: 1px solid var(--gd-line);
    box-shadow: inset 3px 0 0 var(--gd-orange);
}

.addprop .mud-expand-panel.mud-panel-expanded .mud-expand-panel-header { color: var(--gd-ink); }

.addprop .mud-expand-panel.mud-panel-expanded .mud-expand-panel-header .mud-icon-root {
    color: var(--gd-orange);
}

.addprop .mud-expand-panel .mud-expand-panel-text { padding: 16px 18px 18px !important; }

/* ---- Collapsed rail ---------------------------------------------------------------
   Narrower, tighter, and the current step actually announces itself. */

.addprop .mud-drawer--closed .gd-rail-link {
    padding: 7px 0;
    margin: 2px 8px;
    border-radius: 10px;
}

.addprop .mud-drawer--closed .gd-rail-link.active {
    background: var(--gd-tint-strong);
    box-shadow: inset 2px 0 0 var(--gd-orange);
}

.addprop .mud-drawer--closed .gd-rail-dot {
    width: 26px;
    height: 26px;
    font-size: 12px;
}

.addprop .mud-drawer--closed .gd-rail-link.active .gd-rail-dot {
    box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.18);
}

.gd-rail-dot { transition: background 0.15s ease, box-shadow 0.15s ease; }

/* Open rail: the active row gets the same left rule so the two states match. */
.gd-rail-link.active { box-shadow: inset 3px 0 0 var(--gd-orange); }

/* ---- Date pickers -----------------------------------------------------------------
   Width belongs on the wrapper. Putting it on MudDatePicker itself caps the popover too,
   which silently clips the calendar to five columns - Saturday and Sunday just vanish. */

.gd-picker { max-width: 220px; }

/* Belt and braces: nothing may squeeze a picker popover below a full week. */
.addprop .mud-popover.mud-picker-open,
.addprop .mud-picker-paper {
    max-width: none !important;
    min-width: 310px;
}

/* ---- Dynamic forms ----------------------------------------------------------------- */

.gd-section-title {
    color: var(--gd-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Short values (postcodes, codes, IDs) should not stretch the full column. */
.gd-narrow { max-width: 260px; }

/* ---- Rich text ----------------------------------------------------------------------- */

.gd-richtext {
    border: 1px solid var(--gd-line-strong);
    border-radius: var(--gd-radius);
    background: var(--gd-surface);
    overflow: hidden;
}

.gd-richtext:focus-within {
    border-color: var(--gd-orange);
    box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.15);
}

.gd-richtext .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--gd-line); }
.gd-richtext .ql-container.ql-snow { border: 0; min-height: 160px; font-family: var(--gd-font); }
/* The typing area fills the box. Without this only its first line took a click, and text typed after
   clicking lower down went nowhere (guidebook chapters saved as empty). */
.gd-richtext .ql-editor { min-height: 160px; cursor: text; }

/* ---- Images: placeholder when this browser does not hold the bytes -------------------- */

.gd-image-missing {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--gd-muted);
    font-size: 0.75rem;
}

.gd-dropzone-sm { padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* ---- Chapters --------------------------------------------------------------------------- */

.gd-chapter-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--gd-line);
    cursor: pointer;
    border-radius: var(--gd-radius);
    transition: background 0.15s ease;
    /* The whole row is a button; a double-click should open the chapter, not select its title. */
    user-select: none;
}

.gd-chapter-row:hover { background: var(--gd-tint); }

.gd-chapter-thumb {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--gd-ground);
    border: 1px solid var(--gd-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gd-muted);
    overflow: hidden;
}

.gd-chapter-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gd-chapter-main { flex: 1; min-width: 0; }

.gd-chapter-title { font-size: 0.9rem; font-weight: 600; color: var(--gd-ink); }

.gd-chapter-preview {
    font-size: 0.8rem;
    color: var(--gd-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-chapter-inline { padding: 4px 8px 12px 66px; border-bottom: 1px solid var(--gd-line); }

@media (max-width: 720px) { .gd-chapter-inline { padding-left: 8px; } }

.gd-chapter-image {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border: 1px solid var(--gd-line);
    border-radius: var(--gd-radius);
}

.gd-chapter-image img {
    width: 96px;
    height: 72px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--gd-ground);
}

/* ---- Brand the wizard's MudBlazor Color.Primary as Felix orange ----
   GuestDen's MudThemeProvider uses MudBlazor defaults (primary = purple #594AE2). The ported
   wizard was written against an orange primary, so Color.Primary buttons/chips showed purple
   after the port. Re-point the primary palette vars, scoped to .addprop so the rest of GuestDen
   is untouched. */
.addprop {
    --mud-palette-primary: #FD7E14;
    --mud-palette-primary-rgb: 253, 126, 20;
    --mud-palette-primary-text: #FFFFFF;
    --mud-palette-primary-darken: #E06A00;
    --mud-palette-primary-lighten: #FF9A47;
    --mud-palette-primary-hover: rgba(253, 126, 20, 0.078);
}

/* ======================= Add Property top-stepper (TopStepper.razor) ======================= */
.aps-stepper { display: flex; align-items: center; overflow-x: auto; padding: 10px 4px; gap: 0; }
.aps-stepper::-webkit-scrollbar { height: 6px; }
.aps-stepper::-webkit-scrollbar-thumb { background: var(--gd-line-strong); border-radius: 3px; }
.aps-step { display: flex; align-items: center; flex: 1 1 auto; min-width: 150px; }
.aps-step:last-child { flex: 0 0 auto; min-width: 0; }
.aps-node {
    width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 13px; background: #C8D2DF; color: #fff;
    transition: background .15s ease, box-shadow .15s ease;
}
.aps-step.current .aps-node { background: var(--gd-orange); box-shadow: 0 0 0 4px rgba(253,126,20,.18); }
.aps-step.done .aps-node { background: var(--gd-orange); }
.aps-check { font-size: 18px !important; color: #fff; }
.aps-text { margin-left: 10px; }
.aps-title { font-size: 13px; font-weight: 600; color: var(--gd-ink); white-space: nowrap; line-height: 1.15; }
.aps-step.upcoming .aps-title { color: #8A98AB; font-weight: 500; }
.aps-sub { font-size: 11px; color: var(--gd-muted); white-space: nowrap; margin-top: 1px; }
.aps-line { height: 2px; background: var(--gd-line); flex: 1 1 auto; min-width: 20px; margin: 0 10px; border-radius: 2px; }
.aps-line.filled { background: var(--gd-orange); }
.aps-step.clickable { cursor: pointer; }
.aps-step.clickable:hover .aps-title { color: var(--gd-orange-dark); }

.aps-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

@media (max-width: 720px) {
    .aps-step { min-width: 128px; }
    .aps-sub { display: none; }
}

/* ======================= Add Property wizard shell (AddPropertyWizard.razor) ======================= */
.aps-railcard { border: 1px solid var(--gd-line); border-radius: var(--gd-radius-lg); padding: 6px 10px; background: var(--gd-surface); }
.aps-card { border-radius: var(--gd-radius-lg); overflow: hidden; }
.aps-stepline { display: flex; align-items: baseline; gap: 10px; padding: 16px 16px 0; flex-wrap: wrap; }
.aps-stepcount { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gd-orange-dark); }
.aps-steptitle { font-size: 16px; font-weight: 600; color: var(--gd-ink); }
.aps-section { font-size: 13px; font-weight: 600; color: var(--gd-ink); border-left: 3px solid var(--gd-orange); padding-left: 10px; margin: 6px 0 14px; }
.aps-reviewgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.aps-reviewtile { display: flex; align-items: center; gap: 10px; border: 1px solid var(--gd-line); border-radius: var(--gd-radius); padding: 12px 14px; background: var(--gd-ground); }
.aps-reviewico { color: var(--gd-orange) !important; }
.aps-reviewname { font-size: 14px; font-weight: 600; color: var(--gd-ink); }
.aps-reviewsub { font-size: 12px; color: var(--gd-muted); }

/* ======================= User Onboarding form (Pages/Onboarding/OnboardingWizard.razor) =======================
   Same layout as the Add Property wizard (TopStepper + aps-* card and section headings). These rules only add
   the two-column field grid, the yes/no rows, the inline list tables and the pricing grid. */
.onbw-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.onbw-wide { grid-column: 1 / -1; }
.onbw-question { padding: 6px 0; max-width: 720px; }
.onbw-yesno { display: flex; align-items: center; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; padding: 4px 0; }
.onbw-yesno-label { display: block; font-size: 14px; color: var(--gd-ink); }
.onbw-swatch { flex: 0 0 auto; width: 22px; height: 22px; border-radius: var(--gd-radius-sm); border: 1px solid var(--gd-line-strong); display: inline-block; }

.onbw-reviewtile { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.onbw-reviewtile:hover { border-color: var(--gd-orange); }
.onbw-reviewtile.ok .onbw-reviewico { color: var(--gd-success) !important; }
.onbw-reviewtile.todo .onbw-reviewico { color: var(--gd-orange) !important; }

.onbw-tablewrap { overflow-x: auto; }
.onbw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.onbw-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gd-muted); padding: 8px 6px; background: var(--gd-ground); white-space: nowrap; }
.onbw-table td { padding: 5px 6px; border-top: 1px solid var(--gd-line); vertical-align: middle; }
.onbw-emptyrow { color: var(--gd-muted); padding: 12px 6px !important; }
.onbw-cell { width: 100%; min-width: 110px; border: 1px solid var(--gd-line-strong); border-radius: var(--gd-radius); padding: 7px 9px; font: inherit; color: var(--gd-ink); background: var(--gd-surface); }
.onbw-cell:focus, .onbw-cellinput:focus { outline: none; border-color: var(--gd-orange); box-shadow: 0 0 0 3px rgba(253, 126, 20, .15); }
.onbw-price { min-width: 620px; font-variant-numeric: tabular-nums; }
.onbw-setting { font-weight: 600; white-space: nowrap; }
.onbw-setting small { color: var(--gd-muted); font-weight: 400; margin-left: 4px; }
.onbw-grouprow td { background: var(--gd-ground); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gd-muted); }
.onbw-cellinput { width: 70px; border: 1px solid var(--gd-line-strong); border-radius: var(--gd-radius); padding: 5px 8px; font: inherit; color: var(--gd-ink); background: var(--gd-surface); }
.onbw-cellinput.ovr { border: 1.5px solid var(--gd-orange); font-weight: 600; }
.onbw-ovrwrap { display: inline-flex; align-items: center; gap: 2px; }
.onbw-reset { border: 0; background: transparent; color: var(--gd-muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.onbw-reset:hover { color: var(--gd-error); }
.onbw-inh { width: 70px; text-align: left; border: 1px dashed var(--gd-line-strong); border-radius: var(--gd-radius); padding: 5px 8px; background: transparent; color: #9AA8BA; font: inherit; cursor: pointer; }
.onbw-inh:hover { border-color: var(--gd-orange); color: var(--gd-orange-dark); }
.onbw-na { color: #9AA8BA; font-style: italic; font-size: 12px; }

@media (max-width: 700px) {
    .onbw-fields { grid-template-columns: 1fr; }
}

/* User Onboarding boxes (one per section) + their popup. A box turns green when done. */
.onbw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.onbw-box {
    display: flex; flex-direction: column; gap: 10px; width: 100%; min-height: 140px; padding: 16px;
    text-align: left; font: inherit; color: inherit; cursor: pointer;
    border: 1px solid var(--gd-line); border-radius: var(--gd-radius-lg); background: var(--gd-surface);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.onbw-box:hover { border-color: var(--gd-orange); box-shadow: 0 2px 10px rgba(18, 38, 63, .08); }
.onbw-box:focus-visible { outline: 2px solid var(--gd-orange); outline-offset: 2px; }
.onbw-boxtop { display: flex; align-items: center; gap: 10px; }
.onbw-ico { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gd-orange-soft); color: var(--gd-orange-dark); }
.onbw-ico .mud-icon-root { font-size: 20px; }
.onbw-boxtitle { font-size: 14.5px; font-weight: 600; color: var(--gd-ink); line-height: 1.2; }
.onbw-boxblurb { font-size: 12.5px; color: var(--gd-muted); line-height: 1.4; }
.onbw-boxfoot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.onbw-count { font-size: 12.5px; font-weight: 600; color: var(--gd-ink); font-variant-numeric: tabular-nums; }
.onbw-mini { display: block; height: 6px; border-radius: 99px; background: var(--gd-tint-strong); overflow: hidden; }
.onbw-mini > i { display: block; height: 100%; border-radius: 99px; background: var(--gd-orange); transition: width .25s ease; }
.onbw-pill { display: inline-flex; align-items: center; border-radius: 99px; padding: 3px 10px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.onbw-pill.done { background: #E3F4E6; color: var(--gd-success); }
.onbw-pill.prog { background: var(--gd-orange-soft); color: var(--gd-orange-dark); }
.onbw-pill.idle { background: var(--gd-tint); color: var(--gd-muted); }
.onbw-box.done { border-color: #9FD5AA; background: #F1FAF3; }
.onbw-box.done .onbw-ico { background: var(--gd-success); color: #fff; }
.onbw-box.done .onbw-mini > i { background: var(--gd-success); }

.onbw-dlg {
    --mud-palette-primary: #FD7E14;
    --mud-palette-primary-rgb: 253, 126, 20;
    --mud-palette-primary-text: #FFFFFF;
    --mud-palette-primary-darken: #E06A00;
    --mud-palette-primary-lighten: #FF9A47;
    --mud-palette-primary-hover: rgba(253, 126, 20, 0.078);
    font-family: var(--gd-font);
    color: var(--gd-ink);
}
.onbw-dialog { padding-bottom: 4px; }

@media (max-width: 600px) {
    .onbw-grid { grid-template-columns: 1fr; }
    .onbw-box { min-height: 0; }
}

/* ---- User Onboarding: Dave's review (12 Nov 2026) ---- */
.onbw-field { display: flex; align-items: flex-start; gap: 2px; }
.onbw-field-main { flex: 1 1 auto; min-width: 0; }
.addprop .onbw-info, .onbw-dlg .onbw-info { margin-top: 6px; color: var(--mud-palette-text-secondary); }
.onbw-dlg .onbw-info:hover, .addprop .onbw-info:hover { color: var(--mud-palette-primary); }
.onbw-setting .onbw-info { margin-top: -2px; padding: 2px; }
.onbw-info-body { line-height: 1.6; }
.onbw-info-body code { background: rgba(0,0,0,.06); padding: 0 4px; border-radius: 4px; }
.onbw-html { border: 1px solid var(--mud-palette-lines-inputs); border-radius: 8px; padding: 8px 12px 10px; }
.onbw-html-head { display: flex; align-items: center; gap: 4px; min-height: 34px; }
.onbw-html-label { font-weight: 600; font-size: .9rem; }
.onbw-html-head .onbw-info { margin-top: 0; }
.onbw-html-preview { font-size: .85rem; color: var(--mud-palette-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onbw-html-preview.empty { font-style: italic; }
.onbw-html .gd-richtext { margin-top: 6px; }

/* Felix Forms v3: multi-choice ticks inside a list cell (team access) */
.onbw-checks { display: flex; flex-wrap: wrap; gap: 4px 12px; min-width: 180px; }
.onbw-chk { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; color: var(--gd-ink); white-space: nowrap; cursor: pointer; }
.onbw-chk input { accent-color: var(--gd-orange); }

/* Felix Forms v3: long tick lists (amenities) as searchable, folding groups */
.onbw-group { border: 1px solid var(--gd-line); border-radius: 8px; margin-bottom: 6px; background: var(--gd-card, #fff); }
.onbw-group summary { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; font-weight: 600; font-size: .9rem; list-style: none; }
.onbw-group summary::-webkit-details-marker { display: none; }
.onbw-group summary::before { content: "\25B8"; color: var(--gd-muted); transition: transform .15s; }
.onbw-group[open] summary::before { transform: rotate(90deg); }
.onbw-group-name { flex: 1; }
.onbw-group-count { font-size: .78rem; font-weight: 500; color: var(--gd-muted); }
.onbw-checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; padding: 4px 12px 12px; }
.onbw-checks-grid .onbw-chk { white-space: normal; }

/* Felix Forms v3: a list inside a list row (the beds in a bedroom) */
.onbw-nested { min-width: 220px; }
.onbw-nested .onbw-table th { padding: 4px; font-size: 10px; }
.onbw-nested .onbw-table td { padding: 3px 4px; }

/* Felix Forms v3: photo answers (straight to Azure Blob) */
.onbw-photo { display: flex; align-items: flex-start; gap: 14px; }
.onbw-photo-thumb { flex: 0 0 auto; width: 160px; height: 112px; border-radius: 8px; overflow: hidden; border: 1px solid var(--gd-line); background: var(--gd-ground); display: flex; align-items: center; justify-content: center; color: var(--gd-muted); }
.onbw-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.onbw-photo-thumb.empty { border-style: dashed; }
.onbw-photo-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.onbw-photo.compact { gap: 8px; align-items: center; min-width: 220px; }
.onbw-photo.compact .onbw-photo-thumb { width: 96px; height: 66px; }
.onbw-upload-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border: 1px solid var(--gd-orange); border-radius: 6px; color: var(--gd-orange); font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; background: transparent; }
.onbw-upload-btn:hover { background: rgba(244, 121, 32, .08); }
.onbw-upload-btn:focus-within { outline: 2px solid var(--gd-orange); outline-offset: 2px; }
.onbw-upload-btn.busy { opacity: .6; cursor: default; }
.onbw-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.onbw-linkbtn { border: 0; background: none; padding: 0; color: var(--gd-muted); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.onbw-photo-error { color: var(--mud-palette-error, #c62828); font-size: .8rem; max-width: 340px; }
.onbw-rowactions { white-space: nowrap; }

/* "Same for all properties / Set per property" (onboarding questions that pre-fill Add Property) */
.onbw-defchoice { display: inline-flex; margin-top: 6px; border: 1px solid var(--gd-line-strong); border-radius: 6px; overflow: hidden; }
.onbw-defchoice button { border: 0; background: transparent; padding: 3px 10px; font: inherit; font-size: .78rem; color: var(--gd-muted); cursor: pointer; white-space: nowrap; }
.onbw-defchoice button + button { border-left: 1px solid var(--gd-line-strong); }
.onbw-defchoice button.on { background: rgba(253, 126, 20, .12); color: var(--gd-orange); font-weight: 600; }
.onbw-defchoice button:focus-visible { outline: 2px solid var(--gd-orange); outline-offset: -2px; }
.onbw-defchoice button:disabled { cursor: default; opacity: .7; }
.onbw-defchoice.compact { display: flex; width: max-content; margin-top: 4px; }
.onbw-defchoice.compact button { padding: 2px 8px; font-size: .72rem; }
.onbw-defchoice-hint { font-size: .75rem; color: var(--gd-muted); margin-top: 2px; }

/* Add Property: questions answered by the account defaults */
.onbw-accountnote { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 8px 12px; border: 1px dashed var(--gd-line-strong); border-radius: 8px; font-size: .82rem; color: var(--gd-muted); }
.onbw-accountnote strong { color: inherit; }

/* Refused answers on their field (fix 2.4 #10) */
.onbw-field-error { color: var(--mud-palette-error, #c62828); font-size: .8rem; margin-top: 4px; }
.onbw-cell-error { color: var(--mud-palette-error, #c62828); font-size: .72rem; margin-top: 2px; max-width: 220px; white-space: normal; }
.onbw-cellerr .onbw-cell, .onbw-cellerr .onbw-cellinput { border-color: var(--mud-palette-error, #c62828) !important; }
.onbw-errsum:focus { outline: none; }
.onbw-errsum:focus-visible { outline: 2px solid var(--mud-palette-error, #c62828); outline-offset: 2px; border-radius: 4px; }

/* Edit clash: keep mine / use theirs per answer (fix 2.4 #3) */
.onbw-clash { border: 1px solid var(--gd-orange); background: rgba(253, 126, 20, .06); border-radius: 8px; padding: 10px 12px; }
.onbw-clash-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; margin-top: 8px; border-top: 1px dashed var(--gd-line-strong); font-size: .85rem; }
.onbw-clash-actions { display: inline-flex; gap: 6px; }

/* Stepper steps reachable by keyboard */
.aps-step[role="button"]:focus-visible { outline: 2px solid var(--gd-orange); outline-offset: 3px; border-radius: 6px; }
