/* ─── Blazor framework resets ──────────────────────────────────────────────── */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1rem, 0.92rem + 0.5vw, 1.125rem);
    overflow: hidden; /* panels are fixed; only wc-content scrolls */
    /* 20260614 CL - crisp text: grayscale antialiasing (light-on-dark otherwise renders heavy/fuzzy) */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ─── Custom scrollbar styling ─────────────────────────────────────────────── */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 208, 92, 0.3) rgba(28, 40, 32, 0.4);
}
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
*::-webkit-scrollbar-track {
    background: rgba(28, 40, 32, 0.4);
    border-radius: 4px;
}
*::-webkit-scrollbar-thumb {
    background: rgba(74, 208, 92, 0.3);
    border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 208, 92, 0.5);
}
*::-webkit-scrollbar-corner {
    background: transparent;
}
h1 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.75rem); margin: 0 0 0.5rem; font-weight: 600; }
h2 { font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.4rem); margin: 0 0 0.4rem; font-weight: 600; }
h3 { font-size: clamp(1.05rem, 0.92rem + 0.4vw, 1.2rem); margin: 0 0 0.4rem; font-weight: 600; }
h4 { font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.05rem); margin: 0 0 0.3rem; font-weight: 600; }
h5, h6 { font-size: clamp(0.9rem, 0.84rem + 0.2vw, 0.98rem); margin: 0 0 0.2rem; font-weight: 600; }

/* 20260614 CL - VALUE READABILITY (measured + design-reviewed): emphasised values rendered "fatty/fuzzy"
   because bold(700) + muted desaturated mint (--wc-text #b5e8b5) on near-black blooms/halates. The font
   (Arial) is fine — already antialiased. Fix across the board: ease the weight and use a brighter, higher
   -chroma value colour with tabular figures, so numbers stay crisp. Labels/prose keep muted --wc-text. */
strong, b {
    font-weight: 500;
    color: #d9ffd9;
    font-variant-numeric: tabular-nums;
}

a, .btn-link { color: #006bb7; text-decoration: none !important; }
a:hover { text-decoration: none !important; }

.btn-primary { color: #fff; background-color: #1b6ec2; border-color: #1861ac; }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

h1:focus { outline: none; }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

/* ─── Blazor error / reconnect UI ─────────────────────────────────────────── */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after { content: "An error has occurred." }

/* 20260507 CL - hidden by default; JS switches to display:block on a real circuit error. */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0; left: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    box-sizing: border-box;
    display: none;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

.darker-border-checkbox.form-check-input { border-color: #929292; }
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder { color: var(--bs-secondary-color); text-align: end; }
.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder { text-align: start; }

/* ─── Layout constants ─────────────────────────────────────────────────────── */
:root {
    --wc-top-h:   48px;
    --wc-bot-h:   30px;     /* 20260615 CL: footer height — bell/badge fits cleanly */
    --wc-rail-w:  48px;    /* 20260613 Chris L: resting icon-rail width for the flyout side panels */
    --wc-left-w:  160px;   /* 20260614 CL: EXPANDED left flyout width — just wider than the widest link ("Balance Sheet") */
    --wc-left-w-collapsed: 36px;
    --wc-right-w: 175px;   /* 20260614 CL: EXPANDED right flyout width — just wider than the longest link / "Scores & Help" header */
}

/* ─── Fixed 4-panel shell ──────────────────────────────────────────────────── */
/* 20260507 CL - replaces old flex/grid .wc-page layout. Only .wc-content scrolls. */
.wc-shell { position: relative; }

.wc-top {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--wc-top-h);
    z-index: 100;
    background: #1b3a5b;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* 20260613 CL - flyout side panels: rest as a narrow icon rail; expand OVER the content on hover
   or when pinned (expand button); a nav click sets .wc-force-collapsed to tuck it back to the rail.
   Content only ever reserves the rail width, so the expanded panel overlays it (z-index 90 > 50). */
.wc-left {
    position: fixed;
    top: var(--wc-top-h); bottom: var(--wc-bot-h); left: 0;   /* 20260613 CL: full height, frames the tip ribbon */
    width: var(--wc-rail-w);
    z-index: 90;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.18s ease, box-shadow 0.18s ease;
    background: #1c2820;
    border-right: 1px solid #1f5a2f;
}
.wc-left:hover,
.wc-left.wc-pinned { width: var(--wc-left-w); box-shadow: 4px 0 16px rgba(0,0,0,0.35); }
.wc-left.wc-force-collapsed,
.wc-left.wc-force-collapsed:hover { width: var(--wc-rail-w); box-shadow: none; }

.wc-right {
    position: fixed;
    top: var(--wc-top-h); bottom: var(--wc-bot-h); right: 0;   /* 20260613 CL: full height, frames the tip ribbon */
    width: var(--wc-rail-w);
    z-index: 90;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    transition: width 0.18s ease, box-shadow 0.18s ease;
    background: #1c2820;
    border-left: 1px solid #1f5a2f;
}
.wc-right:hover,
.wc-right.wc-pinned { width: var(--wc-right-w); box-shadow: -4px 0 16px rgba(0,0,0,0.35); }
.wc-right.wc-force-collapsed,
.wc-right.wc-force-collapsed:hover { width: var(--wc-rail-w); box-shadow: none; }
.wc-right::-webkit-scrollbar { display: none; }

.wc-content {
    position: fixed;
    top: var(--wc-top-h); bottom: var(--wc-bot-h);
    left: var(--wc-rail-w); right: var(--wc-rail-w);                         /* 20260613 CL: reserve only the rails */
    height: auto; /* override BlazorBootstrap: main { height: 100vh } */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px clamp(0.4rem, 0.25rem + 0.8vw, 1rem) clamp(0.4rem, 0.25rem + 0.6vw, 0.75rem);
    box-sizing: border-box;
    z-index: 50;
}
.wc-content > *:first-child,
.wc-content > * > *:first-child { margin-top: 0 !important; }
.wc-content * { max-width: 100%; box-sizing: border-box; }

/* ─── Bottom status bar ────────────────────────────────────────────────────── */
/* 20260507 CL - 5-column slim status bar; unobtrusive but readable. */
.wc-bottom {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--wc-bot-h);
    z-index: 100;
    display: grid;
    grid-template-columns: 180px 1fr 340px 1fr 240px;  /* 20260613 CL: wider col5 for the year stepper */
    font-size: 11px;
    line-height: var(--wc-bot-h);
    background: #1b3a5b;
    color: rgba(255,255,255,0.75);
}
.wc-status-col1, .wc-status-col5 { padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-status-col3 { text-align: center; white-space: nowrap; font-size: 8pt; }
.wc-status-col5 { text-align: right; }
.wc-conn-dot { display: none; }   /* 20260614 CL - hidden: it was a hardcoded "online" dot wired to nothing */
/* 20260614 CL - Your Scores: card hugs its table (not full width); empty hint = bright card, text-width, view-centred */
.wc-hs-card { width: fit-content; max-width: 100%; }
.wc-hs-empty { display: flex; align-items: center; justify-content: center; min-height: 60vh; text-align: center; }
.wc-hs-empty-card { width: fit-content; max-width: 100%; border: 1px solid #ff1a1a; background: rgba(255,26,26,0.15); }
.wc-hs-empty-msg { margin: 0; color: #ff1a1a; font-weight: 700; }

/* ─── Flyout panel header (title + pin/expand button) ──────────────────────── */
/* 20260613 CL - rail: only the pin button shows, centred (title collapses to width 0).
   Expanded (hover-not-collapsed or pinned): title fades in, button moves to the far edge. */
.wc-left-header, .wc-right-header {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #1f5a2f;
    padding: 0 6px;
    height: 28px;
    overflow: hidden;
}
.wc-left:hover:not(.wc-force-collapsed) .wc-left-header,
.wc-left.wc-pinned .wc-left-header { justify-content: space-between; padding: 0 6px 0 10px; }
.wc-right:hover:not(.wc-force-collapsed) .wc-right-header,
.wc-right.wc-pinned .wc-right-header { justify-content: space-between; padding: 0 10px 0 6px; }

.wc-left-title, .wc-right-title {
    font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em;
    color: #4ad05c; white-space: nowrap;
    opacity: 0; width: 0; overflow: hidden; transition: opacity 0.12s ease;
}
.wc-left:hover:not(.wc-force-collapsed) .wc-left-title,
.wc-left.wc-pinned .wc-left-title,
.wc-right:hover:not(.wc-force-collapsed) .wc-right-title,
.wc-right.wc-pinned .wc-right-title { opacity: 0.75; width: auto; }

.wc-nav-toggle {
    background: none; border: none;
    color: #4ad05c; cursor: pointer;
    padding: 2px 4px; line-height: 1; flex-shrink: 0;
}
.wc-nav-toggle:hover { color: #6ae07c; }
.wc-toggle-icon { font-size: 16px; }

/* ─── Flyout nav items (rail = centred icons, expanded = icon + label) ─────────── */
.wc-left-nav, .wc-right-nav { padding: 0; }
.wc-nav-section-label {
    font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em;
    color: #4ad05c; padding: 8px 10px 2px; opacity: 0.7;
}
.wc-left-nav ul, .wc-right-nav ul { list-style: none; margin: 0; padding: 0; }
.wc-left-nav li, .wc-right-nav li { border-bottom: 1px solid rgba(31,90,47,0.3); }
.wc-left-nav a, .wc-left-nav .wc-link-button,
.wc-right-nav a {
    display: flex; align-items: center; justify-content: center; gap: 0;
    padding: 8px 0;
    color: #b5e8b5; text-decoration: none; font-size: 0.82rem;
    white-space: nowrap; overflow: hidden;
    background: none; border: none; cursor: pointer; font: inherit; width: 100%;
}
/* Expanded: left-align icon + label */
.wc-left:hover:not(.wc-force-collapsed) .wc-left-nav a,
.wc-left:hover:not(.wc-force-collapsed) .wc-left-nav .wc-link-button,
.wc-left.wc-pinned .wc-left-nav a,
.wc-left.wc-pinned .wc-left-nav .wc-link-button,
.wc-right:hover:not(.wc-force-collapsed) .wc-right-nav a,
.wc-right.wc-pinned .wc-right-nav a {
    justify-content: flex-start; gap: 8px; padding: 8px 4px 8px 12px;
}
.wc-left-nav a:hover, .wc-left-nav .wc-link-button:hover,
.wc-right-nav a:hover { background: rgba(74,208,92,0.08); }
/* 20260613 CL - disabled nav item (e.g. Your Actions before the first year) — visible but inert.
   The anchor has no href so it never navigates; tooltip still shows the reason. */
.wc-nav-disabled { color: rgba(181,232,181,0.35) !important; cursor: not-allowed; }
.wc-nav-disabled .wc-nav-icon { color: rgba(74,208,92,0.3); }
.wc-nav-disabled:hover { background: none !important; }
.wc-nav-icon { width: 18px; text-align: center; flex-shrink: 0; font-size: 15px; color: #4ad05c; }
/* Labels are always in the DOM but hidden on the rail; revealed when the panel is expanded */
.wc-nav-label {
    opacity: 0; width: 0; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis;
    transition: opacity 0.12s ease;
    flex: 0 1 auto; min-width: 0; font-size: 0.82rem;
}
.wc-left:hover:not(.wc-force-collapsed) .wc-nav-label,
.wc-left.wc-pinned .wc-nav-label,
.wc-right:hover:not(.wc-force-collapsed) .wc-nav-label,
.wc-right.wc-pinned .wc-nav-label { opacity: 1; width: auto; }
.wc-logout-form { margin: 0; }
.wc-nav-logout { border-top: 1px solid var(--wc-border-strong) !important; margin-top: 4px; }

/* ─── Top bar internals ────────────────────────────────────────────────────── */
.wc-topbar-inner { display: flex; align-items: center; width: 100%; gap: 0.75rem; }
.wc-brand-link { display: inline-flex; align-items: center; }
.wc-logo { height: 32px; }
.wc-greeting { font-size: 0.85rem; opacity: 0.85; white-space: nowrap; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }  /* 20260613 CL: tip takes the stretchy middle now */

/* Mobile hamburger button - hidden by default, shown on mobile */
.wc-mobile-hamburger {
    display: none;
    background: none;
    border: none;
    color: #4ad05c;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
}
.wc-mobile-hamburger:hover { color: #6ae07c; }

.wc-year-badges {
    display: flex;
    flex-direction: row-reverse; /* year 1 rightmost, newest year leftmost */
    gap: 4px;
    margin-left: auto;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0;
}
.wc-year-badge {
    display: inline-block; padding: 1px 7px; border-radius: 10px;
    font-size: 11px; font-weight: 600;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    text-decoration: none; transition: background 0.15s; white-space: nowrap;
}
.wc-year-badge:hover { background: rgba(255,255,255,0.22); color: #fff; }
.wc-year-badge.wc-year-badge-active { background: #4ad05c; color: #0e1410; }

/* 20260613 CL - right-nav styling consolidated into the flyout nav-item rules above. */

/* ─── Tip card ─────────────────────────────────────────────────────────────── */
/* ─── Compact tip strip in the top menu ────────────────────────────────────── */
/* 20260613 CL: the rotating tip now lives in the top bar (was a bottom ribbon). It takes the
   stretchy middle of the top bar, truncates with ellipsis, and shows the full text on hover. */
.wc-tip-top {
    display: flex; align-items: center; gap: 6px;
    margin-left: auto;                    /* 20260613 CL: dock to the right edge of the top bar */
    flex: 0 1 auto; min-width: 0; max-width: 55%;
    padding: 0 0.5rem;
    overflow: hidden;
}
.wc-tip-top-icon { color: #e6b24a; font-size: 13px; flex-shrink: 0; }   /* amber lightbulb accent */
.wc-tip-top-text {
    font-size: 0.78rem; color: rgba(255,255,255,0.9);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex: 1 1 auto; min-width: 0;
}
.wc-tip-top-refresh {
    background: none; border: none; cursor: pointer;
    color: #cfe8cf; font-size: 12px; padding: 2px 5px;
    flex-shrink: 0; line-height: 1; border-radius: 3px;
}
.wc-tip-top-refresh:hover { color: #fff; background: rgba(255,255,255,0.12); }

/* ─── Bottom-right year stepper ─────────────────────────────────────────────── */
/* 20260613 CL: ◀ Year N · equity ▶ — carets link to /yearly-progress/{year}, hidden at the bounds. */
.wc-year-stepper { display: inline-flex; align-items: center; gap: 4px; }
/* 20260613 CL: fixed widths so the stepper never shifts — caret slots reserved at the bounds,
   tabular equity right-aligned in a fixed box. */
.wc-year-caret { color: #4ad05c; text-decoration: none; font-size: 12px; width: 11px; text-align: center; flex-shrink: 0; line-height: 1; }
.wc-year-caret:hover { color: #6ae07c; }
.wc-year-caret-off { visibility: hidden; }
.wc-year-current { white-space: nowrap; min-width: 50px; color: inherit; text-decoration: none; }
.wc-year-current:hover { text-decoration: underline; }
.wc-year-current-live { color: var(--wc-amber, #e0a85e); font-weight: 600; }   /* 20260614 CL - latest/"now" year → links to the live game */
.wc-year-equity { color: rgba(255,255,255,0.6); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; }

/* ─── Page content ─────────────────────────────────────────────────────────── */
.wc-card { background: rgba(28,36,30,0.6); border: 1px solid #1f5a2f; border-radius: 4px; padding: clamp(0.4rem, 0.3rem + 0.5vw, 0.75rem) clamp(0.5rem, 0.4rem + 0.5vw, 1rem); margin-bottom: clamp(0.3rem, 0.2rem + 0.3vw, 0.6rem); }
.wc-card h3 { margin-top: 0; margin-bottom: 0.3rem; }
.wc-card h4 { margin-top: 0.4rem; }
p { text-align: justify; margin: 0 0 0.4rem; }
p:last-child { margin-bottom: 0; }
/* 20260614 CL - balance-sheet summary cards: narrow so the label and amount sit close together */
.wc-bs-card { max-width: 340px; }
.wc-summary { width: 100%; }
.wc-summary th { text-align: left; padding: 0.2rem 0.5rem 0.2rem 0; font-weight: 500; font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.9rem); }
.wc-summary td { padding: 0.2rem 0; text-align: right; font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.9rem); font-variant-numeric: tabular-nums; }
.wc-table { width: 100%; border-collapse: collapse; }
.wc-table th, .wc-table td { padding: clamp(0.2rem, 0.15rem + 0.3vw, 0.4rem) clamp(0.25rem, 0.2rem + 0.3vw, 0.6rem); border-bottom: 1px solid #1f5a2f; text-align: left; font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.9rem); }
.wc-table thead th { background: rgba(74,208,92,0.06); font-weight: 500; }
/* 20260614 CL - Your Actions: scrollable body with a sticky header row (opaque fill so rows don't bleed through) */
/* 20260614 CL - let the actions table flow in the page (.wc-content is the scroll container) so the
   sticky header binds to the page scroll. border-collapse:separate is required for sticky th to work. */
.wc-actions-scroll .wc-table { border-collapse: separate; border-spacing: 0; }
.wc-actions-scroll thead th { position: sticky; top: 0; z-index: 2; background: #16241b; border-bottom: 1px solid #2e8047; }
.wc-actions-scroll td:last-child, .wc-actions-scroll th:last-child { white-space: nowrap; }   /* 20260614 CL - date column never wraps */
.wc-table tbody tr:hover { background: rgba(74,208,92,0.04); }
.wc-table th.wc-num,
.wc-table td.wc-num { text-align: right; font-variant-numeric: tabular-nums; } /* 20260508 CL - right-align numeric value columns */
.wc-table td.wc-num input { text-align: right; }
input[type="number"] { text-align: right; }
.wc-row-highlight { background: rgba(245,166,35,0.12) !important; font-weight: 600; }
.wc-warning { padding: 0.5rem 0.75rem; border-radius: 3px; border-left: 2px solid; margin-bottom: 0.5rem; }

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
/* 20260614 CL - wc-primary now uses the neutral outlined standard (was solid grasshopper green).
   The cancel/restart button is the single button standard across the game — no solid-green action buttons. */
.wc-primary {
    display: inline-block;
    padding: 0.75rem 1.4rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: var(--wc-text-dim, #8aa890);
    border: 1px solid var(--wc-border, #1f5a2f);
}
.wc-primary:hover:not(:disabled) { border-color: var(--wc-border-strong, #2e8047); color: var(--wc-text, #b5e8b5); }
.wc-primary:disabled { cursor: wait; background: transparent; color: #555; border-color: #2a2f2b; }
.wc-secondary { /* 20260508 CL - same size as wc-primary, muted outlined style */
    display: inline-block;
    padding: 0.75rem 1.4rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: var(--wc-text-dim, #8aa890);
    border: 1px solid var(--wc-border, #1f5a2f);
}
.wc-secondary:hover:not(:disabled) { border-color: var(--wc-border-strong, #2e8047); color: var(--wc-text, #b5e8b5); }
.wc-link-button { background: none; border: none; padding: 0; cursor: pointer; text-decoration: underline; font: inherit; }

/* ─── Responsive images ────────────────────────────────────────────────────── */
img { max-width: 100%; height: auto; }

/* Two-column page layout: fixed banner left, scrollable content right */
.wc-page-content { display: flex; gap: 0.75rem; align-items: flex-start; position: relative; margin: 0; padding: 0; }
.wc-page-banner { flex-shrink: 0; width: 200px; position: sticky; top: 0; margin: 0; padding: 0; }
.wc-page-banner img { width: 100%; height: auto; border-radius: 4px; display: block; }
.wc-page-main { flex: 1; min-width: 0; padding: 0; margin: 0; }


/* ─── Property image gallery ───────────────────────────────────────────────── */
.wc-gallery { margin-bottom: 1rem; }
.wc-gallery-nav { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.wc-gallery-btn { background: var(--wc-surface-alt, #141a16); border: 1px solid var(--wc-border, #1f5a2f); color: var(--wc-green, #4ad05c); border-radius: 3px; cursor: pointer; padding: 0.1rem 0.55rem; font-size: 1.2rem; line-height: 1.4; }
.wc-gallery-btn:hover:not(:disabled) { background: var(--wc-green, #4ad05c); color: #0a1a0d; }
.wc-gallery-btn:disabled { opacity: 0.3; cursor: default; }
.wc-gallery-counter { font-size: 0.8rem; opacity: 0.6; }
.wc-gallery-main { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; display: block; }
.wc-gallery-thumbs { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; }
.wc-gallery-thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 3px; cursor: pointer; opacity: 0.65; border: 2px solid transparent; flex-shrink: 0; }
.wc-gallery-thumb:hover, .wc-gallery-thumb.wc-thumb-active { opacity: 1; }

/* ─── Home page centring ───────────────────────────────────────────────────── */
.wc-home-center {
    position: relative;
    height: 100%; /* 20260615 CL - use content-box height of wc-content (accounts for padding); fixes spurious scrollbar */
    box-sizing: border-box;
    padding: 1rem 0.75rem 0;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}
.wc-home-hero {
    position: relative;
    height: 100%;
    text-align: left;
}
.wc-home-title { font-size: 2.6rem; margin-bottom: 0.25rem; }
.wc-home-sub { margin-bottom: 1.25rem; opacity: 0.75; font-size: 1rem; }
.wc-home-card {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0; right: 0;
    text-align: left; font-size: 1.05rem; line-height: 1.6;
}
/* links left, primary button right */
.wc-home-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
}
.wc-home-links { display: flex; gap: 1.5rem; }
.wc-home-actions .wc-primary { text-align: center; }   /* 20260613 CL - standard size, floated right by space-between */
.wc-btn-arrow { margin-left: .45em; font-size: .92em; }   /* 20260613 CL - thick FA arrow on action buttons */
.wc-admin-shell { display: flex; flex-direction: column; gap: 1rem; }
.wc-admin-nav { padding: 0.6rem 0.75rem !important; }
.wc-admin-links { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; } /* 20260508 CL - horizontal pill nav */
.wc-admin-links a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border-radius: 2em;
    border: 1px solid var(--wc-border-strong, #2e8047);
    background: var(--wc-surface-alt, #141a16);
    color: var(--wc-green, #4ad05c);
    font-size: 0.88rem;
    white-space: nowrap;
}
.wc-admin-pill-icon { opacity: 0.55; }
.wc-admin-links a:hover { background: var(--wc-green, #4ad05c); color: #0a1a0d; }
.wc-admin-links a:hover .wc-admin-pill-icon { opacity: 0.8; }
.wc-home-links a, .wc-home-card a { text-decoration: none; }
.wc-home-links a:hover, .wc-home-card a:hover { text-decoration: none; opacity: 0.85; }

/* ─── Auth pages (Login / Register) ───────────────────────────────────────── */
/* Full-height two-column: banner fills left, form centred H+V in right column */
.wc-auth-page {
    display: flex;
    height: calc(100vh - var(--wc-top-h) - var(--wc-bot-h));
    overflow: hidden;
    /* 20260615 CL - cancel all wc-content padding (top + sides + bottom) so auth page fills exactly with no scrollbar */
    margin: -10px -clamp(0.4rem, 0.25rem + 0.8vw, 1rem) -clamp(0.4rem, 0.25rem + 0.6vw, 0.75rem);
}
.wc-auth-banner { width: 200px; flex-shrink: 0; }
.wc-auth-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-auth-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}
.wc-login-wrap { width: 420px; }
.wc-login-title { font-size: 2rem; margin-bottom: 0.6rem; } /* 20260615 CL - reduced from 1.5rem; Register page no longer overflows */
/* Error panel: absolute top-right of the form area */
.wc-login-errors-col {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 260px;
}
.wc-login-error-panel {
    border: 1px solid var(--wc-error, #ff7b7b);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    background: rgba(255,123,123,0.06);
}
.wc-login-error-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--wc-error, #ff7b7b);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.wc-login-error-item {
    font-size: 0.85rem;
    color: var(--wc-error, #ff7b7b);
    margin: 0.25rem 0 0;
}
.wc-login-error { font-size: 0.85rem; margin-bottom: 1rem; }
.wc-login-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 1.1rem; }
.wc-login-field label { font-size: 0.82rem; opacity: 0.75; }
.wc-login-input {
    width: 100%; padding: 0.75rem 0.9rem; font-size: 1.05rem;
    border-radius: 4px; border: 1px solid #1f5a2f;
    background: #141a16; color: #b5e8b5;
    box-sizing: border-box;
}
.wc-login-input:focus { outline: none; border-color: #4ad05c; box-shadow: 0 0 0 2px rgba(74,208,92,0.2); }

/* Password visibility toggle — eye button inside the input */
.wc-password-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}
.wc-password-wrap .wc-login-input {
    padding-right: 2.6rem;
}
.wc-pw-toggle {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    font-size: 1.05rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}
.wc-pw-toggle:hover { color: #4ad05c; }
.wc-pw-toggle:focus-visible { outline: 1px solid #4ad05c; outline-offset: 1px; border-radius: 2px; }
.wc-login-remember { font-size: 0.85rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 6px; }
.wc-login-btn {
    width: 100%; padding: 0.8rem; font-size: 1rem; font-weight: 600;
    background: transparent; color: var(--wc-text-dim, #8aa890); border: 1px solid var(--wc-border, #1f5a2f); border-radius: 4px; cursor: pointer; /* 20260614 CL - neutral outlined standard (was solid grasshopper green) */
    text-transform: uppercase; letter-spacing: 0.05em;
}
.wc-login-btn:hover { border-color: var(--wc-border-strong, #2e8047); color: var(--wc-text, #b5e8b5); } /* 20260614 CL - neutral hover (was solid green) */
.wc-login-passkey { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.9rem; opacity: 0.7; }
.wc-login-links { display: flex; gap: 1.25rem; margin-top: 1.25rem; font-size: 0.9rem; }
.wc-login-link { color: #b5e8b5; opacity: 0.65; background: none; border: none; cursor: pointer; padding: 0; font: inherit; text-decoration: none; }
.wc-login-link:hover { opacity: 1; color: #4ad05c; }

/* ─── Admin property cards ─────────────────────────────────────────────────── */
.wc-prop-card { margin-bottom: 0.75rem; }
.wc-prop-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.wc-prop-badge { margin-left: 0.5rem; font-size: 0.75rem; opacity: 0.7; font-style: italic; }
.wc-prop-stats { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.5rem; font-size: 0.83rem; }
.wc-prop-stats strong { color: var(--wc-amber, #f5a623); font-size: 1rem; font-weight: 700; } /* 20260508 CL - amber values */
.wc-prop-actions { display: flex; gap: 0.4rem; flex-shrink: 0; align-items: center; }
.wc-prop-edit-grid + .wc-prop-actions { justify-content: flex-end; margin: 0.75rem auto 0; max-width: 480px; } /* 20260508 CL - float edit buttons right, aligned under grid */
.wc-prop-images { margin-top: 0.75rem; }
.wc-img-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wc-img-thumb-wrap { position: relative; width: 100px; }
.wc-img-thumb { width: 100px; height: 70px; object-fit: cover; border-radius: 3px; display: block; }
.wc-img-primary-badge { position: absolute; top: 2px; left: 2px; font-size: 9px; background: var(--wc-amber); color: #000; border-radius: 2px; padding: 0 3px; }
.wc-img-actions { display: flex; gap: 2px; margin-top: 3px; }
.wc-img-actions button { font-size: 11px; padding: 1px 6px; background: rgba(255,255,255,0.08); border: 1px solid var(--wc-border); border-radius: 3px; color: var(--wc-text); cursor: pointer; flex: 1; }
.wc-img-actions button:hover { background: rgba(74,208,92,0.15); }
.wc-img-delete:hover { background: rgba(255,100,100,0.2) !important; color: var(--wc-error) !important; }
.wc-prop-edit-grid { display: grid; grid-template-columns: 140px 1fr; gap: 0.4rem 0.75rem; align-items: center; font-size: 0.85rem; margin: 0 auto 0.75rem; max-width: 480px; } /* 20260508 CL - constrained width, centred */
.wc-prop-edit-grid label { opacity: 0.75; }
.wc-prop-edit-grid input { width: 100%; box-sizing: border-box; text-align: right; } /* 20260508 CL - right-align input values */

/* ─── Centred narrow-content pages (Game Defaults etc.) ────────────────────── */
.wc-centered-page {
    position: relative;
    height: 100%; /* 20260615 CL - use content-box height of wc-content; fixes spurious scrollbar */
    box-sizing: border-box;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Wrapper fills parent height so absolutely-placed card centres within it */
.wc-rules-wrap { position: relative; height: 100%; }
/* Card centred in the space below the heading */
.wc-rules-wrap > .wc-card {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0; right: 0;
}
/* Wrapper constrains width; heading + table left-align naturally within it */
.wc-defaults-wrap { width: 580px; }
.wc-defaults-wrap h1 { margin-bottom: 0.25rem; }
.wc-defaults-wrap > p { margin-bottom: 0.75rem; }

/* Fixed table layout — columns keep width when inputs appear */
.wc-table-fixed { table-layout: fixed; width: 100%; }
.wc-table-compact th, .wc-table-compact td { padding: 0.25rem 0.6rem; font-size: 0.85rem; }
.wc-table-compact td:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
.wc-table-compact th:nth-child(3) { text-align: right; }

/* DecisionSummary rate + value split cell */
.wc-sum-rate { float: left; padding-right: 1.5rem; opacity: 0.75; font-size: 0.88em; }
.wc-sum-val  { display: block; text-align: right; }

/* ─── Heading row: title + action button on the same line ─────────────────── */
.wc-heading-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.wc-heading-row h1, .wc-heading-row h2 { margin: 0; }

/* ─── Page-banner pages (balance sheet, high scores etc.) ─────────────────── */
.wc-page-heading { white-space: nowrap; margin: 0 0 0.2rem; font-size: 1.3rem; }
.wc-page-sub { margin: 0 0 1rem; font-size: 0.82rem; opacity: 0.65; }

/* ─── Game page ────────────────────────────────────────────────────────────── */
.wc-game-wrap { max-width: 960px; margin: 0 auto; }
.wc-game-title { margin: 0; flex: 1 1 auto; min-width: 0; }



/* Sticky header: title left + continue button right, stays at top while scrolling */
.wc-game-header {
    position: sticky;
    top: -10px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: -10px calc(-1 * clamp(0.4rem, 0.25rem + 0.8vw, 1rem)) 0.5rem;
    padding: 0.5rem clamp(0.4rem, 0.25rem + 0.8vw, 1rem);
    background: rgba(10, 20, 16, 0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #1f5a2f;
}
.wc-game-continue {
    flex-shrink: 0;
    padding: 0.45rem 0.9rem;
    font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.9rem);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ─── Rules page ───────────────────────────────────────────────────────────── */
.wc-rules-wrap { max-width: 640px; width: 100%; }
.wc-rules-list { margin: 0.25rem 0 0.75rem 1.2rem; padding: 0; }
.wc-rules-list li { padding: 0.15rem 0; font-size: 0.9rem; }

/* ─── Yearly progress / financial snapshot ─────────────────────────────────── */
.wc-snapshot-page { max-width: 800px; margin: 0 auto; }
.wc-snapshot-heading { margin-bottom: 0.75rem; }

/* Two-column row for Balance Sheet + Income Statement */
.wc-snapshot-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

/* Shared panel styles */
.wc-fs-panel { margin-bottom: 0; }
.wc-fs-heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    margin: 0 0 0.5rem;
}
.wc-fs-table { width: 100%; }
.wc-fs-table th { font-weight: 400; }
.wc-fs-table .wc-num { text-align: right; font-variant-numeric: tabular-nums; }
.wc-fs-total th,
.wc-fs-total .wc-num {
    font-weight: 700;
    border-top: 1px solid var(--wc-border-strong);
    padding-top: 0.4rem;
}
.wc-fs-positive { color: var(--wc-green); }
.wc-fs-negative { color: var(--wc-error); }

/* Portfolio allocation bars */
/* 20260613 CL - investment allocation summary: Initial left, "Available now" floated right */
.wc-alloc-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; font-size: .9rem; }
.wc-alloc-now { margin-left: auto; }
.wc-alloc-summary strong { font-size: 1rem; }
/* 20260613 CL - small muted explanatory note under a panel heading (not heading-sized) */
.wc-panel-note { font-size: .78rem; font-weight: 400; opacity: .68; line-height: 1.4; margin: .15rem 0 .65rem; }
/* 20260613 CL - marginal-tax-rate chip on the After-tax/month figure; hover the cell for the bracket range */
.wc-tax-chip { font-size: .7em; font-weight: 400; opacity: .55; margin-right: .4em; cursor: help; }
.wc-alloc-bars { display: flex; flex-direction: column; gap: 0.55rem; }
.wc-alloc-row { display: grid; grid-template-columns: 9rem 1fr auto; align-items: center; gap: 0.5rem; }
.wc-alloc-label { font-size: 0.82rem; white-space: nowrap; }
.wc-alloc-track { height: 10px; background: rgba(255,255,255,0.08); border-radius: 5px; overflow: hidden; }
.wc-alloc-fill  { height: 100%; border-radius: 5px; transition: width 0.4s ease; }
.wc-alloc-fd    { background: #4a9fd0; }
.wc-alloc-ut    { background: #d07a4a; }
.wc-alloc-sh    { background: var(--wc-green); }
.wc-alloc-prop  { background: var(--wc-amber-soft); }
.wc-alloc-value { font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wc-alloc-pct   { opacity: 0.55; font-size: 0.75rem; }

/* Market conditions grid */
.wc-market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem 0.75rem;
}
.wc-market-item { display: flex; flex-direction: column; gap: 0.15rem; align-items: center; text-align: center; }
.wc-market-label { font-size: 0.72rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.wc-market-value { font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Decisions list */
.wc-decision-list { margin: 0; padding: 0 0 0 1.2rem; list-style: disc; }
.wc-decision-list li { padding: 0.2rem 0; font-size: 0.88rem; }

/* Stack panels on narrow mobile */
@media (max-width: 500px) {
    .wc-snapshot-row { grid-template-columns: 1fr; }
    .wc-alloc-row { grid-template-columns: 7rem 1fr auto; }
}
.wc-muted { opacity: 0.55; }

/* ─── Investment panel hint text ─────────────────────────────────────────── */
.wc-alloc-hint { font-size: 0.82rem; opacity: 0.75; margin: 0.4rem 0 0; }

/* ─── Property additional-feature badge ──────────────────────────────────── */
.wc-badge-feature {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.1em 0.5em;
    border-radius: 3px;
    background: color-mix(in srgb, var(--wc-accent) 18%, transparent);
    color: var(--wc-accent);
    letter-spacing: 0.02em;
    margin-top: 0.2rem;
}

/* ─── AI Usage admin page ────────────────────────────────────────────────── */
.wc-usage-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 0.75rem; }
.wc-usage-tile { padding: 0.5rem 0.75rem; text-align: center; }
.wc-usage-filters { margin-bottom: 0.5rem; }
.wc-usage-filters select { background: var(--wc-surface); color: var(--wc-text); border: 1px solid var(--wc-border); border-radius: 3px; padding: 4px 8px; font-size: 0.85rem; text-align: center; width: 100%; }
.wc-usage-preview { font-size: 0.78rem; opacity: 0.7; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-usage-table { width: 100%; }

/* ─── AI Advice history page ─────────────────────────────────────────────── */
/* 20260614 CL - alternating top-highlight so each advice card is visually separated */
.wc-advice-entry { margin-bottom: 0.5rem; border-top: 3px solid var(--wc-border-strong, #2e8047); }
.wc-advice-entry.wc-advice-alt { border-top-color: var(--wc-amber, #e0a85e); }
.wc-advice-meta { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.4rem; }
.wc-advice-feature { font-size: 0.78rem; background: rgba(74,208,92,0.12); border-radius: 3px; padding: 1px 6px; }
.wc-advice-date { font-size: 0.75rem; opacity: 0.55; }
.wc-advice-tokens { font-size: 0.72rem; opacity: 0.45; margin-left: auto; }
.wc-advice-text { font-size: 0.88rem; line-height: 1.5; white-space: pre-wrap; }

/* ─── Property Analysis page ─────────────────────────────────────────────── */
.wc-analysis-summary-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.wc-analysis-assumptions td { padding: 0.25rem 0.5rem; }
.wc-analysis-input {
    width: 4.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(181,232,181,0.25);
    border-radius: 4px;
    color: var(--wc-text, #e8f5e9);
    padding: 2px 6px;
    text-align: right;
}
.wc-analysis-table-wrap { overflow-x: auto; }
.wc-analysis-table { font-size: 0.82rem; min-width: 900px; }
.wc-analysis-table th, .wc-analysis-table td { padding: 4px 8px; white-space: nowrap; }
.wc-analysis-yr0 { opacity: 0.75; font-style: italic; }
.wc-cf-pos td { color: inherit; }
.wc-cf-neg .wc-num { color: #f28b82; }
.wc-irr-highlight { color: var(--wc-mint, #4ad05c); font-weight: 600; }
.wc-analysis-link { color: var(--wc-mint, #4ad05c); opacity: 0.7; font-size: 0.85rem; background: none; border: none; padding: 0; cursor: pointer; line-height: 1; }
.wc-analysis-link:hover { opacity: 1; }
.wc-analysis-tax-hint { font-size: 0.72rem; opacity: 0.55; margin-top: 2px; }
@media (max-width: 700px) {
    .wc-analysis-summary-cols { grid-template-columns: 1fr; }
}

/* ─── ChartJS wrapper ────────────────────────────────────────────────────── */
.wc-chartjs-wrap { position: relative; height: 180px; width: 100%; }

/* ─── Trend bar charts (YearlyProgress) ───────────────────────────────────── */
.wc-trend-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 80px;
    padding-bottom: 18px; /* room for labels */
    position: relative;
}
.wc-trend-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    height: 100%;
    gap: 2px;
}
.wc-trend-bar {
    width: 100%;
    min-height: 3px;
    border-radius: 2px 2px 0 0;
    transition: height 0.3s ease;
}
.wc-trend-equity  { background: var(--wc-amber); }
.wc-trend-income  { background: var(--wc-green); }
.wc-trend-neg     { background: var(--wc-error); }
.wc-trend-label   { font-size: 9px; opacity: 0.55; line-height: 1; }
.wc-trend-current .wc-trend-bar  { opacity: 1; outline: 1px solid rgba(255,255,255,0.4); }
.wc-trend-current .wc-trend-label { opacity: 1; font-weight: 700; }

/* ─── Restart page ─────────────────────────────────────────────────────────── */
.wc-restart-wrap { max-width: 900px; width: 100%; }
/* 20260613 CL - actions float right (Cancel left of the primary), normal-width buttons — not stretched/spread */
.wc-restart-actions { display: flex; justify-content: flex-end; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }

/* ─── Misc ─────────────────────────────────────────────────────────────────── */
.wc-property-list { margin-top: 0.5rem; }

/* ─── Rent/Buy radio labels: wrap text indented past the radio ────────────── */
.wc-rentbuy label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    cursor: pointer;
}
.wc-rentbuy label input[type="radio"] { flex-shrink: 0; margin-top: 0.2rem; }
.wc-rentbuy br { display: none; }

/* ─── AI Advisor panel (Feature 1) ─────────────────────────────────────────── */
.wc-ai-advisor { padding: 0.75rem 1rem; }
.wc-ai-advisor-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem; }
.wc-ai-advisor-title { margin: 0; }
.wc-ai-advisor-title .fa-robot { margin-right: 0.4rem; opacity: 0.85; }
.wc-ai-advisor-btn { padding: 0.35rem 0.9rem; font-size: 0.82rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; text-align: center; }
.wc-ai-advisor-text { margin: 0; font-size: 0.9rem; line-height: 1.55; color: #b5e8b5; white-space: pre-wrap; }
.wc-ai-advisor-hint { margin: 0; font-size: 0.82rem; opacity: 0.5; font-style: italic; text-align: center; }   /* 20260613 CL - centre the pre-advice hint */

/* Apply advice button (Feature 5) */
.wc-ai-advisor-apply { margin-top: 0.75rem; display: flex; justify-content: flex-end; align-items: center; }
.wc-ai-apply-btn { padding: 0.5rem 1rem; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.45rem; letter-spacing: 0.5px; }
/* 20260613 CL - once advice is applied, the button is replaced by this quiet confirmation label */
.wc-ai-applied-note { font-size: 0.82rem; color: var(--wc-green, #4ad05c); display: inline-flex; align-items: center; gap: 0.4rem; font-style: italic; }

/* ─── Pending-decisions cart (20260613 CL) ─────────────────────────────────── */
.wc-cart { border-left: 3px solid var(--wc-amber, #f5a623); }
.wc-cart h4 .fa-clipboard-list { margin-right: 0.4rem; opacity: 0.85; }
.wc-cart-empty { margin: 0; font-size: 0.85rem; opacity: 1; font-style: normal; line-height: 1.5; } /* 20260614 CL - was italic + 0.7-opacity muted mint = fuzzy/hard to read; upright + full opacity for legibility */
.wc-cart-list { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.wc-cart-item { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.5rem 0.6rem; border: 1px solid var(--wc-border, #1f5a2f); border-radius: 4px; background: rgba(255,255,255,0.02); }
.wc-cart-item-blocked { border-color: var(--wc-error, #ff7b7b); background: rgba(255,123,123,0.06); }
.wc-cart-icon { flex: 0 0 auto; width: 1.4rem; text-align: center; opacity: 0.8; padding-top: 0.1rem; }
.wc-cart-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.wc-cart-title { font-weight: 600; font-size: 0.9rem; }
.wc-cart-meta { font-size: 0.78rem; opacity: 0.7; }
.wc-cart-warn { font-size: 0.78rem; color: var(--wc-error, #ff7b7b); display: inline-flex; align-items: center; gap: 0.3rem; }
.wc-cart-remove { flex: 0 0 auto; background: none; border: 1px solid var(--wc-border, #1f5a2f); color: var(--wc-text-dim, #8aa890); border-radius: 4px; width: 1.8rem; height: 1.8rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wc-cart-remove:hover { border-color: var(--wc-error, #ff7b7b); color: var(--wc-error, #ff7b7b); }
.wc-cart-totals { margin-top: 0.6rem; }
.wc-cart-totals th { font-weight: 400; opacity: 0.8; }
.wc-cart-net th, .wc-cart-net td { border-top: 1px solid var(--wc-border, #1f5a2f); padding-top: 0.3rem; }

/* ─── Property assessment view (20260613 CL) ─────────────────────────────────── */
.wc-analysis-fixed-note { font-size: .75rem; opacity: .6; font-style: italic; margin: .35rem 0 0; }
.wc-analysis-fixed-note .fa-lock { margin-right: .3rem; }
.wc-analysis-chart { width: 100%; height: auto; aspect-ratio: 600 / 240; display: block; background: rgba(255,255,255,.02); border-radius: 4px; }
.wc-chart-grid { stroke: var(--wc-border, #1f5a2f); stroke-width: 1; opacity: .4; }
.wc-chart-line { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.wc-chart-value { stroke: var(--wc-amber, #f5a623); }
.wc-chart-equity { stroke: var(--wc-green, #4ad05c); }
.wc-chart-legend { display: flex; gap: 1.25rem; margin-top: .5rem; font-size: .8rem; flex-wrap: wrap; }
.wc-chart-key { display: inline-flex; align-items: center; }
.wc-chart-key::before { content: ''; width: 14px; height: 3px; margin-right: .4rem; border-radius: 2px; }
.wc-chart-value-key::before { background: var(--wc-amber, #f5a623); }
.wc-chart-equity-key::before { background: var(--wc-green, #4ad05c); }
.wc-analysis-table-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.wc-decade-stepper { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; }
.wc-year-step { display: inline-flex; align-items: center; justify-content: center; background: none; border: 1px solid var(--wc-border, #1f5a2f); color: var(--wc-text, #b5e8b5); border-radius: 4px; width: 1.9rem; height: 1.9rem; cursor: pointer; text-decoration: none; line-height: 1; }
.wc-year-step:disabled, .wc-year-step.wc-year-step-off { opacity: .3; cursor: default; pointer-events: none; }
.wc-year-step:hover:not(:disabled):not(.wc-year-step-off) { border-color: var(--wc-border-strong, #2e8047); }
.wc-year-step-label { font-weight: 500; }
.wc-year-step-max { opacity: .6; }
.wc-analysis-transposed th.wc-analysis-metric { position: sticky; left: 0; text-align: left; background: #0d1f12; z-index: 1; font-weight: 400; white-space: nowrap; }
.wc-assess-home-row { display: flex; justify-content: flex-end; margin-top: .4rem; }   /* 20260613 CL - float the home-assessment link right */
.wc-assess-home-link { display: inline-flex; align-items: center; gap: .4rem; }
/* 20260614 CL - pay-extra-into-bond control on the owned-home note */
.wc-bond-prepay { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .6rem 0 .25rem; flex-wrap: wrap; }
.wc-bond-prepay-label { font-size: .85rem; display: flex; flex-direction: column; gap: .1rem; }
.wc-bond-prepay-out { font-size: .72rem; opacity: .6; }
input.wc-bond-prepay-input { width: 160px; text-align: right; }
/* 20260613 CL - four mini SVG charts: 2 per row (1 on mobile); left Y-axis + interval gridlines, legend to the right, Excel palette */
.wc-analysis-charts { display: flex; gap: .75rem 1rem; flex-wrap: wrap; align-items: flex-start; }
.wc-chart-cell { flex: 1 1 calc(50% - .5rem); min-width: 0; }
.wc-chart-cell h5 { font-size: .8rem; margin: 0 0 .35rem; }
.wc-chart-row { display: flex; gap: .5rem; align-items: center; }
.wc-mini-chart { flex: 1 1 auto; min-width: 0; height: auto; aspect-ratio: 320 / 200; display: block; background: rgba(255,255,255,.02); border-radius: 4px; }
.wc-mini-legend { flex: 0 0 auto; max-width: 120px; display: flex; flex-direction: column; gap: .25rem; font-size: .66rem; line-height: 1.2; }
.wc-mk { display: inline-flex; align-items: center; opacity: .9; white-space: nowrap; }   /* 20260614 CL - legend entries never wrap */
.wc-mk::before { content: ''; width: 12px; height: 3px; margin-right: .35rem; border-radius: 2px; flex: 0 0 auto; }
.wc-cl { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.wc-grid { stroke: rgba(255,255,255,.12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wc-yaxis { font-size: 12px; text-anchor: end; fill: var(--wc-text-dim, #8aa890); }
.wc-xlbl { font-size: 11px; text-anchor: middle; fill: var(--wc-text-dim, #8aa890); }
/* Excel standard chart palette */
.wc-cl-value    { stroke: #4472C4; } .wc-dot-value    { fill: #4472C4; } .wc-mk.wc-cl-value::before    { background: #4472C4; }
.wc-cl-debt     { stroke: #E00000; } .wc-dot-debt     { fill: #E00000; } .wc-mk.wc-cl-debt::before     { background: #E00000; }
.wc-cl-equity   { stroke: #70AD47; } .wc-dot-equity   { fill: #70AD47; } .wc-mk.wc-cl-equity::before   { background: #70AD47; }
.wc-cl-cash     { stroke: #ED7D31; } .wc-dot-cash     { fill: #ED7D31; } .wc-mk.wc-cl-cash::before     { background: #ED7D31; }
.wc-cl-interest { stroke: #C00000; } .wc-dot-interest { fill: #C00000; } .wc-mk.wc-cl-interest::before { background: #C00000; }
.wc-cl-tenant   { stroke: #4472C4; } .wc-dot-tenant   { fill: #4472C4; } .wc-mk.wc-cl-tenant::before   { background: #4472C4; }
.wc-cl-taxman   { stroke: #ED7D31; } .wc-dot-taxman   { fill: #ED7D31; } .wc-mk.wc-cl-taxman::before   { background: #ED7D31; }
.wc-cl-you      { stroke: #A5A5A5; } .wc-dot-you      { fill: #A5A5A5; } .wc-mk.wc-cl-you::before      { background: #A5A5A5; }
.wc-cl-rent     { stroke: #4472C4; } .wc-dot-rent     { fill: #4472C4; } .wc-mk.wc-cl-rent::before     { background: #4472C4; }
.wc-cl-exp      { stroke: #A5A5A5; } .wc-mk.wc-cl-exp::before      { background: #A5A5A5; }
.wc-cl-pretax   { stroke: #FFC000; } .wc-mk.wc-cl-pretax::before   { background: #FFC000; }
.wc-cl-tax      { stroke: #7030A0; } .wc-mk.wc-cl-tax::before      { background: #7030A0; }
.wc-cl-aftertax { stroke: #70AD47; } .wc-dot-aftertax { fill: #70AD47; } .wc-mk.wc-cl-aftertax::before { background: #70AD47; }
/* 20260614 CL - column (bar) fills; share the Excel palette with the line/legend classes */
.wc-bar { stroke: none; }
.wc-bar-value { fill: #4472C4; } .wc-bar-debt { fill: #E00000; } .wc-bar-equity { fill: #70AD47; }
.wc-bar-rent { fill: #4472C4; } .wc-bar-exp { fill: #A5A5A5; } .wc-bar-pretax { fill: #FFC000; }
.wc-bar-tax { fill: #7030A0; } .wc-bar-aftertax { fill: #70AD47; }
.wc-bar-tenant { fill: #4472C4; } .wc-bar-taxman { fill: #ED7D31; } .wc-bar-you { fill: #A5A5A5; }
.wc-bar-fd { fill: #5B9BD5; } .wc-mk.wc-cl-fd::before { background: #5B9BD5; }
.wc-bar-ut { fill: #7030A0; } .wc-mk.wc-cl-ut::before { background: #7030A0; }
.wc-bar-shares { fill: #ED7D31; } .wc-mk.wc-cl-shares::before { background: #ED7D31; }
@media (max-width: 700px) { .wc-chart-cell { flex-basis: 100%; } }
/* 20260614 CL - assessment sub-tabs (Full projection + one per graph) */
.wc-subtabs { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .6rem; border-bottom: 1px solid var(--wc-border, #1f5a2f); }
.wc-subtab { background: none; border: 1px solid transparent; border-bottom: none; color: var(--wc-text-dim, #8aa890); border-radius: 5px 5px 0 0; padding: .35rem .85rem; font-size: .8rem; cursor: pointer; white-space: nowrap; }
.wc-subtab:hover { color: var(--wc-text, #cdebcd); }
.wc-subtab-active { background: rgba(255,255,255,.04); border-color: var(--wc-border, #1f5a2f); color: var(--wc-amber, #e0a85e); font-weight: 600; margin-bottom: -1px; }
/* 20260614 CL - full-width medium-height chart: full 20-year arc, left Y-axis + gridlines */
.wc-full-chart { flex: 1 1 auto; min-width: 0; width: auto; height: auto; aspect-ratio: 900 / 280; max-height: 360px; display: block; background: rgba(255,255,255,.02); border-radius: 4px; }
/* 20260614 CL - legend stays to the RIGHT of the chart, as a vertical list (entries never wrap) */
.wc-full-legend { flex: 0 0 auto; display: flex; flex-direction: column; gap: .35rem; margin: 0 0 .85rem; font-size: .72rem; line-height: 1.2; }
.wc-grid-zero { stroke: rgba(255,255,255,.32); }
/* transposed table: metric label down the side, 5 year columns across; 8pt per CL */
.wc-analysis-transposed { width: 100%; font-size: 8pt; }   /* 20260614 CL - 8pt; auto layout, nothing wraps */
.wc-analysis-transposed td, .wc-analysis-transposed th { padding: .1rem .4rem; font-weight: 400; white-space: nowrap; }
.wc-analysis-transposed thead th { font-weight: 500; }
/* 20260613 CL - progress page header with a back-to-current-year link */
.wc-snapshot-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.wc-back-current { display: inline-flex; align-items: center; gap: .4rem; }
/* 20260613 CL - transfer dialog: the AMOUNT is the focus; title/caption/buttons stay quiet */
/* 20260615 CL - replaced with wc-modal-* standard below */
/* ─── Modal dialog standard (game UI, shared Server + Wasm) ───────────────── */
.wc-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wc-modal {
    background: #0d1f12;
    border: 1px solid var(--wc-border, #1f5a2f);
    border-radius: 8px;
    max-width: 480px;
    width: 92vw;
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
.wc-modal-header {
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 2px solid #1f5a2f;
    background: rgba(0,0,0,0.15);
    border-radius: 7px 7px 0 0;
}
.wc-modal-kicker {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--wc-text-dim, #8aa890);
    margin-bottom: 0.1rem;
}
.wc-modal-title {
    margin: 0;
    color: #eaf7ea;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.1;
}
.wc-modal-body {
    padding: 1.1rem 1.25rem 1.25rem;
}
.wc-modal-note {
    color: var(--wc-text-dim, #8aa890);
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0;
}
.wc-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #1f5a2f;
    background: rgba(0,0,0,0.1);
    border-radius: 0 0 7px 7px;
}
.wc-modal-cancel {
    color: var(--wc-text-dim, #8aa890);
    background: none;
    border: none;
    box-shadow: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
    border-radius: 3px;
}
.wc-modal-cancel:hover {
    color: var(--wc-text, #b5e8b5);
    background: none;
}
/* Modal primary action button — amber hover for standout */
.wc-modal .wc-primary:hover:not(:disabled) {
    border-color: var(--wc-amber, #f5a623);
    color: var(--wc-amber, #f5a623);
}
/* Transfer-specific: amount input styling (still needed inside the modal body) */
.wc-td-label { display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; opacity: .5; margin: 1rem 0 .25rem; }
.wc-td-amount { display: flex; align-items: baseline; justify-content: center; gap: .3rem; }
.wc-td-currency { font-size: 1.05rem; opacity: .65; }
input.wc-td-input { font-size: 1.15rem; font-weight: 600; width: 100%; max-width: 280px; text-align: center; background: transparent; border: none; border-bottom: 2px solid var(--wc-border, #1f5a2f); color: var(--wc-text, #b5e8b5); padding: .1rem .25rem; }
input.wc-td-input:focus { outline: none; border-bottom-color: var(--wc-amber, #f5a623); }
input.wc-td-input::-webkit-outer-spin-button, input.wc-td-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ─── Year-end commentary card (Feature 2) ─────────────────────────────────── */
.wc-ai-commentary { border-left: 3px solid #4ad05c; }
.wc-ai-commentary-header { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: #4ad05c; margin-bottom: 0.4rem; }
.wc-ai-commentary-header .fa-chalkboard-user { margin-right: 0.35rem; }
.wc-ai-commentary-text { margin: 0; font-size: 0.9rem; line-height: 1.55; color: #b5e8b5; }

/* ─── AI competitors in leaderboard (Feature 4) ────────────────────────────── */
.wc-ai-row { opacity: 0.82; }
.wc-ai-icon { color: #4ad05c; font-size: 0.8rem; margin-right: 0.3rem; opacity: 0.7; }

/* ─── Responsive design ────────────────────────────────────────────────────── */
/* 20260508 CL - Tablet & mobile responsive layout: hide right panel, stack left nav */

@media (max-width: 1024px) {
    /* Tablet: hide right panel, expand content (fonts and padding scale via clamp() above) */
    :root {
        --wc-right-w: 0;
    }
    .wc-right {
        display: none;
    }
    .wc-content {
        right: 0;
    }

    .wc-table {
        width: 100%;
    }

    .wc-table th,
    .wc-table td {
        border-bottom: 1px solid #1f5a2f;
        text-align: left;
    }

    .wc-table th {
        font-weight: 500;
    }

    .wc-page-main {
        padding: 0 !important;
    }

    /* Ensure numeric columns are right-aligned */
    .wc-table th.wc-num,
    .wc-table td.wc-num {
        text-align: right !important;
        font-variant-numeric: tabular-nums;
    }

    /* Reduce page wraps */
    .wc-defaults-wrap { width: 100%; }
    .wc-game-wrap { width: 100%; max-width: 100%; }
    .wc-rules-wrap { width: 100%; }
    .wc-restart-wrap { width: 100%; }

    /* Fix banner page layout */
    .wc-page-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .wc-page-banner {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Mobile: vertical layout, collapse nav to drawer */
    :root {
        --wc-top-h:   60px;     /* 20260615 CL: taller — tip wraps to new row */
        --wc-bot-h:   30px;     /* 20260615 CL: matches desktop */
        --wc-left-w:  0;        /* hide by default */
        --wc-left-w-collapsed: 0;
        --wc-right-w: 0;
    }


    /* Show hamburger button on mobile */
    .wc-mobile-hamburger { display: inline-flex; align-items: center; }

    /* Disable text justification on mobile - causes ugly word spacing */
    p { text-align: left; }

    /* Home page mobile overrides */
    .wc-home-center { padding: 0.75rem 0.75rem 0; }
    .wc-home-title { margin-bottom: 0.2rem; }
    .wc-home-sub { margin-bottom: 0.5rem; }
    .wc-home-card { line-height: 1.4; position: absolute; top: 50%; transform: translateY(-50%); left: 0; right: 0; }
    .wc-home-actions { margin-top: 0.75rem; gap: 0.5rem; flex-wrap: wrap; }
    .wc-home-links { gap: 1rem; }
    .wc-home-actions .wc-primary { min-width: auto; padding: 0.5rem 1rem; }

    /* Mobile nav drawer backdrop */
    body.wc-nav-collapsed::before {
        content: '';
        position: fixed;
        top: var(--wc-top-h);
        left: 0;
        right: 0;
        bottom: var(--wc-bot-h);
        background: rgba(0,0,0,0.5);
        z-index: 99;
    }

    .wc-left {
        position: fixed;
        top: var(--wc-top-h);
        bottom: var(--wc-bot-h);
        left: -100%;
        width: 75vw;
        max-width: 280px;
        z-index: 999;
        transition: left 0.25s ease;
        box-shadow: 2px 0 8px rgba(0,0,0,0.5);
    }

    body.wc-nav-collapsed .wc-left {
        left: 0 !important;
        width: 75vw !important;
        max-width: 280px;
    }
    /* On mobile, nav-collapsed = drawer IS open — links left-aligned with full text.
       20260613 CL: also force labels visible (they are width:0/opacity:0 on the desktop rail). */
    body.wc-nav-collapsed .wc-left-nav a,
    body.wc-nav-collapsed .wc-left-nav .wc-link-button {
        justify-content: flex-start;
        gap: 8px;
        padding: 10px 12px 10px 16px;
        font-size: 0.92rem;
    }
    body.wc-nav-collapsed .wc-nav-label {
        opacity: 1 !important;
        width: auto !important;
        font-size: 0.92rem;
    }
    body.wc-nav-collapsed .wc-nav-section-label {
        padding: 10px 16px 4px;
    }

    .wc-content {
        position: fixed;
        top: var(--wc-top-h);
        left: 0;
        right: 0;
        /* Explicit height avoids Chrome ignoring bottom: when width:100% is present */
        height: calc(100vh - var(--wc-top-h) - var(--wc-bot-h));
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0.75rem 0.75rem;
        box-sizing: border-box;
        z-index: 50;
    }

    /* Vertically center short content pages (banner hidden; centered in available area) */
    .wc-page-content {
        min-height: calc(100vh - var(--wc-top-h) - var(--wc-bot-h) - 10px - 0.75rem);
        justify-content: center;
        align-items: flex-start;
    }
    .wc-page-main { width: 100%; }

    /* Edge-to-edge table card — breaks out of wc-content horizontal padding */
    .wc-table-card {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .wc-top {
        position: fixed;
        height: auto;
        min-height: var(--wc-top-h);
    }
    .wc-topbar-inner {
        flex-wrap: wrap;
        padding: 2px 0;
    }
    .wc-tip-top {
        max-width: 100%;
        flex: 1 1 100%;
        margin-left: 0;
        padding: 0 0.5rem 2px;
        order: 99;
    }
    .wc-greeting {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .wc-tip-top-text {
        white-space: normal;
        overflow: visible;
    }

    .wc-bottom {
        position: fixed;
        grid-template-columns: 0px 0px 0px 0px auto;
    }
    .wc-status-col1, .wc-status-col2, .wc-status-col3, .wc-status-col4 { display: none; }
    .wc-status-col5 { grid-column: 5; }

    /* Adjust logo size on mobile */
    .wc-logo {
        height: 28px;
    }

    /* Stack page layout vertically */
    .wc-page-content {
        flex-direction: column;
        gap: 0.5rem;
        margin: 0;
        padding: 0;
    }

    .wc-page-banner { display: none; }

    /* Responsive auth page */
    .wc-auth-page {
        flex-direction: column;
        height: auto;
    }

    .wc-auth-banner {
        width: 100%;
        height: 150px;
    }

    .wc-auth-form {
        padding: 1rem;
    }

    .wc-login-wrap {
        width: 100%;
        max-width: 420px;
    }

    .wc-login-errors-col {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Responsive home page */
    .wc-home-center { padding: 0.75rem 0.75rem 0; }

    .wc-home-title {
        font-size: 1.8rem;
    }

    .wc-home-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .wc-home-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .wc-home-links a {
        text-align: center;
    }

    /* Responsive tables: horizontal scroll on mobile */
    .wc-table {
        font-size: 0.72rem;
    }

    .wc-table th,
    .wc-table td {
        padding: 0.25rem 0.3rem;
    }

    .wc-table thead th {
        font-size: 0.68rem;
    }

    .wc-card {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    /* wc-home-card is absolutely centred; remove inherited card margin */
    .wc-home-card { margin-top: 0; margin-bottom: 0; }
    /* Wide tables scroll horizontally rather than overflowing */
    .wc-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* 20260613 CL - buttons stay normal width (no page-width buttons); containers float them right.
       Was width:100% which stretched every primary/secondary button across the page on narrow viewports. */
    .wc-primary,
    .wc-secondary {
        width: auto;
        padding: 0.6rem 1rem;
    }
    /* 20260613 CL - home actions stay a single row on mobile: links left (not stacked), standard Play button right */
    .wc-home-actions { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
    .wc-home-links { flex-direction: row; gap: 1rem; }
    .wc-home-links a { text-align: left; }
    .wc-home-actions .wc-primary { width: auto; align-self: auto; }
    /* Game header continue button stays compact and right-aligned */
    .wc-game-continue {
        width: auto;
        padding: 0.35rem 0.8rem;
        font-size: 0.82rem;
        white-space: nowrap;
        margin-left: auto;
    }
    /* Game title truncates rather than wrapping */
    .wc-game-title {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Responsive admin nav — keep horizontal, wrap to new rows */
    .wc-admin-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .wc-admin-links a {
        width: auto;
        justify-content: center;
    }

    /* Responsive page wraps */
    .wc-progress-wrap { width: 100%; }
    .wc-defaults-wrap {
        width: 100%;
    }

    .wc-game-wrap {
        width: 100%;
    }

    .wc-rules-wrap {
        width: 100%;
    }

    .wc-restart-wrap {
        width: 100%;
    }

    /* Hide year badges on very small screens */
    @media (max-width: 480px) {
        .wc-greeting {
            display: none;
        }

        .wc-home-title {
            font-size: 1.4rem;
        }

        .wc-login-title {
            font-size: 1.4rem;
        }

        /* Stack login fields better */
        .wc-login-field {
            margin-bottom: 0.8rem;
        }
    }
}

/* ── 20260612 CL - RL Training Dashboard ──────────────────────── */
.wc-rl-page { max-width: 960px; margin: 0 auto; }
.wc-rl-heading { margin-bottom: 0.5rem; }
.wc-rl-status-bar { margin-bottom: 1.5rem; }
.wc-rl-status-grid { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.wc-rl-status-item { display: flex; flex-direction: column; gap: 0.25rem; }
.wc-rl-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.6; }
.wc-rl-value { font-size: 1.1rem; font-weight: 700; }
.wc-rl-status-action { margin-left: auto; }
.wc-rl-error { margin-top: 0.75rem; padding: 0.5rem 0.75rem; background: rgba(219,68,55,0.15); border-radius: 4px; color: #e57373; font-size: 0.85rem; }
.wc-rl-idle      { color: rgba(181,232,181,0.5); }
.wc-rl-running   { color: #f1c40f; }
.wc-rl-completed { color: #2ecc71; }
.wc-rl-failed    { color: #e74c3c; }
.wc-chartjs-wrap { position: relative; height: 300px; width: 100%; margin-top: 1rem; }
.wc-chartjs-doughnut { max-width: 400px; margin: 1rem auto; }
.wc-chart-subtitle { font-size: 0.85rem; opacity: 0.6; margin: 0 0 0.5rem; }
.wc-rl-table { width: 100%; border-collapse: collapse; }
.wc-rl-table th { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid rgba(31,90,47,0.5); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.6; }
.wc-rl-table td { padding: 0.4rem 0.75rem; border-bottom: 1px solid rgba(31,90,47,0.2); }
.wc-rl-table .wc-num { text-align: right; font-variant-numeric: tabular-nums; }
.wc-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.25rem; border: none; border-radius: 4px; font-family: inherit; font-size: 0.9rem; cursor: pointer; transition: background 0.2s, opacity 0.2s; }
.wc-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.wc-btn-primary { background: #2e7d32; color: #b5e8b5; }
.wc-btn-primary:hover:not(:disabled) { background: #388e3c; }
.wc-fs-heading { margin: 0 0 0.25rem; }
/* ── end RL Training Dashboard ─────────────────────────────────── */

/* 20260613 Chris L: after-tax cashflow indicators — muted palette, matches dark-green theme */
.wc-positive { color: #4caf7d; }
.wc-negative { color: #c47a5a; }

/* 20260613 Chris L: investment transfer-out button — compact, muted theme */
.wc-transfer-btn { background: none; border: 1px solid rgba(76,175,125,.5); color: #4caf7d; border-radius: 4px; padding: 2px 8px; font-size: .78rem; cursor: pointer; }
.wc-transfer-btn:hover:not(:disabled) { background: rgba(76,175,125,.12); }
.wc-transfer-btn:disabled { opacity: .35; cursor: not-allowed; }
/* 20260614 CL - pending transfer amount + reverse (×) stay on one line */
.wc-xfer-pending { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }

/* 20260613 Chris L: live "available now" + show-all-properties affordability cues */
.wc-available-now th { font-weight: 700; }
.wc-available-now td strong { font-size: 1.05rem; }
.wc-available-breakdown { font-size: .82rem; opacity: .9; }
.wc-available-breakdown th { font-weight: 400; }
/* 20260613 CL - property buy/sell tables: smaller font, wide description, compact amount columns. */
/* ─── Property card layout (replaces old table-based .wc-property-table) ────── */
/* 20260615 CL: image left, 2-col grid right. Each row: label left | value right-aligned.
   Checkbox and title each span both columns at the top. */
.wc-prop-list { display: flex; flex-direction: column; gap: 1rem; }

.wc-prop-card {
    display: grid;
    grid-template-columns: auto 1fr;   /* image column auto-sizes to match table height (square) */
    gap: 0 .85rem;
    border: 1px solid #1f5a2f;
    border-radius: 8px;
    padding: .7rem;
    position: relative;
    transition: background 0.12s;
}
/* Checkbox row sits above both image and body, spanning full width */
.wc-prop-card-check {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: right;
    line-height: 1;
    margin-bottom: 2px;
}
.wc-prop-pick-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    color: #7fb98a;
    cursor: pointer;
    user-select: none;
}
.wc-prop-card-selected { background: rgba(245,166,35,0.12); font-weight: 600; }
.wc-prop-card-unaffordable { position: relative; }
.wc-prop-card-unaffordable img { filter: grayscale(0.85); }
.wc-prop-card-unaffordable::after {
    content: ""; position: absolute; inset: 0;
    background: rgba(18,26,20,0.55); pointer-events: none; z-index: 1;
    border-radius: 5px;
}

/* Left: image column — stretches to table height, square via aspect-ratio */
.wc-prop-card-img {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    align-self: stretch;
    aspect-ratio: 1 / 1;        /* square — width matches table height */
    max-width: 240px;           /* cap so it doesn't get absurdly large */
}
.wc-prop-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}
.wc-prop-card-img:empty { min-height: 0; aspect-ratio: unset; }

/* Gallery button floats top-right of the image */
.wc-prop-gallery-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0,0,0,0.55);
    border: none;
    color: #fff;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 3px;
    cursor: pointer;
    line-height: 1;
    z-index: 3;
}
.wc-prop-gallery-btn:hover { background: rgba(0,0,0,0.8); }

/* Right: content block — holds title + values, pushed right by fixed spacer */
.wc-prop-card-body {
    grid-column: 2;
    grid-row: 2;
    margin-left: 120px;     /* fixed spacer width — consistent gap from image */
}

/* ─── Property value table (3 columns: label | tax-rate | amount) ──────────── */
.wc-prop-card-title {
    font-weight: 500;
    font-size: .82rem;
    line-height: 1.3;
    margin-bottom: 4px;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    opacity: .7;            /* dimmer — financials are the focus */
}
.wc-prop-card-title .wc-prop-name {
    display: inline;
}
.wc-ptable {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}
.wc-ptable td {
    border: 1px dotted rgba(255,255,255,0.15);
    padding: 4px 6px;
    vertical-align: baseline;
}
.wc-pt-label {
    text-align: left;
    font-size: .82rem;
    color: #aed4b6;
    white-space: normal;        /* wrap instead of truncate on narrow viewports */
    overflow: visible;
}
.wc-pt-tax {
    text-align: center;
    font-size: .73rem;
    color: #f0b400;
    width: 52px;
    white-space: nowrap;
}
.wc-pt-value {
    text-align: right;
    font-size: .85rem;
    color: #eaf7ea;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    width: 130px;
}
.wc-pt-value.wc-positive { color: #4ad05c; }
.wc-pt-value.wc-negative { color: #ff2020; font-weight: 600; }
.wc-pt-value-feature { color: #e6b24a; font-weight: 600; }
.wc-pt-label-feature { color: #cfe8cf; font-style: italic; }
.wc-pt-action { text-align: right; }
.wc-pt-action .wc-analysis-link {
    background: none;
    border: none;
    color: #4ad05c;
    font-size: .78rem;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.wc-pt-action .wc-analysis-link:hover { color: #6ae07c; text-decoration: underline; }

/* Unaffordable reason overlays the card */
.wc-prop-card-unaffordable .wc-unaffordable-reason {
    position: absolute; top: .45rem; right: .55rem; z-index: 3;
    max-width: 55%; text-align: right; white-space: normal; line-height: 1.2;
    font-size: .72rem; font-weight: 400; color: #ff8a4c;
    text-shadow: 0 1px 2px rgba(0,0,0,0.9);
    background: none; border: none; padding: 0; margin-top: 0; display: block;
}
.wc-prop-card-unaffordable .wc-unaffordable-reason i { margin-right: .3em; }
.wc-prop-card-unaffordable .wc-prop-card-check { visibility: hidden; }

/* ── Narrow viewport: compact property cards ── */
@media (max-width: 860px) {
    .wc-prop-card {
        grid-template-columns: auto 1fr;
        gap: 0 .5rem;
        padding: .45rem;
    }
    .wc-prop-card-check {
        width: 100px;
    }
    .wc-prop-card-img {
        max-width: 140px;
    }
    .wc-prop-card-body {
        margin-left: 0;
    }
    .wc-prop-card-img img {
        border-radius: 2px;
        aspect-ratio: 1 / 1;
    }
    .wc-ptable td {
        padding: 2px 4px;
    }
    .wc-pt-value {
        width: 100px;
        font-size: .78rem;
    }
    .wc-pt-tax {
        width: 38px;
        font-size: .68rem;
    }
}

/* 20260613 Chris L: in-page game tabs (Decisions / Assessment) — legacy two-tab master page */
.wc-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--wc-border, #cfe3d4); margin-bottom: .75rem; }
.wc-tab { background: none; border: 1px solid transparent; border-bottom: none; padding: .4rem .9rem; font-size: .9rem; font-weight: 600; cursor: pointer; color: inherit; border-radius: 6px 6px 0 0; opacity: .65; }
.wc-tab:hover { opacity: 1; }
.wc-tab-active { opacity: 1; background: var(--wc-surface, #fff); border-color: var(--wc-border, #cfe3d4); border-bottom: 1px solid var(--wc-surface, #fff); margin-bottom: -1px; }

/* 20260614 CL - CONVENTION: a date shown in an HTML table must never wrap.
   Add class "nowrap" to any date <th>/<td> (also valid on any cell that must stay on one line). */
.nowrap { white-space: nowrap; }

/* ─── Toast notifications ──────────────────────────────────────────────────────
   20260614 CL - The game hosts load NO Bootstrap CSS (only wc-game.css), but
   BlazorBootstrap <Toasts> renders Bootstrap markup and colours each toast by type
   with Bootstrap's .text-bg-{type} class. Rather than re-theme, these rules port the
   REAL Bootstrap 5.3 toast component + .text-bg-* colour values verbatim, scoped
   under .toast-container so nothing leaks into the rest of the game. Docked
   bottom-right above the status bar. (BlazorBootstrap removes the toast from the
   DOM on hide, so presence == visible.) */
.toast-container {
    position: fixed;
    right: 0;
    bottom: var(--wc-bot-h, 22px);
    z-index: 1090;                       /* above wc-top / wc-bottom chrome */
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    pointer-events: none;
}
.toast-container .toast {
    pointer-events: auto;
    width: 360px;
    max-width: 100%;
    font-size: 0.9rem;
    background: #1c241e;                              /* fallback dark surface — overridden by text-bg-* below */
    background-clip: padding-box;
    border: 1px solid rgba(255, 255, 255, 0.5);       /* light ring lifts the toast off the dark app */
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.65);   /* strong drop shadow so it stands out */
    border-radius: 0.5rem;
    overflow: hidden;
    opacity: 1;                                        /* fully solid; never see-through */
    animation: wc-toast-in 0.3s ease both;             /* slide-in draws the eye, settles fully opaque */
}
@keyframes wc-toast-in {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}
.toast-container .toast-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: transparent;              /* uniform solid type colour — no translucent tint */
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
}
.toast-container .toast-body { padding: 0.75rem; word-wrap: break-word; font-weight: 500; }
.toast-container .d-flex { display: flex; }
.toast-container .me-auto { margin-right: auto; }
/* 20260614 CL - the app is dark GREEN, so Bootstrap's green success toast blended in.
   Map the toast types onto a standout palette that contrasts the site: Blue / Red / Orange / Grey
   (Bootstrap's own colour values, just chosen to pop against green). */
/* Cover BOTH class patterns BlazorBootstrap may emit (text-bg-* and bg-*); !important so no
   stray green can leak through. No green anywhere — the app is already green. */
/* 20260615 CL - BlazorBootstrap 3.5 uses text-* on the icon inside the toast.
   Style with coloured borders + text (no background fills — keeps it clean). */
.toast:has(.text-success)    { border-color: #28a745 !important; color: #28a745 !important; }  /* Green — success */
.toast:has(.text-primary),
.toast:has(.text-info)      { border-color: #0d6efd !important; color: #0d6efd !important; }  /* Blue — general / info */
.toast:has(.text-danger)    { border-color: #dc3545 !important; color: #dc3545 !important; }
.toast:has(.text-warning)   { border-color: #f0b400 !important; color: #f0b400 !important; }
.toast-container .text-bg-secondary, .toast-container .bg-secondary,
.toast-container .text-bg-light,   .toast-container .bg-light,
.toast-container .text-bg-dark,    .toast-container .bg-dark      { color: #fff !important; background-color: #6c757d !important; }  /* Grey  — neutral */
/* neutralise any green type-icon/text inside a toast so it matches the box (white) */
.toast-container .text-success, .toast-container .text-primary, .toast-container .text-info,
.toast-container .text-danger, .toast-container .text-warning, .toast-container .text-secondary { color: inherit !important; }
/* Bootstrap's .btn-close is an SVG background we don't ship — draw a × in the
   current text colour so it contrasts on every type (white on dark, black on warning/info). */
.toast-container .btn-close {
    margin-left: 0.5rem;
    padding: 0.1rem 0.3rem;
    background: none;
    border: 0;
    cursor: pointer;
    color: inherit;
    font-size: 0;
    line-height: 1;
    opacity: 0.75;
}
.toast-container .btn-close:hover { opacity: 1; }
.toast-container .btn-close::before { content: "\00d7"; font-size: 1.15rem; color: currentColor; }

/* ═══════════════════════════════════════════════════════════════════════════════
   Notification bell — right side of status bar
   ═══════════════════════════════════════════════════════════════════════════════ */
.wc-notif-bell-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 8px 0 10px;
    vertical-align: middle;
    cursor: pointer;
    line-height: 1;
}
.wc-notif-bell {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    transition: color 0.15s;
}
.wc-notif-bell:hover { color: rgba(255,255,255,0.9); }

.wc-notif-badge {
    position: absolute;
    top: -7px;
    right: -14px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    background: #dc3545;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
}
.wc-notif-badge:empty { display: none; }

/* Invisible overlay — catches click-away to close the panel */
.wc-notif-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1049;
    background: transparent;
}

/* Dropdown panel — pops up above the status bar.
   Uses position:fixed so it shares the root stacking context with .wc-notif-overlay.
   Position is computed relative to the viewport, adjusting for the status bar height. */
.wc-notif-panel {
    position: fixed;
    bottom: var(--wc-bot-h, 44px);
    right: 4px;
    width: 448px;            /* 20260615 CL: 40% wider for better text display */
    max-height: 360px;
    margin-bottom: 4px;
    background: #0d2137;
    border: 1px solid #1f5a2f;
    border-radius: 6px 6px 6px 6px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.4);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.3;
    color: #d6f5d6;
}

.wc-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid #1f5a2f;
    background: rgba(0,0,0,0.15);
    border-radius: 5px 5px 0 0;
}
.wc-notif-title {
    font-weight: 600;
    font-size: 12px;
    color: #d6f5d6;
}
.wc-notif-clear-btn {
    background: none;
    border: none;
    color: #f5a623;
    font-size: 10px;
    cursor: pointer;
    padding: 0;
}
.wc-notif-clear-btn:hover { text-decoration: underline; }

.wc-notif-body {
    flex: 1;
    overflow-y: auto;
    max-height: 260px;
}
.wc-notif-empty {
    padding: 20px 10px;
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: 11px;
}

.wc-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(31,90,47,0.4);
    border-left: 4px solid transparent;
    transition: background 0.1s;
}
.wc-notif-item:hover { background: rgba(255,255,255,0.03); }
.wc-notif-item:last-of-type { border-bottom: none; }

.wc-notif-dismissed { opacity: 0.4; }

/* Colour-coded left border matching the toast type */
.wc-notif-icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-size: 13px;
    margin-top: 1px;
}
.wc-notif-icon-success i    { color: #0d6efd; }  /* Blue */
.wc-notif-icon-danger i     { color: #dc3545; }  /* Red */
.wc-notif-icon-warning i    { color: #fd7e14; }  /* Orange */
.wc-notif-icon-info i       { color: #0d6efd; }  /* Blue */
.wc-notif-item:has(.wc-notif-icon-success) { border-left-color: #0d6efd; }
.wc-notif-item:has(.wc-notif-icon-danger)  { border-left-color: #dc3545; }
.wc-notif-item:has(.wc-notif-icon-warning) { border-left-color: #fd7e14; }
.wc-notif-item:has(.wc-notif-icon-info)    { border-left-color: #0d6efd; }

.wc-notif-content {
    flex: 1;
    min-width: 0;
}
.wc-notif-title-text {
    font-weight: 600;
    color: #d9ffd9;
    font-size: 11px;
}
.wc-notif-msg {
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    word-wrap: break-word;
}
.wc-notif-time {
    color: rgba(255,255,255,0.35);
    font-size: 9px;
    margin-top: 2px;
}

.wc-notif-dismiss {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}
.wc-notif-dismiss:hover { color: #dc3545; }

.wc-notif-footer {
    padding: 6px 10px;
    text-align: center;
    border-top: 1px solid #1f5a2f;
    background: rgba(0,0,0,0.1);
    border-radius: 0 0 5px 5px;
}
.wc-notif-close-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    font-size: 10px;
    padding: 2px 16px;
    border-radius: 3px;
    cursor: pointer;
}
.wc-notif-close-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}