/* =============================================================================
   FYSH — Workbench shell stylesheet
   Modified: 12/10/2026 16:11
   CR: fysh-phase2-2026-06-22
   Standalone from public site CSS. Mobile-first: base = 375px, desktop = 768px+.
   Does not duplicate tokens.css — imports it implicitly via head.php load order.
   FYSH brand colours are hardcoded here (not CSS variables) so they don't
   invert in dark mode.
============================================================================= */

/* ── Layout tokens ────────────────────────────────────────────────────────── */
:root {
    --wb-sidebar-w:   220px;
    --wb-topbar-h:    54px;
    --wb-mob-hdr-h:   52px;
    --wb-mob-nav-h:   64px;
    --wb-sidebar-bg:  #FFFFFF;
    --wb-content-bg:  #F1F5FA;   /* CR: fysh-premium-palette-2026-08-27 — was warm #EDF2F8; cool base, role-tinted in workbench-roles.css */
    --wb-card-bg:     #FFFFFF;
    --wb-gold:        #C9A84C;
    --wb-navy:        #0F2340;
    --wb-blue:        #1E5BA8;
    --wb-muted:       #6B7A8D;
    --wb-border:      #E2E8F0;
    --wb-border-lt:   #EDF2F8;   /* CR: fysh-premium-palette-2026-08-27 — was warm #EDF2F8; cool hover fill */
    --wb-display:     var(--font-display);
    --wb-body:        var(--font-body);
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: var(--wb-body); background: var(--wb-content-bg); }

/* ── Skip link ────────────────────────────────────────────────────────────── */
.wb-skip {
    position: absolute; top: -100%; left: 0;
    background: var(--wb-gold); color: var(--wb-navy);
    padding: 8px 16px; font-size: 13px; font-weight: 500;
    text-decoration: none; z-index: 9999;
    border-radius: 0 0 5px 0;
}
.wb-skip:focus { top: 0; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.wb-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar backdrop (mobile) ─────────────────────────────────────────────── */
.wb-backdrop {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.38);
    z-index: 199; display: none;
}
.wb-backdrop.is-open { display: block; }

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
.wb-sidebar {
    width: var(--wb-sidebar-w);
    flex-shrink: 0;
    background: var(--wb-sidebar-bg);
    border-right: 1px solid var(--wb-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 200;
    -webkit-font-smoothing: antialiased;
}

/* Mobile: off-canvas drawer */
@media (max-width: 767px) {
    .wb-sidebar {
        position: fixed;
        left: calc(-1 * var(--wb-sidebar-w));
        top: 0; height: 100%;
        transition: left 0.22s ease;
        box-shadow: none;
    }
    .wb-sidebar.is-open {
        left: 0;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }
}

.wb-sidebar__logo {
    /* CR: fysh-header-align-2026-08-27 — fixed height = content topbar height so
       the sidebar-header and topbar bottom edges line up exactly. */
    height: var(--wb-topbar-h);
    padding: 0 16px;
    border-bottom: 1px solid var(--wb-border);
    display: flex; align-items: center; gap: 9px;
    flex-shrink: 0; text-decoration: none;
}
.wb-sidebar__logo-name {
    font-family: var(--wb-display);
    font-weight: 700; font-size: 16px;
    color: var(--wb-navy); letter-spacing: -0.01em;
}

/* Nav */
.wb-nav { padding: 8px 0; flex: 1; }

.wb-nav__item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    font-size: 13px; font-weight: 400;
    text-decoration: none; color: var(--wb-muted);
    border-left: 3px solid transparent;
    transition: color 0.14s, background 0.14s;
    position: relative;
}
.wb-nav__item:hover:not(.wb-active) {
    color: var(--wb-navy);
    background: rgba(0, 0, 0, 0.03);
}
.wb-nav__item.wb-active {
    color: var(--wb-navy);
    border-left-color: var(--wb-gold);
    background: rgba(201, 168, 76, 0.07);
    font-weight: 500;
}
.wb-nav__item i { font-size: 17px; flex-shrink: 0; }

.wb-nav__badge {
    font-size: 10px; font-weight: 500;
    padding: 2px 6px; border-radius: 20px;
    margin-left: auto;
}
.wb-nav__badge--amber { background: #FAEEDA; color: #633806; }
.wb-nav__badge--blue  { background: #E6F1FB; color: #0C447C; }

.wb-nav__divider {
    margin: 6px 14px;
    border: none; border-top: 1px solid var(--wb-border);
}

/* Sidebar user area */
.wb-sidebar__user {
    padding: 12px 14px;
    border-top: 1px solid var(--wb-border);
    flex-shrink: 0;
}
.wb-user-row {
    display: flex; align-items: center; gap: 9px;
    margin-bottom: 8px;
}
.wb-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--wb-navy);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 500; color: var(--wb-gold);
    flex-shrink: 0;
}
.wb-user-name {
    font-size: 12.5px; font-weight: 500; color: var(--wb-navy);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wb-role-badge {
    font-size: 9px; font-weight: 500;
    padding: 2px 7px; border-radius: 20px;
    display: inline-block; margin-top: 2px;
}
.wb-role-badge--vendor { background: #E6F1FB; color: #0C447C; }
.wb-role-badge--buyer  { background: #E1F5EE; color: #0F6E56; }
.wb-role-badge--admin  { background: #FAEEDA; color: #633806; }

.wb-signout {
    display: flex; align-items: center; gap: 6px;
    font-size: 11.5px; color: #9BA8B4;
    text-decoration: none;
}
.wb-signout:hover { color: var(--wb-muted); }
.wb-signout i { font-size: 14px; }

/* ── Dual-role switcher ─────────────────────────────────────────────────────── */
.wb-role-switch {
    margin: 6px 0 2px;
}
.wb-role-switch__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--wb-font, inherit);
    color: var(--wb-navy);
    background: rgba(201,168,76,0.10);
    border: 1.5px solid rgba(201,168,76,0.35);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    text-align: left;
}
.wb-role-switch__btn:hover {
    background: rgba(201,168,76,0.20);
    border-color: rgba(201,168,76,0.65);
}
.wb-role-switch__btn .ti { font-size: 14px; color: var(--gold); }
.wb-mobile-header {
    display: none;
    align-items: center; justify-content: space-between;
    padding: 0 16px;
    height: var(--wb-mob-hdr-h);
    background: #fff;
    border-bottom: 1px solid var(--wb-border);
    position: sticky; top: 0; z-index: 100;
    -webkit-font-smoothing: antialiased;
}
@media (max-width: 767px) { .wb-mobile-header { display: flex; } }

.wb-hamburger {
    background: none; border: none; cursor: pointer;
    padding: 6px; color: var(--wb-navy);
    line-height: 0; border-radius: 5px;
}
.wb-hamburger:hover { background: var(--wb-border-lt); }
.wb-hamburger i { font-size: 22px; }

.wb-mobile-logo {
    display: flex; align-items: center; gap: 7px;
    text-decoration: none;
}
.wb-mobile-logo-name {
    font-family: var(--wb-display);
    font-weight: 700; font-size: 15px; color: var(--wb-navy);
}

/* ── Content area ──────────────────────────────────────────────────────────── */
.wb-content-area {
    flex: 1; display: flex; flex-direction: column;
    min-height: 100vh; min-width: 0;
}

/* Desktop topbar */
.wb-topbar {
    display: none;
    align-items: center; justify-content: space-between;
    padding: 0 24px;
    height: var(--wb-topbar-h);
    background: #fff;
    border-bottom: 1px solid var(--wb-border);
    position: sticky; top: 0; z-index: 40;
}
@media (min-width: 768px) { .wb-topbar { display: flex; } }

.wb-topbar__title {
    font-family: var(--wb-display);
    font-size: 16px; font-weight: 700; color: var(--wb-navy);
    letter-spacing: -0.01em;
}
.wb-topbar__actions { display: flex; align-items: center; gap: 14px; }
/* Subtle role-context cue, left of the notification bell.
   CR: fysh-wb-role-cue-2026-08-27 */
.wb-topbar__role {
    font-size: 12px;
    font-weight: 600;
    color: var(--wb-muted);
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.wb-topbar__bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 18px;
    color: var(--wb-muted);
    background: none;
    border: none;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    line-height: 0;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.wb-topbar__bell:hover,
.wb-topbar__bell:focus-visible { color: var(--wb-navy); background: var(--wb-border-lt); }

/* Unread flag — numbered badge, top-right of the bell.
   CR: fysh-wb-bell-2026-08-17 */
.wb-topbar__bell-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--wb-gold);
    color: var(--wb-navy);
    font-size: 10px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
    letter-spacing: -0.02em;
    box-shadow: 0 0 0 2px #fff; /* separates the badge from the icon */
}

/* Subtle pulsating glow while unread messages are present */
.wb-topbar__bell.has-unread { color: var(--wb-navy); animation: wb-bell-glow 2.2s ease-in-out infinite; }
.wb-topbar__bell.has-unread .wb-topbar__bell-badge { animation: wb-badge-pulse 2.2s ease-in-out infinite; }
@keyframes wb-bell-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
    50%      { box-shadow: 0 0 9px 2px rgba(201, 168, 76, 0.55); }
}
@keyframes wb-badge-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
    .wb-topbar__bell.has-unread,
    .wb-topbar__bell.has-unread .wb-topbar__bell-badge { animation: none; }
}

/* Legacy dot (kept harmless if referenced elsewhere) */
.wb-topbar__bell-dot {
    position: absolute; top: -1px; right: -2px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--wb-gold);
}

/* Main content */
.wb-main {
    flex: 1;
    background: var(--wb-content-bg);
    padding: 24px;
}
@media (max-width: 767px) {
    .wb-main { padding: 16px 16px calc(var(--wb-mob-nav-h) + 16px); }
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.wb-card {
    background: var(--wb-card-bg);
    border: 0.5px solid var(--wb-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}
.wb-card:last-child { margin-bottom: 0; }

.wb-card__header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--wb-border);
    display: flex; justify-content: space-between; align-items: center;
}
.wb-card__title { font-size: 14px; font-weight: 500; color: var(--wb-navy); }
.wb-card__link  { font-size: 12px; color: var(--wb-blue); text-decoration: none; }
.wb-card__link:hover { text-decoration: underline; }
.wb-card__body  { padding: 20px; }

/* ── Metric grid ───────────────────────────────────────────────────────────── */
.wb-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
/* Mobile: stack full width */
@media (max-width: 560px) {
    .wb-metrics { grid-template-columns: 1fr; }
}
.wb-metric {
    background: var(--wb-card-bg);
    border: 0.5px solid var(--wb-border);
    border-radius: 10px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    display: block;
}
/* Clickable metric card */
a.wb-metric.wb-metric--link {
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
a.wb-metric.wb-metric--link:hover {
    border-color: var(--wb-gold);
    box-shadow: 0 2px 10px rgba(15,35,64,0.10);
    transform: translateY(-1px);
}
a.wb-metric.wb-metric--link:focus-visible {
    outline: 2px solid var(--wb-gold);
    outline-offset: 2px;
}
.wb-metric--accent {
    border-left: 3px solid var(--wb-gold);
    border-radius: 0 10px 10px 0;
}
.wb-metric__icon  { font-size: 17px; line-height: 1; }
.wb-metric__value { font-size: 28px; font-weight: 500; color: var(--wb-navy); line-height: 1; margin: 8px 0 4px; }
.wb-metric__label { font-size: 11px; color: var(--wb-muted); }
.wb-metric__sub   { font-size: 10px; color: #9BA8B4; margin-top: 3px; }
.wb-metric__sub--accent { color: var(--wb-gold); font-weight: 500; }

/* ── Quick actions ─────────────────────────────────────────────────────────── */
.wb-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 16px;
}

/* ── Panel grid (2-col data row) ───────────────────────────────────────────── */
.wb-panels {
    display: grid;
    grid-template-columns: 58% 1fr;
    gap: 12px;
}
@media (max-width: 960px) { .wb-panels { grid-template-columns: 1fr; } }

/* ── List rows inside panels ───────────────────────────────────────────────── */
.wb-list-row {
    display: flex;
    padding: 8px 20px;
    border-bottom: 0.5px solid var(--wb-border-lt);
    align-items: center; gap: 8px;
    font-size: 12.5px;
}
.wb-list-row:last-child { border-bottom: none; }

/* ── Badges ─────────────────────────────────────────────────────────────────── */
.wb-badge {
    font-size: 10px; font-weight: 500;
    padding: 2px 8px; border-radius: 20px;
    white-space: nowrap;
}
.wb-badge--active { background: #EAF3DE; color: #3B6D11; }
.wb-badge--draft  { background: #ECF1F7; color: #5F5E5A; }
.wb-badge--offer  { background: #FAEEDA; color: #633806; }
.wb-badge--sold   { background: #E6F1FB; color: #0C447C; }
.wb-badge--sold-stc { background: #E4EEF7; color: #1E5BA8; }
.wb-badge--pending { background: #FAEEDA; color: #633806; }
.wb-badge--demo    { background: #EDE7FB; color: #4B2E9E; }
.wb-badge--demo-expired { background: #E7D9FB; color: #3A1E86; }
.wb-badge--purged  { background: #E4E7EC; color: #4B5563; }

/* ── Empty state ────────────────────────────────────────────────────────────── */
.wb-empty {
    padding: 32px 20px; text-align: center;
}
.wb-empty i { font-size: 36px; color: var(--wb-border); display: block; margin-bottom: 10px; }
.wb-empty__text { font-size: 13px; color: var(--wb-muted); margin: 0 0 14px; }

/* ── Welcome heading ────────────────────────────────────────────────────────── */
.wb-welcome { margin-bottom: 20px; }
.wb-welcome__heading {
    font-family: var(--wb-display);
    font-size: 22px; font-weight: 700; color: var(--wb-navy);
    margin: 0 0 4px; letter-spacing: -0.01em;
}
.wb-welcome__sub { font-size: 13px; color: var(--wb-muted); margin: 0; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.wb-btn {
    display: inline-block; font-size: 13px; font-weight: 500;
    padding: 9px 22px; border-radius: 5px; border: none;
    cursor: pointer; text-decoration: none;
    font-family: var(--wb-body); transition: opacity 0.14s;
    line-height: 1.4;
}
.wb-btn:hover { opacity: 0.88; }
.wb-btn--primary { background: var(--wb-gold); color: var(--wb-navy); }
.wb-btn--navy    { background: var(--wb-navy); color: #fff; }
.wb-btn--ghost   { background: transparent; color: var(--wb-navy); border: 1px solid var(--wb-border); }
.wb-btn--danger  { background: #FCEBEB; color: #A32D2D; border: 1px solid #F09595; }
.wb-btn--sm      { font-size: 12px; padding: 7px 16px; }

/* ── Account / settings ─────────────────────────────────────────────────────── */
.wb-settings { max-width: 620px; }

.wb-field { margin-bottom: 20px; }
.wb-field:last-child { margin-bottom: 0; }

.wb-label {
    display: block; font-size: 13px; font-weight: 500;
    color: var(--wb-navy); margin-bottom: 6px;
}
.wb-hint { font-size: 11px; color: #9BA8B4; margin-top: 4px; }

.wb-input {
    width: 100%; padding: 9px 12px; font-size: 14px;
    border: 1px solid var(--wb-border); border-radius: 6px;
    color: var(--wb-navy); background: #fff;
    font-family: var(--wb-body); transition: border-color 0.14s;
}
.wb-input:focus {
    outline: none; border-color: var(--wb-blue);
    box-shadow: 0 0 0 2px rgba(30, 91, 168, 0.12);
}
.wb-input--ro { background: var(--wb-content-bg); color: var(--wb-muted); cursor: default; }
.wb-input--sm { font-size: 14px; padding: 8px 10px; }

.wb-form-footer {
    display: flex; align-items: center; gap: 12px;
    margin-top: 20px; flex-wrap: wrap;
}

/* Alerts within workbench */
.wb-alert {
    padding: 12px 16px; border-radius: 7px;
    font-size: 13px; line-height: 1.5; margin-bottom: 16px;
}
.wb-alert p { margin: 0 0 4px; }
.wb-alert p:last-child { margin-bottom: 0; }
.wb-alert--ok    { background: #EAF3DE; border: 1px solid #C0DD97; color: #3B6D11; }
.wb-alert--error { background: #FCEBEB; border: 1px solid #F09595; color: #A32D2D; }
.wb-alert--info  { background: #E6F1FB; border: 1px solid #85B7EB; color: #0C447C; }

/* Notification options */
.wb-notify-opts { display: flex; flex-direction: column; gap: 8px; }
.wb-notify-opt {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px; border: 1px solid var(--wb-border);
    border-radius: 6px; cursor: pointer;
}
.wb-notify-opt input { margin-top: 2px; flex-shrink: 0; accent-color: var(--wb-blue); }
.wb-notify-opt__label { font-size: 13px; font-weight: 500; color: var(--wb-navy); }
.wb-notify-opt__sub   { font-size: 11px; color: var(--wb-muted); margin-top: 1px; }

/* MFA status strip */
.wb-mfa-status {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px; background: var(--wb-content-bg);
    border-radius: 8px; margin-bottom: 16px;
}
.wb-mfa-enabled  { color: #3B6D11; font-weight: 500; font-size: 13px; }
.wb-mfa-disabled { color: var(--wb-muted); font-size: 13px; }

/* QR code wrapper */
.wb-qr-wrap {
    background: #fff; border: 1px solid var(--wb-border);
    border-radius: 8px; padding: 20px; display: inline-block;
    margin-bottom: 16px; line-height: 0;
}

/* Backup code grid */
.wb-backup-codes {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-bottom: 16px;
}
.wb-backup-code {
    background: var(--wb-content-bg);
    border: 1px solid var(--wb-border);
    border-radius: 5px; padding: 8px 12px;
    font-family: 'Courier New', monospace; font-size: 13px;
    font-weight: 600; color: var(--wb-navy); text-align: center;
    letter-spacing: 0.08em;
}
.wb-code-used { opacity: 0.35; text-decoration: line-through; }

/* ── MFA setup wizard (mfa-setup.php) ───────────────────────────────────────
   CR: fysh-mfa-qr-2026-08-18 — inline styles moved here for CSP style-src 'self'. */
.wb-mfa-intro {
    font-size: 13px; color: var(--color-text-secondary); margin-top: 0;
}
.wb-mfa-hint {
    font-size: 12px; color: var(--color-text-secondary); margin-bottom: 4px;
}
.wb-mfa-hint--spaced { margin-bottom: 20px; }

/* The QR canvas/img is injected by qrcode.min.js. Reserve the box so the
   layout doesn't jump before it renders. */
.wb-qr {
    display: block; width: 200px; height: 200px;
}
/* If the QR library fails to load, the manual setup key below is the fallback. */
.wb-qr--failed { width: auto; height: auto; }

.wb-setup-key {
    display: block; font-size: 14px; letter-spacing: 0.08em;
    color: var(--wb-navy); background: var(--wb-content-bg);
    padding: 8px 12px; border-radius: 6px; margin-bottom: 20px;
    word-break: break-all; font-family: 'Courier New', monospace;
}

.wb-field--narrow { max-width: 240px; }
.wb-input--otp {
    font-size: 22px; letter-spacing: 0.18em; text-align: center;
}

/* ── Mobile navigation ──────────────────────────────────────────────────────── */
.wb-mobile-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--wb-mob-nav-h);
    background: #fff; border-top: 1px solid var(--wb-border);
    display: none; z-index: 100;
    -webkit-font-smoothing: antialiased;
}
@media (max-width: 767px) { .wb-mobile-nav { display: flex; } }

.wb-mob-tab {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; text-decoration: none;
    color: var(--wb-muted); font-size: 10px;
    position: relative; padding-bottom: 6px;
    transition: color 0.14s;
}
.wb-mob-tab.wb-active { color: var(--wb-gold); }
.wb-mob-tab i { font-size: 22px; }

.wb-mob-badge {
    position: absolute; top: 6px;
    right: calc(50% - 18px);
    width: 15px; height: 15px; border-radius: 50%;
    font-size: 9px; font-weight: 500;
    display: flex; align-items: center; justify-content: center;
}
.wb-mob-badge--amber { background: var(--wb-gold); color: var(--wb-navy); }
.wb-mob-badge--blue  { background: var(--wb-blue); color: #fff; }

/* ── Reduced motion ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
/* ── Thread layout (refined 2026-06-22) ──────────────────────────────────────
   Single column ≤ md; centred two-column with narrow chat + sidebar at lg+.
   Uses design tokens from /css/tokens.css — no hardcoded colours.
*/

.thread-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
}

.thread-chat { min-width: 0; }   /* prevents grid blowout on long unbroken text */

/* Sidebar hidden below lg by default */
.thread-context { display: none; }

.thread-context__card {
    padding: 16px;
    margin-bottom: 12px;
    overflow: hidden;        /* clips photo bleed to rounded corners */
}
.thread-context__card:last-child { margin-bottom: 0; }

/* Photo: full-bleed cover above the card body */
.thread-context__photo {
    display: block;
    margin: -16px -16px 12px;            /* bleeds to the wb-card padding edge */
    aspect-ratio: 16 / 10;
    background: var(--cream);
    overflow: hidden;
}
.thread-context__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--ease);
}
.thread-context__photo:hover img { transform: scale(1.03); }

.thread-context__heading {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 0 0 8px;
    font-family: var(--font-body);
}

.thread-context__title-link {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.3;
    color: var(--navy);
    text-decoration: none;
    margin-bottom: 6px;
}
.thread-context__title-link:hover { text-decoration: underline; }

.thread-context__price {
    font-size: 18px;
    font-weight: 500;
    color: var(--gold);
    font-family: var(--font-display);
    margin-bottom: 8px;
}
.thread-context__price-suffix {
    font-size: 11px;
    color: var(--muted);
    font-family: var(--font-body);
    margin-left: 2px;
}

.thread-context__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 12px;
    color: var(--muted);
}
.thread-context__meta li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.thread-context__meta .ti { font-size: 14px; }

.thread-context__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    justify-content: center;
}
.thread-context__cta .ti { font-size: 12px; }

.thread-context__submitted {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.thread-context__quote {
    margin: 0;
    padding: 10px 12px;
    background: var(--cream);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.5;
    color: var(--navy);
    font-style: italic;
}

/* ── Desktop two-column (≥ lg) ─────────────────────────────────────────────
   Chat capped narrow for focused reading; sidebar fixed-width; centred. */
@media (min-width: 900px) {
    .thread-layout {
        grid-template-columns: minmax(0, 460px) 340px;
        gap: 24px;
        justify-content: center;
    }
    .thread-context {
        display: block;
        position: sticky;
        top: 16px;
    }
    /* On desktop the sidebar carries property/party context; the inline
       "Conversation with …" subhead in the chat header is redundant. */
    .thread-chat__header .thread-header__party { display: none; }
}

/* ── EOI buyer profile (Phase 6, added 2026-06-22) ───────────────────────────
   Replaces free-form buyer message with a fixed notification card.
   Mobile-first: chips wrap; no fragile layout hacks.
*/

.eoi-buyer {
    margin: 6px 0 8px;
}

.eoi-buyer__name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.eoi-buyer__chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.eoi-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.4;
    white-space: nowrap;
}
.eoi-chip .ti { font-size: 13px; }
.eoi-chip__sub {
    color: var(--muted);
    opacity: 0.7;
    font-weight: 400;
    margin-left: 2px;
}

/* Age buckets — visual signal of buyer trustworthiness */
.eoi-chip--age-new {
    background: rgba(176, 0, 32, 0.06);
    border-color: rgba(176, 0, 32, 0.25);
    color: #B00020;
}
.eoi-chip--age-recent {
    background: rgba(30, 91, 168, 0.08);
    border-color: rgba(30, 91, 168, 0.25);
    color: var(--blue);
}
.eoi-chip--age-established {
    background: rgba(201, 168, 76, 0.10);
    border-color: rgba(201, 168, 76, 0.35);
    color: var(--navy);
}

/* Tablet+ — keep chips tidy on a single row when room allows */
@media (min-width: 560px) {
    .eoi-chip { font-size: 12px; padding: 4px 10px; }
}

/* ── Phase 6 Deploy 2: presence + blocks + system messages ────────────────── */

/* OOO banner — used on listings, EOI confirmation, and threads */
.oo-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: rgba(201, 168, 76, 0.10);  /* gold tint */
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--navy);
    line-height: 1.4;
}
.oo-banner .ti { font-size: 18px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.oo-banner p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

.oo-banner--inline { padding: 8px 12px; font-size: 12px; }
.oo-banner--thread {
    border-radius: 0;
    margin-bottom: 0;
    background: rgba(201, 168, 76, 0.08);
    border-left: 0;
    border-right: 0;
}

/* ── Standard workbench page shell ─────────────────────────────────────────────
   CR: fysh-workbench-standard-2026-10-12
   One shell for every workbench page. The column is fluid and mobile first, so on
   a phone it fills the viewport inside the wb-main gutter; the max-width only caps
   it once the screen is wider. wb-main supplies the side padding, so none is set
   here.
     .wb-page          720px, forms and settings pages
     .wb-page--narrow  560px, simple single column pages
     .wb-page--wide    full width, data tables and dashboards
   wb-settings stays as an alias of the form width during migration. */
.wb-page { width: 100%; max-width: 720px; margin-inline: auto; }
.wb-page--wide { max-width: none; }

/* Utility classes so pages never need an inline style attribute, which the site
   CSP (style-src 'self') blocks. Use these in place of style="". */
.wb-u-mt-0  { margin-top: 0; }
.wb-u-mt-8  { margin-top: 8px; }
.wb-u-mt-12 { margin-top: 12px; }
.wb-u-mt-16 { margin-top: 16px; }
.wb-u-mt-24 { margin-top: 24px; }
.wb-u-mb-0  { margin-bottom: 0; }
.wb-u-mb-8  { margin-bottom: 8px; }
.wb-u-mb-12 { margin-bottom: 12px; }
.wb-u-mb-16 { margin-bottom: 16px; }
.wb-u-center { text-align: center; }
.wb-u-right  { text-align: right; }
.wb-u-muted  { color: var(--wb-muted); }
.wb-u-navy   { color: var(--wb-navy); }
.wb-u-blue   { color: var(--wb-blue); }
.wb-u-gold   { color: var(--wb-gold); }
.wb-u-strong { font-weight: 600; }
.wb-u-hidden { display: none; }
.wb-u-full   { width: 100%; }

/* Shared helpers used across settings and detail pages, so pages can drop inline
   styles. CR: fysh-workbench-standard-2026-10-12 */
.wb-label__opt { font-weight: 400; opacity: 0.65; }
.wb-note       { font-size: 13px; color: var(--wb-muted); margin-bottom: 16px; }
.wb-note--sm   { font-size: 12px; margin-bottom: 0; }
.wb-ico-inline { font-size: 14px; vertical-align: -2px; }
.wb-field--md  { max-width: 320px; }
.wb-ul         { padding-left: 18px; }
.wb-ul li      { margin-bottom: 6px; }
.wb-ul--muted li { color: var(--wb-muted); font-size: 13px; }
.wb-mfa-status__ico      { font-size: 22px; }
.wb-mfa-status__ico--on  { color: #3B6D11; }
.wb-mfa-status__ico--off { color: var(--wb-muted); }
.wb-mfa-status__sub      { font-size: 12px; color: var(--wb-muted); }

/* Presence settings page ─────────────────────────────────────────────────── */
/* CR: fysh-presence-centre-2026-09-04 — narrower column, centred in the workspace */
/* Shared: any workbench page can use .wb-page--narrow for the same centred column */
.wb-presence-page,
.wb-page--narrow { max-width: 560px; margin-inline: auto; }
.wb-presence__body { padding: 16px; }
.wb-presence__intro {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}
.wb-presence__form { display: flex; flex-direction: column; gap: 14px; }

.wb-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
}
.wb-toggle-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}
.wb-toggle-row__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
}

.wb-field { display: flex; flex-direction: column; gap: 4px; }
.wb-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
}
.wb-field__hint {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
}
.wb-input--textarea { min-height: 80px; resize: vertical; }

.wb-presence-preview__body { padding: 16px; }

/* Block list page ────────────────────────────────────────────────────────── */
.block-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.block-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.block-row:last-child { border-bottom: 0; }
.block-row__avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
}
.block-row__main { flex: 1; min-width: 0; }
.block-row__name { font-weight: 500; font-size: 14px; color: var(--navy); }
.block-row__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.block-row__reason {
    margin-top: 6px;
    font-size: 12px;
    color: var(--navy);
    padding: 6px 10px;
    background: var(--cream);
    border-left: 2px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}
.block-row__action { margin-left: auto; }

/* System messages in thread (left-aligned block, no pill) ────────────────── */
.msg-row--system {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
    gap: 6px;
}
.msg-system-date {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--muted);
    line-height: 1.2;
}
.msg-system {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--navy);
    line-height: 1.5;
    text-align: left;
    word-break: break-word;
    /* No background, no border, no pill — flush with the thread column */
}
.msg-system .ti {
    font-size: 16px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}
.msg-system__body { flex: 1; min-width: 0; }

/* Inline link-button used inside alert text (e.g. Unblock from notice) ───── */
.wb-link {
    background: none;
    border: none;
    color: var(--blue);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}
.wb-link:hover { color: var(--navy); }

/* Mobile-first tweaks ──────────────────────────────────────────────────────
   The block-row already wraps via flex-wrap. Make the action button take
   full row on narrow viewports so it's tap-friendly. */
@media (max-width: 559px) {
    .block-row__action {
        margin-left: 0;
        width: 100%;
        margin-top: 6px;
    }
    .block-row__action button { width: 100%; }
    .oo-banner { font-size: 12px; padding: 8px 10px; }
    .oo-banner .ti { font-size: 16px; }
}

/* ── Thread engagement context banner (added 2026-06-22) ────────────────────
   Sits stitched between the thread header card and chat history.
   Visible at all viewports — the sidebar replicates this info on desktop
   but mobile users wouldn't see it without this banner.
*/

.eoi-context {
    /* Inherits .wb-card box; override only what differs */
    background: var(--cream);
    border-top: 0;
    border-bottom: 0;
}

.eoi-context__body {
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eoi-context__lead {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--navy);
    line-height: 1.4;
}
.eoi-context__lead strong { font-weight: 600; }

.eoi-context__sub {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}

.eoi-context__chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* The .eoi-chip styles defined earlier already cover sizing and age-bucket
   colours; this rule only adjusts spacing inside the banner context. */

@media (max-width: 559px) {
    .eoi-context__body { padding: 8px 12px; gap: 5px; }
    .eoi-context__lead { font-size: 12px; }
}

/* ── EOI context card header (added 2026-06-22) ─────────────────────────────
   Reuses .wb-card__header layout (flex justify-between). Adds icon spacing
   inside the title and a muted right-aligned date.
*/

.eoi-context__header .wb-card__title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.eoi-context__header .wb-card__title .ti {
    font-size: 16px;
    color: var(--gold);
}

.eoi-context__date {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

@media (max-width: 559px) {
    .eoi-context__header .wb-card__title { font-size: 13px; }
    .eoi-context__date { font-size: 11px; }
}

/* ── Thread help accordion (added 2026-06-22) ───────────────────────────────
   Native <details>/<summary> — keyboard-accessible, no JS required.
   Stitched into the thread card stack (border-radius 0); closed by default.
*/

.thread-help { background: var(--white); }

.thread-help__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--navy);
    user-select: none;
    /* Tap target ≥ 44px on mobile via padding + line-height of icon */
}
.thread-help__summary::-webkit-details-marker { display: none; }
.thread-help__summary::marker             { content: ''; }   /* Firefox */

.thread-help__summary:hover { background: var(--cream); }
.thread-help__summary:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: -2px;
}

.thread-help__summary > .ti:first-of-type {
    color: var(--blue);
    font-size: 16px;
    flex-shrink: 0;
}

.thread-help__title {
    flex: 1;
    font-weight: 500;
    line-height: 1.3;
}

.thread-help__chevron {
    color: var(--muted);
    font-size: 18px;
    transition: transform var(--ease);
    flex-shrink: 0;
}
.thread-help[open] .thread-help__chevron {
    transform: rotate(180deg);
}

.thread-help__body {
    padding: 0 16px 14px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    font-size: 13px;
    color: var(--slate);
    line-height: 1.55;
}
.thread-help__body p { margin: 0 0 10px; }
.thread-help__body p:last-child { margin-bottom: 0; }
.thread-help__body a {
    color: var(--blue);
    text-decoration: underline;
}
.thread-help__body a:hover { color: var(--navy); }

@media (max-width: 559px) {
    .thread-help__summary { padding: 11px 14px; font-size: 12.5px; }
    .thread-help__body    { padding: 10px 14px 12px; font-size: 12.5px; }
}

/* ── Thread header card (title row + CTA row, added 2026-06-22) ─────────────
   Replaces the previous single-flex-row layout. Title sits in a wb-card__header
   row; CTAs ride in a dedicated row below with consistent gap/padding.
*/

.thread-chat__header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;   /* override wb-card__header's space-between */
}

.thread-chat__back {
    color: var(--muted);
    line-height: 0;
    text-decoration: none;
    flex-shrink: 0;
}
.thread-chat__back .ti { font-size: 18px; }
.thread-chat__back:hover { color: var(--navy); }

.thread-chat__title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.thread-chat__title-block .wb-card__title {
    /* Inherits base size from wb-card__title; clamp long titles */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread-chat__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-top: 0;
}

.thread-chat__action-form { display: contents; }

.thread-chat__action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.thread-chat__action .ti { font-size: 13px; }
.thread-chat__action--danger {
    color: #B00020;
}
.thread-chat__action--danger:hover {
    color: #B00020;
    background: rgba(176, 0, 32, 0.06);
}

@media (max-width: 559px) {
    .thread-chat__actions { padding: 8px 12px; gap: 6px; }
    .thread-chat__action { font-size: 11.5px; }
}

/* Sidebar-side hide of "Conversation with…" subline at lg+ stays unchanged
   (rule lives further up in the file). */

/* ── Thread summary card (Phase 6.5, added 2026-06-22) ──────────────────────
   Merged top card replacing the previous header card + EOI context banner.
   One card now carries: property title, inbound EOI + buyer profile chips,
   optional outbound email-share row, and the three actions (VIEW/SHARE/BLOCK).
   System messages are filtered out of the chat flow and represented here.
*/

.thread-summary {
    position: relative;
    padding: 0;
}

.thread-summary__back {
    position: absolute;
    top: 14px;
    left: 14px;
    color: var(--muted);
    line-height: 0;
    text-decoration: none;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--ease), color var(--ease);
}
.thread-summary__back:hover {
    background: var(--cream);
    color: var(--navy);
}
.thread-summary__back .ti { font-size: 18px; }

.thread-summary__title {
    margin: 0;
    padding: 14px 16px 12px 50px;     /* left padding leaves room for the back arrow */
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--navy);
}
.thread-summary__title a {
    color: inherit;
    text-decoration: none;
}
.thread-summary__title a:hover { text-decoration: underline; }

/* Directional row — inbound (left) or outbound (right) */
.thread-summary__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    font-family: var(--font-body);
}
.thread-summary__row--inbound  { /* default left-to-right flow */ }
.thread-summary__row--outbound {
    flex-direction: row-reverse;
    text-align: right;
}

.thread-summary__row-icon {
    font-size: 18px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 1px;
}

.thread-summary__row-content {
    flex: 1;
    min-width: 0;
}

.thread-summary__row-text {
    font-size: 13px;
    color: var(--navy);
    line-height: 1.45;
}
.thread-summary__row-text strong { font-weight: 600; }

.thread-summary__row-date {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}

.thread-summary__row-text a {
    color: var(--blue);
    text-decoration: underline;
    word-break: break-all;
}
.thread-summary__row-text a:hover { color: var(--navy); }

.thread-summary__chips {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    /* When parent row is outbound (row-reverse), keep chips left-anchored
       relative to their own content block rather than mirroring. */
}
.thread-summary__row--outbound .thread-summary__chips { justify-content: flex-end; }

/* Actions row — VIEW / SHARE / BLOCK at the bottom of the card */
.thread-summary__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.thread-summary__action-form { display: contents; }

.thread-summary__action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.thread-summary__action .ti { font-size: 13px; }

.thread-summary__action--danger { color: #B00020; }
.thread-summary__action--danger:hover {
    color: #B00020;
    background: rgba(176, 0, 32, 0.06);
}

/* Mobile-first refinements */
@media (max-width: 559px) {
    .thread-summary__back { top: 12px; left: 12px; width: 26px; height: 26px; }
    .thread-summary__back .ti { font-size: 16px; }
    .thread-summary__title { padding: 12px 14px 10px 44px; font-size: 14px; }
    .thread-summary__row { padding: 10px 14px; }
    .thread-summary__row-text { font-size: 12.5px; }
    .thread-summary__actions { padding: 10px 14px; gap: 6px; }
}

/* ── Suspended badge + danger button (added 2026-06-22) ─────────────────────
   Used on admin/users.php to flag suspended accounts and offer destructive
   actions. The badge sits next to the email; the danger button modifier
   adds a red tint to ghost buttons that perform irreversible actions.
*/

.wb-badge--suspended {
    background: #FCE4EC;
    color: #B00020;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}

.wb-btn--danger {
    color: #B00020;
}
.wb-btn--danger:hover {
    color: #B00020;
    background: rgba(176, 0, 32, 0.08);
}

/* ── Admin users table — per-action columns (added 2026-06-22) ──────────────
   Each CTA in /admin/users.php now lives in its own <td class="col-action">,
   replacing the previous combined tbl-actions flex cell. Minimum widths keep
   the columns aligned across rows even when an action is conditionally hidden
   (e.g. Verify only shows on unverified rows; Grant only on vendor rows).
*/
.col-action {
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    padding: 6px 8px;
}
.col-action form { margin: 0; }

/* Column widths — only applied via the th, but the td inherits naturally.
   Header order (14 cols):
     # / Email / Name / Role / Verified / Credits / Joined / Last login /
     Set role / Verify / Grant / Reset pw / Suspend / Delete
   CR: fysh_users_action_balance-2026-07-18 — nth-of-type indices corrected
   (were off-by-one, and all action buttons are standard .wb-btn at ~80×37px
   because inline overrides don't survive to production). Widths sized to
   each column's actual button footprint so the whole action strip aligns
   proportionally. */
th.col-action { font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }
th.col-action:nth-of-type(9)  { min-width: 240px; }   /* Set role — wide <select>          */
th.col-action:nth-of-type(10) { min-width: 100px; }   /* Verify   — single ~80px button    */
th.col-action:nth-of-type(11) { min-width: 160px; }   /* Grant    — input(56) + gap + btn  */
th.col-action:nth-of-type(12) { min-width: 100px; }   /* Reset pw — single ~80px button    */
th.col-action:nth-of-type(13) { min-width: 130px; }   /* Suspend  — Suspend/Unsuspend text */
th.col-action:nth-of-type(14) { min-width: 100px; }   /* Delete   — single ~80px button    */

/* Grant credits widget — number input sized to match .wb-btn height
   (padding: 9px 22px + font 13px + 1.4 line-height ≈ 37px) and to fit a
   3-digit value ("100"). Spinner hidden so visible width is honest. */
.grant-form {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    max-width: 100%;
}
.grant-form__amount {
    width: 56px;
    padding: 9px 8px;
    text-align: center;
}
.grant-form__amount::-webkit-outer-spin-button,
.grant-form__amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.grant-form__amount { -moz-appearance: textfield; }

/* ── Admin cron — Registered jobs card (added 2026-06-22) ───────────────────
   Tidies the registered jobs table: 5 columns instead of 7, design-token
   colours instead of inline hex, monospace chips for keys + schedules,
   stacked status/timestamp/duration in one Last-run cell.
*/

.cron-jobs-table th,
.cron-jobs-table td {
    vertical-align: top;
    padding: 12px 14px;
}

.cron-jobs-table th {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Column widths */
.cron-col-job      { min-width: 220px; max-width: 320px; }
.cron-col-schedule { white-space: nowrap; }
.cron-col-lastrun  { white-space: nowrap; min-width: 150px; }
.cron-col-summary  { max-width: 320px; }
.cron-col-actions  { text-align: right; white-space: nowrap; }

/* Job cell — stacked name / description / key chip */
.cron-job__name {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
}
.cron-job__desc {
    font-size: 12px;
    color: var(--slate);
    line-height: 1.4;
    margin-top: 2px;
}
.cron-job__key {
    display: inline-block;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 10.5px;
    background: var(--cream);
    color: var(--muted);
    padding: 1px 6px;
    border-radius: 3px;
    margin-top: 6px;
}

/* Schedule cell — monospace cron expression */
.cron-schedule {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12px;
    color: var(--navy);
    background: var(--cream);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Last-run cell — pill + duration on top, timestamp below */
.cron-runinfo {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cron-runinfo__top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cron-runinfo__duration {
    font-size: 11px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.cron-runinfo__when {
    font-size: 11px;
    color: var(--muted);
}

/* Summary cell — wraps long text rather than truncating with ellipsis */
.cron-summary {
    font-size: 12px;
    color: var(--navy);
    line-height: 1.4;
    display: block;
}

/* Empty-state inline label (Never run, em-dash) */
.cron-empty {
    font-size: 12px;
    color: var(--muted);
    font-style: italic;
}

.cron-run-form { margin: 0; }

/* ── Status pills (added 2026-06-22) ────────────────────────────────────────
   Used by _status_pill() helper in admin/cron.php. Without these rules the
   pills render as plain text — that was the visual corruption symptom.
*/
.wb-pill {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--cream);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.5;
    vertical-align: middle;
}
.wb-pill--ok    { background: #E8F5E9; color: #2E7D32; }
.wb-pill--error { background: #FCE4EC; color: #B00020; }
.wb-pill--info  { background: #E3F2FD; color: #1565C0; }

/* ── Admin cron — Recent runs card (added 2026-06-22) ───────────────────────
   Same tidy treatment as the Registered jobs card so both tables on /admin/cron.php
   share visual language: uppercase-muted headers, design-token colours,
   monospace chip for the job key, tabular numerics, error highlighting.
*/
.cron-runs-table th,
.cron-runs-table td {
    vertical-align: middle;
    padding: 10px 14px;
}
.cron-runs-table th {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.cron-col-started { white-space: nowrap; min-width: 130px; }
.cron-col-jobkey  { white-space: nowrap; }
.cron-col-trigger { white-space: nowrap; }
.cron-col-status  { white-space: nowrap; }
.cron-col-num     { text-align: right; white-space: nowrap; min-width: 70px; }
.cron-col-summary { max-width: 360px; }

.cron-started {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--navy);
}

.cron-trigger {
    display: inline-block;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 10.5px;
    background: var(--cream);
    color: var(--muted);
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: lowercase;
}

.cron-num {
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    color: var(--navy);
}

.cron-error {
    font-size: 12px;
    color: #B00020;
    line-height: 1.4;
    display: block;
}

/* ── HEIC upload — preview placeholder + dropzone warning (added 2026-06-22) ─
   Browsers can't render HEIC inline; the JS swaps the <img> for a placeholder
   tile with this style so the upload preview tray doesn't look broken.
*/
.pu-prev-tile--heic {
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}
.pu-prev-tile__heic-badge {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: uppercase;
    background: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.pu-dropzone__hint-warn {
    display: block;
    margin-top: 6px;
    color: #B00020;
    font-size: 11px;
}

/* ── HEIC client-side conversion status (added 2026-06-22) ──────────────────
   Shown above the preview tray while heic2any conversions are in flight.
   Submit is disabled until pendingConversions hits 0.
*/
.pu-converting {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--navy);
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pu-converting::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    border-top-color: transparent;
    animation: pu-spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes pu-spin {
    to { transform: rotate(360deg); }
}


/* =============================================================================
   CR: fysh-workbench-consistency-2026-07-16
   Standard page heading block + floor plan status widget.
   Replaces inline-style heading divs across all workbench pages.
============================================================================= */

/* ── Page heading block ─────────────────────────────────────────────────── */
/* Usage: <div class="wb-page-hd [wb-page-hd--row]">                        */
/*          <h1 class="wb-page-hd__title">...</h1>                          */
/*          <p  class="wb-page-hd__sub">...</p>                             */
/*        </div>                                                             */
.wb-page-hd       { margin-bottom: 16px; }
.wb-page-hd--row  { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wb-page-hd__title {
    font-size: 18px; font-weight: 500;
    color: #0F2340; margin: 0 0 2px;
    font-family: var(--font-display);
    line-height: 1.3;
}
.wb-page-hd__sub { font-size: 12px; color: #6B7A8D; margin: 0; line-height: 1.5; }

/* ── Floor plan status widget (listing-edit.php prop-form-section) ───────── */
.wb-fp-status {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.wb-fp-status__icon     { font-size: 24px; color: #9BA8B4; flex-shrink: 0; line-height: 1; }
.wb-fp-status__icon--ok { color: #4BAE4F; }
.wb-fp-status__body     { flex: 1; min-width: 120px; }
.wb-fp-status__title    { font-size: 13px; font-weight: 500; color: #0F2340; margin: 0 0 2px; }
.wb-fp-status__sub      { font-size: 11px; color: #6B7A8D; margin: 0; }
.wb-fp-status__preview  {
    width: 80px; height: 56px; overflow: hidden;
    border: 1px solid #E2E8F0; border-radius: 6px;
    background: #fff; flex-shrink: 0;
}
.wb-fp-status__preview svg { width: 100%; height: 100%; display: block; }
.wb-fp-status__btn { flex-shrink: 0; }

/* ── Inline utility classes (workbench-consistency-2026-07-16) ───────────── */
.wb-breadcrumb {
    font-size: 12px; color: #6B7A8D; text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
    margin-bottom: 4px; line-height: 1;
}
.wb-breadcrumb:hover { color: #0F2340; }
.wb-link { color: #1E5BA8; text-decoration: none; }
.wb-link:hover { text-decoration: underline; }

/* ── CR: fysh-dashboard-template-2026-07-16 ────────────────────────────────
   Standardised wb-card header extensions + mobile flex-wrap.
   All workbench pages now follow presence.php layout: content exclusively
   inside wb-card blocks, page context in wb-card__header, nothing floating.
──────────────────────────────────────────────────────────────────────────── */
.wb-card__sub {
    font-size: 11px; color: #6B7A8D; margin: 2px 0 0; line-height: 1.4;
    font-weight: 400;
}
.wb-card__count {
    font-size: 11px; font-weight: 400; color: #9BA8B4;
    background: #EDF2F8; border-radius: 10px;
    padding: 1px 8px; margin-left: 6px; vertical-align: middle;
}
.wb-card__intro {
    padding: 10px 20px 4px;
    font-size: 12px; color: #6B7A8D; margin: 0; line-height: 1.6;
}
/* Stack card header vertically on narrow screens */
@media (max-width: 640px) {
    .wb-card__header { flex-wrap: wrap; gap: 8px; }
    .wb-card__header .wb-btn { align-self: flex-start; }
}

/* ── Account: role status grid ───────────────────────────────────────────── */
/* CR: fysh-account-access-2026-07-16 — replaces inline styles on role boxes */
.acc-role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
@media (max-width: 600px) { .acc-role-grid { grid-template-columns: 1fr; } }

.acc-role-item {
    padding: 14px 16px;
    border: 1.5px solid var(--wb-border);
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: border-color .15s, background .15s;
}
.acc-role-item--vendor-active {
    border-color: var(--wb-gold);
    background: #FAFCFF;
}
.acc-role-item--buyer-active {
    border-color: #1E5BA8;
    background: #F4F8FF;
}
.acc-role-item__icon {
    font-size: 20px;
    color: var(--wb-muted);
    flex-shrink: 0;
    margin-top: 1px;
}
.acc-role-item--vendor-active .acc-role-item__icon { color: var(--wb-gold); }
.acc-role-item--buyer-active  .acc-role-item__icon { color: #1E5BA8; }
.acc-role-item__hd  { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.acc-role-item__name { font-size: 14px; font-weight: 600; color: var(--wb-navy); }
.acc-role-item__badge {
    font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 10px; line-height: 1.6;
}
.acc-role-item__badge--vendor { background: #FDF3D0; color: #7A5800; }
.acc-role-item__badge--buyer  { background: #E8F0FD; color: #1E3A8A; }
.acc-role-item__desc { font-size: 12px; color: var(--wb-muted); margin: 0; line-height: 1.55; }

/* ── Slide toggle (wb-switch) ────────────────────────────────────────────── */
/* CSS-only — uses hidden checkbox + :checked sibling combinator.            */
/* The hidden input stays in the DOM for native form validation (required).   */
.wb-switch {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--wb-border-lt);   /* CR: fysh-premium-palette-2026-08-27 — was warm #EDF2F8 */
    border: 1.5px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: border-color .15s;
    position: relative;
}
.wb-switch:hover { border-color: var(--wb-border); }

.wb-switch__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    left: 50%;
    top: 50%;
    pointer-events: none;
}
.wb-switch__track {
    position: relative;
    width: 44px;
    height: 26px;
    background: #CBD5E0;
    border-radius: 13px;
    flex-shrink: 0;
    margin-top: 1px;
    transition: background .2s;
}
.wb-switch__track::after {
    content: '';
    position: absolute;
    top: 4px; left: 4px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.wb-switch__input:checked + .wb-switch__track { background: var(--wb-navy, #0F2340); }
.wb-switch__input:checked + .wb-switch__track::after { transform: translateX(18px); }
.wb-switch__input:focus-visible + .wb-switch__track {
    outline: 2px solid #1E5BA8;
    outline-offset: 2px;
}
.wb-switch__text {
    flex: 1;
    font-size: 13px;
    color: var(--wb-navy);
    line-height: 1.6;
    padding-top: 2px;
}

/* ── CR: fysh-listing-edit-csp-cleanup-2026-07-18 ────────────────────────────
   Replaces inline style="" attributes across the workbench shell partials
   that were CSP-blocked under style-src 'self'. */
.wb-mobile-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wb-user-info {
    min-width: 0;
}
.wb-mob-logout-form {
    display: contents;
}

/* ── Recent listings row — single-row grid link ───────────────────────────
   CR: fysh_workbench_recent_listings_grid-2026-07-19
   Mobile-first tiered breakpoints — each breakpoint reveals extra metric
   columns as viewport width allows. Header and row grids share IDENTICAL
   column widths at every breakpoint so labels always sit directly above
   their values (right-aligned to the same edge).

   Order: title | area | status | price | views | saves | last viewed
   Breakpoints:
     base   (<480px) : title | status | price                       (3 cols)
     ≥480px          : title | area | status | price                (4 cols)
     ≥720px          : title | area | status | price | saves        (5 cols)
     ≥960px          : title | area | status | price | views | saves | last (7 cols)
*/
.wb-listing-row,
.wb-listing-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px 80px;   /* base — status, price */
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    min-width: 0;
}

/* ── Header row ─────────────────────────────────────────────────────────── */
.wb-listing-head {
    padding: 8px 20px;
    background: var(--wb-content-bg, #EDF2F8);
    border-bottom: 1px solid var(--wb-border, #E2E8F0);
    color: var(--wb-muted, #6B7A8D);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.wb-listing-head__cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;                              /* right-align all header labels */
}
.wb-listing-head__cell--title { text-align: left; }
/* Columns hidden by default; each breakpoint re-shows them in lockstep with
   the row grid so header labels align exactly with their values. */
.wb-listing-head__cell--area,
.wb-listing-head__cell--views,
.wb-listing-head__cell--saves,
.wb-listing-head__cell--last { display: none; }

/* ── Data row ───────────────────────────────────────────────────────────── */
.wb-listing-row {
    border-bottom: 0.5px solid var(--wb-border-lt);
    color: var(--wb-navy);
    text-decoration: none;
    transition: background 0.14s;
}
.wb-listing-row:last-child { border-bottom: none; }

/* Right-align every data cell EXCEPT title so cell content sits at the
   right edge of its track — matching the right-aligned header label. */
.wb-listing-row > * { justify-self: end; text-align: right; }
.wb-listing-row > .wb-listing-row__title { justify-self: stretch; text-align: left; }

a.wb-listing-row:hover         { background: rgba(30, 91, 168, 0.04); }
a.wb-listing-row:focus-visible { background: rgba(30, 91, 168, 0.06); outline: 2px solid rgba(30, 91, 168, 0.4); outline-offset: -2px; }

.wb-listing-row__title {
    min-width: 0;
    color: var(--wb-navy);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wb-listing-row__area {
    display: none;                                  /* revealed ≥480px */
    font-size: 10.5px;
    color: var(--wb-muted);
    background: #ECF1F7;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.wb-listing-row__price {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--wb-navy);
    white-space: nowrap;
}

/* Metrics — icon + count. Hidden by default; revealed at their breakpoint. */
.wb-listing-row__metric {
    display: none;                                  /* base: hidden */
    align-items: center;
    justify-content: flex-end;                      /* end-align icon+count within cell */
    gap: 4px;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    color: var(--wb-muted);
    white-space: nowrap;
}
.wb-listing-row__metric i { font-size: 13px; opacity: 0.7; }

.wb-listing-row__last {
    display: none;                                  /* revealed ≥960px */
    font-size: 11.5px;
    color: var(--wb-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ── Breakpoint 1: reveal area chip ─────────────────────────────────────── */
@media (min-width: 480px) {
    .wb-listing-row,
    .wb-listing-head { grid-template-columns: minmax(0, 1fr) 50px 96px 80px; }
    .wb-listing-row__area,
    .wb-listing-head__cell--area { display: inline-block; }
}

/* ── Breakpoint 2: reveal Saves ─────────────────────────────────────────── */
@media (min-width: 720px) {
    .wb-listing-row,
    .wb-listing-head { grid-template-columns: minmax(0, 1fr) 50px 96px 80px 60px; }
    .wb-listing-row__metric--saves { display: inline-flex; }
    .wb-listing-head__cell--saves  { display: inline-block; }
}

/* ── Breakpoint 3: reveal Views + Last viewed ───────────────────────────── */
@media (min-width: 960px) {
    .wb-listing-row,
    .wb-listing-head { grid-template-columns: minmax(0, 1fr) 50px 96px 80px 56px 60px 84px; }
    .wb-listing-row__metric--views,
    .wb-listing-row__last          { display: inline-flex; }
    .wb-listing-head__cell--views,
    .wb-listing-head__cell--last   { display: inline-block; }
}

/* ── Property alert notifications (dashboard) ──────────────────────────────────
   CR: fysh-wb-alert-panel-2026-08-17
   These panels were built with inline style="" attributes, which the site CSP
   (style-src 'self', no 'unsafe-inline') strips — so the panel rendered
   unstyled. Styling is class-based here to restore the site format. */
.wb-alertn { margin-bottom: 16px; }

.wb-alertn__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--wb-border);
}
.wb-alertn__head-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wb-alertn__head-title i { font-size: 16px; color: var(--wb-gold); flex-shrink: 0; }
.wb-alertn__head-title span { font-size: 14px; font-weight: 600; color: var(--wb-navy); }
.wb-alertn__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.wb-alertn__actions form { margin: 0; }

.wb-alertn__list { padding: 12px 20px; }
.wb-alertn__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--wb-border-lt);
}
.wb-alertn__row:last-child { border-bottom: none; }
.wb-alertn__info { min-width: 0; }
.wb-alertn__title {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--wb-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wb-alertn__title a { color: var(--wb-navy); text-decoration: none; }
.wb-alertn__title a:hover { text-decoration: underline; }
.wb-alertn__meta { margin: 0; font-size: 11.5px; color: var(--wb-muted); }
.wb-alertn__price {
    flex-shrink: 0;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: var(--wb-gold);
}
.wb-alertn__badge {
    font-size: 10px;
    background: #FAEEDA;
    color: #633806;
    border-radius: 4px;
    padding: 1px 6px;
    vertical-align: middle;
}

/* Simpler note variants — active alerts / set-up prompt */
.wb-alertn-note { margin-bottom: 16px; padding: 16px 20px; }
.wb-alertn-note__inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wb-alertn-note__inner i { font-size: 16px; flex-shrink: 0; }
.wb-alertn-note__inner i.is-gold  { color: var(--wb-gold); }
.wb-alertn-note__inner i.is-muted { color: var(--wb-muted); }
.wb-alertn-note__text { font-size: 13px; color: var(--wb-muted); }
.wb-alertn-note__link {
    font-size: 12px;
    color: var(--wb-blue);
    white-space: nowrap;
    text-decoration: none;
}
.wb-alertn-note__link:hover { text-decoration: underline; }

/* ── Admin broadcast announcement (dashboard, all roles) ───────────────────────
   CR: fysh-broadcast-2026-08-17 */
.wb-broadcast { margin-bottom: 16px; border-left: 3px solid var(--wb-gold); }
.wb-broadcast__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px 10px;
}
.wb-broadcast__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wb-broadcast__title i { font-size: 17px; color: var(--wb-gold); flex-shrink: 0; }
.wb-broadcast__title span { font-size: 14px; font-weight: 700; color: var(--wb-navy); }
.wb-broadcast__form { margin: 0; flex-shrink: 0; }
.wb-broadcast__body { padding: 0 20px 12px; font-size: 13.5px; line-height: 1.65; color: #374151; }
.wb-broadcast__meta { padding: 0 20px 14px; font-size: 11.5px; color: var(--wb-muted); }

/* =============================================================================
   FYSH — Buyer-intent gate on the EOI page (workbench/eoi.php)
   CR: fysh-buyer-intent-2026-08-26
============================================================================= */
.eoi-intent { margin: 8px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.eoi-intent__badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
    border: 1px solid transparent;
}
.eoi-intent__badge .ti { font-size: 14px; }
.eoi-intent__badge--ok   { background: #E7F5EC; color: #1B6B3A; border-color: #B7E0C6; }
.eoi-intent__badge--wait { background: #FFF4E1; color: #8B5E00; border-color: #F1D79B; }
.eoi-intent__answers {
    list-style: none; margin: 6px 0 0; padding: 10px 12px; width: 100%;
    background: var(--wb-content-bg, #EDF2F8); border: 1px solid var(--wb-border, #E2E7EC);
    border-radius: 8px; display: grid; gap: 6px;
}
.eoi-intent__answers li {
    display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
    font-size: 12px;
}
.eoi-intent__answers li span   { color: var(--wb-muted, #6B7A8D); }
.eoi-intent__answers li strong { color: var(--wb-navy, #0F2340); text-align: right; }

/* Vendor link box */
.bi-linkbox { margin-bottom: 16px; }
.bi-linkrow { display: flex; gap: 8px; align-items: center; }
.bi-link-input { flex: 1; font-family: 'Courier New', monospace; font-size: 12.5px; }
.bi-copy { flex-shrink: 0; }
.bi-linknote { font-size: 12px; color: var(--wb-muted, #6B7A8D); margin: 8px 0 0; line-height: 1.5; }

/* =============================================================================
   FYSH — Buyer-intent invitation prompt (buyer dashboard)
   CR: fysh-buyer-intent-inapp-2026-08-27
============================================================================= */
.wb-intent-invite {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; margin-bottom: 14px;
    border-left: 3px solid var(--wb-gold, #C9A84C);
    background: linear-gradient(0deg, rgba(201,168,76,0.06), rgba(201,168,76,0.06)), #fff;
}
.wb-intent-invite__icon {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(201,168,76,0.15); color: var(--wb-gold, #C9A84C); font-size: 20px;
}
.wb-intent-invite__main { flex: 1; min-width: 0; }
.wb-intent-invite__title { font-size: 14px; font-weight: 700; color: var(--wb-navy, #0F2340); }
.wb-intent-invite__body { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--wb-muted, #6B7A8D); }
.wb-intent-invite__cta { flex-shrink: 0; }
@media (max-width: 560px) {
    .wb-intent-invite { flex-wrap: wrap; }
    .wb-intent-invite__cta { width: 100%; text-align: center; }
}
