/* =============================================================================
   FYSH — Vendor workbench stylesheet
   CR: fysh-phase3-2026-06-22
   Loaded on vendor-only workbench pages alongside workbench.css.
   Mobile-first. FYSH brand colours hardcoded.
============================================================================= */

/* ── Property card grid ──────────────────────────────────────────────────── */
.prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.prop-card {
    background: #fff;
    border: 0.5px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.prop-card__photo {
    height: 170px;
    background: #EDF2F8;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prop-card__photo img {
    width: 100%; height: 100%; object-fit: cover;
}

.prop-card__photo-empty {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; color: #D1D5DB;
}
.prop-card__photo-empty i { font-size: 36px; }
.prop-card__photo-empty span { font-size: 11px; color: #9BA8B4; }

.prop-card__status {
    position: absolute; top: 10px; left: 10px;
}

/* Featured badge — top right so it clears the status badge.
   is-live: currently in its slot. is-soon: booked for a future slot.
   CR: fysh-featured-badge-2026-10-03 */
.prop-card__featured {
    position: absolute; top: 10px; right: 10px;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 11px; font-weight: 700; line-height: 1;
    background: var(--gold, #C9A84C); color: var(--navy, #0F2340);
    box-shadow: 0 1px 3px rgba(15, 35, 64, .18);
}
.prop-card__featured i { font-size: 13px; }
.prop-card__featured.is-soon {
    background: #FBF1DE;
    color: #9A7B16;
    border: 1px solid var(--gold, #C9A84C);
}

.prop-card__body { padding: 12px 14px; flex: 1; }

.prop-card__title {
    font-size: 14px; font-weight: 500;
    color: #0F2340; margin: 0 0 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.prop-card__meta {
    font-size: 11px; color: #6B7A8D; margin-bottom: 8px;
    display: flex; gap: 10px; flex-wrap: wrap;
}

.prop-card__price {
    font-size: 16px; font-weight: 500; color: #0F2340;
    margin-bottom: 6px;
}

.prop-card__stats {
    font-size: 11px; color: #9BA8B4;
    display: flex; gap: 12px;
}

.prop-card__actions {
    padding: 10px 14px;
    border-top: 0.5px solid #EDF2F8;
    display: flex; gap: 8px; flex-wrap: wrap;
}

/* ── Status filter tabs ──────────────────────────────────────────────────── */
.status-tabs {
    display: flex; gap: 4px; flex-wrap: wrap;
    margin-bottom: 16px;
}
.status-tab {
    font-size: 12px; font-weight: 500;
    padding: 6px 14px; border-radius: 20px;
    text-decoration: none; color: #6B7A8D;
    background: #fff; border: 1px solid #E2E8F0;
    transition: all 0.14s;
}
.status-tab:hover { border-color: #C9A84C; color: #0F2340; }
.status-tab.active { background: #0F2340; color: #fff; border-color: #0F2340; }
.status-tab__count {
    font-size: 10px; opacity: 0.7;
    margin-left: 4px;
}

/* ── Property form ───────────────────────────────────────────────────────── */
.prop-form { max-width: 760px; }

.prop-form-section {
    background: #fff; border: 0.5px solid #E2E8F0;
    border-radius: 4px; overflow: hidden; margin-bottom: 16px;
    max-width: 760px; /* CR: fysh-listing-width-2026-07-16 — matches prop-form max-width */
}
.prop-form-section:last-child { margin-bottom: 0; }

/* Locked listing: content is read only once a buyer has engaged.
   CR: fysh-listing-gates-2026-09-26 */
.prop-form.is-locked,
.prop-form-section.is-locked {
    opacity: 0.55;
    pointer-events: none;
    user-select: none;
}

.prop-form-section__header {
    padding: 12px 20px; border-bottom: 1px solid #E2E8F0;
}
.prop-form-section__title { font-size: 14px; font-weight: 500; color: #0F2340; margin: 0; }
.prop-form-section__sub   { font-size: 12px; color: #6B7A8D; margin: 2px 0 0; }

.prop-form-section__body { padding: 20px; }

/* Two-column grid for specs */
.prop-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

/* Price input with £ prefix */
.price-wrap {
    position: relative;
}
.price-wrap::before {
    content: '£'; position: absolute;
    left: 12px; top: 50%; transform: translateY(-50%);
    font-size: 14px; color: #6B7A8D; pointer-events: none;
}
.price-wrap input { padding-left: 26px; }

/* Features checkbox grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}
.feature-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #0F2340; cursor: pointer;
    padding: 8px 10px; border-radius: 6px;
    border: 1px solid #E2E8F0; user-select: none;
    transition: border-color 0.13s;
}
.feature-item input { accent-color: #1E5BA8; margin: 0; flex-shrink: 0; }
.feature-item:has(input:checked) { border-color: #1E5BA8; background: #F0F5FC; }

/* Photo upload zone */
.photo-drop-zone {
    border: 2px dashed #E2E8F0; border-radius: 8px;
    padding: 28px; text-align: center;
    transition: border-color 0.14s;
    cursor: pointer;
}
.photo-drop-zone:hover { border-color: #C9A84C; }
.photo-drop-zone i { font-size: 32px; color: #D1D5DB; display: block; margin-bottom: 8px; }
.photo-drop-zone p  { font-size: 13px; color: #6B7A8D; margin: 0 0 10px; }

/* Photo thumbnails grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px; margin-top: 14px;
}
.photo-thumb {
    position: relative; border-radius: 8px; overflow: hidden;
    border: 0.5px solid #E2E8F0;
}
.photo-thumb img { width: 100%; height: 100px; object-fit: cover; display: block; }
.photo-thumb__actions {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(15,35,64,0.82);
    padding: 6px; display: flex; gap: 4px; justify-content: center;
}
.photo-thumb__btn {
    font-size: 11px; font-weight: 500; color: #fff;
    background: none; border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px; padding: 3px 8px; cursor: pointer;
    font-family: var(--font-body);
}
.photo-thumb__btn:hover { background: rgba(201,168,76,0.35); }
.photo-thumb__cover-badge {
    position: absolute; top: 6px; left: 6px;
    background: #C9A84C; color: #0F2340;
    font-size: 9px; font-weight: 500;
    padding: 2px 6px; border-radius: 20px;
}

/* ── EOI inbox ────────────────────────────────────────────────────────────── */
.eoi-row {
    padding: 14px 20px;
    border-bottom: 0.5px solid #EDF2F8;
    display: flex; align-items: flex-start; gap: 14px;
}
.eoi-row:last-child { border-bottom: none; }

.eoi-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #E6F1FB; color: #0C447C;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 500; flex-shrink: 0;
}

.eoi-main { flex: 1; min-width: 0; }
.eoi-property { font-size: 13px; font-weight: 500; color: #0F2340; }
.eoi-meta     { font-size: 11px; color: #6B7A8D; margin-top: 2px; }

.eoi-message-box {
    background: #EDF2F8; border-radius: 6px;
    padding: 10px 12px; margin-top: 8px;
    font-size: 13px; color: #0F2340; line-height: 1.5;
}

.eoi-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.eoi-cost-note {
    font-size: 11px; color: #9BA8B4; margin-top: 4px;
}

/* EOI status tabs */
.eoi-status-tabs { display: flex; gap: 0; margin-bottom: 0; border-bottom: 1px solid #E2E8F0; }
.eoi-status-tab {
    padding: 10px 18px; font-size: 13px; font-weight: 500;
    color: #6B7A8D; text-decoration: none; border-bottom: 2px solid transparent;
    transition: color 0.13s, border-color 0.13s;
}
.eoi-status-tab:hover { color: #0F2340; }
.eoi-status-tab.active { color: #0F2340; border-bottom-color: #C9A84C; }
.eoi-count-pill {
    font-size: 10px; background: #FAEEDA; color: #633806;
    padding: 1px 6px; border-radius: 20px; margin-left: 5px;
}

/* ── Credits page ────────────────────────────────────────────────────────── */
.credit-hero {
    background: #0F2340; border-radius: 10px;
    padding: 28px 24px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 20px;
}
.credit-hero__number {
    font-size: 56px; font-weight: 500; color: #C9A84C;
    line-height: 1; font-family: var(--font-display);
}
.credit-hero__label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.credit-hero__sub   { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* CR: fysh-credit-packs-stack-2026-09-04 — full-width cards stacked in a column */
.credit-packs {
    display: flex;
    flex-direction: column;
    gap: 12px; margin-bottom: 16px;
}
.credit-pack {
    background: #fff; border: 0.5px solid #E2E8F0;
    border-radius: 10px; padding: 18px 16px;
    text-align: center;
    transition: border-color 0.13s;
}
.credit-pack:hover { border-color: #C9A84C; }
.credit-pack--featured { border: 2px solid #C9A84C; }
.credit-pack__amount   { font-size: 28px; font-weight: 500; color: #0F2340; margin: 0 0 4px; }
.credit-pack__label    { font-size: 11px; color: #6B7A8D; margin-bottom: 10px; }
.credit-pack__price    { font-size: 18px; font-weight: 500; color: #0F2340; margin-bottom: 12px; }
.credit-pack__note     { font-size: 10px; color: #9BA8B4; }
.credit-pack__badge    {
    font-size: 10px; font-weight: 500;
    background: #EAF3DE; color: #3B6D11;
    padding: 2px 8px; border-radius: 20px;
    display: inline-block; margin-bottom: 8px;
}

/* Credit transaction table */
.credit-tx-row {
    display: grid;
    grid-template-columns: 1fr 100px 80px;
    padding: 8px 20px;
    border-bottom: 0.5px solid #EDF2F8;
    align-items: center; font-size: 12.5px;
}
.credit-tx-row:last-child { border-bottom: none; }
.credit-tx-row.header { font-size: 10px; font-weight: 500; color: #6B7A8D; background: #EDF2F8; }
.credit-amount--pos { color: #3B6D11; font-weight: 500; }
.credit-amount--neg { color: #A32D2D; font-weight: 500; }

/* ── Form helpers in vendor pages ────────────────────────────────────────── */
.form-row-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }

/* Three fields on one row (listing type, property type, year built).
   CR: fysh-type-year-row-2026-10-11 */
.form-row-3 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    align-items: start;
}
@media (max-width: 860px) { .form-row-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .form-row-3 { grid-template-columns: 1fr; } }

.type-radios {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.type-radio {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 6px;
    border: 1.5px solid #E2E8F0; cursor: pointer;
    font-size: 13px; font-weight: 500; color: #0F2340;
    transition: border-color 0.13s;
}
.type-radio input { position: absolute; opacity: 0; pointer-events: none; }
.type-radio:has(input:checked) { border-color: #1E5BA8; background: #F0F5FC; }

.listing-form-actions {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap; margin-top: 8px;
}
/* Groups the primary/secondary submit buttons; replaces the CSP-stripped
   inline flex on the button wrapper. CR: fysh-toggle-consistency-2026-09-26 */
.listing-form-actions__buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Slide toggle (postcode mask + any future toggles) ───────────────────── */
.slide-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: #0F2340;
    line-height: 1.4;
}

.slide-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.slide-toggle__track {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 40px;
    height: 22px;
    background: #CBD5E0;
    border-radius: 11px;
    transition: background 0.2s ease;
}

.slide-toggle input:checked + .slide-toggle__track {
    background: #1E5BA8;
}

.slide-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.slide-toggle input:checked + .slide-toggle__track .slide-toggle__thumb {
    transform: translateX(18px);
}

.slide-toggle input:focus-visible + .slide-toggle__track {
    outline: 2px solid #1E5BA8;
    outline-offset: 2px;
}

.slide-toggle__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.slide-toggle__label { font-weight: 500; }

.slide-toggle__hint {
    font-size: 11px;
    color: #6B7A8D;
    font-weight: 400;
}

/* ── EOI conclude form (eoi.php opened tab) ─────────────────────────────── */
/* CR: fysh-eoi-conclude-2026-06-28 */
.eoi-conclude {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 0.5px solid #EDF2F8;
}
.eoi-conclude form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.eoi-conclude__check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6B7A8D;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}
.eoi-conclude__check input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #1E5BA8;
    flex-shrink: 0;
    cursor: pointer;
}
.eoi-conclude__btn {
    flex-shrink: 0;
    border-color: #C9A84C !important;
    color: #7A5700 !important;
}
.eoi-conclude__btn:hover {
    background: rgba(201,168,76,0.1) !important;
}

/* ── Next-steps sale-state card ─────────────────────────────────────────── */
/* CR: fysh-nextstep-2026-06-28 */
/* Vendor-only: appears when a bid concludes but listing is still active */

.wb-nextstep {
    padding: 0;
    margin-bottom: 1rem;
    overflow: hidden;
}

/* Navy header band */
.wb-nextstep__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: #0F2340;
    padding: 0.9rem 1.25rem;
    color: #fff;
}

.wb-nextstep__header-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex: 1;
    min-width: 0;
}

.wb-nextstep__header-left > .ti {
    font-size: 1.25rem;
    color: #C9A84C;
    flex-shrink: 0;
}

.wb-nextstep__header-left strong {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    font-family: var(--font-display);
    letter-spacing: 0.01em;
}

.wb-nextstep__prop {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wb-nextstep__agreed {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.wb-nextstep__agreed-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
}

.wb-nextstep__agreed-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: #C9A84C;
    font-family: var(--font-display);
    line-height: 1.1;
}

.wb-nextstep__agreed-ago {
    font-size: 9px;
    color: rgba(255,255,255,0.35);
}

/* Card body */
.wb-nextstep__body {
    padding: 1rem 1.25rem 1.25rem;
}

.wb-nextstep__note {
    font-size: 12px;
    color: #6B7A8D;
    line-height: 1.6;
    margin: 0 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 0.5px solid #EDF2F8;
}

/* Three option rows */
.wb-nextstep__options {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.wb-nextstep__option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.wb-nextstep__option form {
    flex-shrink: 0;
}

.wb-nextstep__option p {
    font-size: 11.5px;
    color: #6B7A8D;
    margin: 0;
    line-height: 1.5;
    align-self: center;
}

/* Primary option button */
.wb-nextstep__option--primary .wb-btn {
    background: #0F2340;
    color: #fff;
    border-color: #0F2340;
}

/* Caution option — de-emphasised */
.wb-nextstep__option--caution .wb-btn {
    color: #9BA8B4;
    border-color: #E2E8F0;
}

.wb-nextstep__option--caution p {
    color: #9BA8B4;
    font-style: italic;
}

/* Session link at foot of card */
.wb-nextstep__session-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 500;
    color: #1E5BA8;
    text-decoration: none;
    border-top: 0.5px solid #EDF2F8;
    padding-top: 0.85rem;
    width: 100%;
    margin-top: 0.1rem;
}

.wb-nextstep__session-link:hover { text-decoration: underline; }
.wb-nextstep__session-link .ti   { font-size: 13px; }

/* Mobile: stack option buttons above text */
@media (max-width: 480px) {
    .wb-nextstep__option       { flex-direction: column; }
    .wb-nextstep__option form  { width: 100%; }
    .wb-nextstep__option .wb-btn { width: 100%; justify-content: center; }
    .wb-nextstep__header       { flex-direction: column; align-items: flex-start; }
    .wb-nextstep__agreed       { align-items: flex-start; }
}


/* ── CR: fysh-listing-edit-consistency-2026-07-16 ──────────────────────── */

/* Status tabs inside wb-card need equal inset padding */
.wb-card > .status-tabs {
    padding: 12px 20px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

/* Slide toggle block variant: background pill, full-width, like wb-switch */
.slide-toggle--block {
    display: flex;
    padding: 12px 14px;
    background: #EEF2F8;
    border: 1.5px solid transparent;
    border-radius: 8px;
    transition: border-color .15s;
    margin-top: 8px;
}
.slide-toggle--block:hover { border-color: #E2E8F0; }

/* le-action-bar declaration panel: remove inline styles, use class */
.le-action-bar__declaration {
    padding: 12px 20px;
    background: #EEF2F8;
    border-top: 1px solid #E2E8F0;
}
.le-action-bar__declaration .wb-switch {
    margin-bottom: 0;
    background: transparent;
    border-color: transparent;
    padding: 0;
}
.le-action-bar__declaration .wb-switch:hover { border-color: transparent; }

/* ── CR: fysh-listing-edit-save-behaviour-2026-07-18 ──────────────────────
   Additions for the corrected listing-edit page:
     - .slide-toggle--locked  — visual state for a permanently-confirmed toggle
     - .slide-toggle__meta    — small "Confirmed <date>" line under the hint
     - .wb-help-note          — informational box shown when the Status
                                transition group is hidden (draft/withdrawn) */
.slide-toggle--locked {
    cursor: default;
    opacity: 0.92;
}
.slide-toggle--locked .slide-toggle__track {
    box-shadow: inset 0 0 0 1px rgba(30, 91, 168, 0.35);
}
.slide-toggle--locked .slide-toggle__label::after {
    content: '·  Confirmed';
    margin-left: 6px;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1E5BA8;
    font-weight: 600;
}
.slide-toggle__meta {
    display: inline-block;
    margin-top: 4px;
    font-size: 10.5px;
    color: #9BA8B4;
    letter-spacing: 0.02em;
}

.wb-help-note {
    padding: 12px 14px;
    background: #EEF2F8;
    border: 1px solid #E4E1D8;
    border-left: 3px solid #C9A84C;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.55;
    color: #4A4A47;
}
.wb-help-note strong { color: #0F2340; }
.wb-help-note em     { color: #1E5BA8; font-style: normal; font-weight: 500; }

/* ── CR: fysh-epc-mobile-stack-restore-2026-07-18 ─────────────────────────
   Restore the field-span helper that was lost in an earlier regression.
   .wb-field--full makes a field span the full prop-form-grid row (used for
   EPC reference and description). Media query stacks the whole grid on
   narrow viewports so the EPC row wraps cleanly inside the container. */
.wb-field--full { grid-column: 1 / -1; }

/* ── Label markers ── CR: fysh-epc-declutter-2026-09-26 ───────────────────
   Shared, CSP-safe replacements for the per-label inline colour styles that
   style-src 'self' strips. .wb-req marks a required field, .wb-opt tags an
   optional one. Reusable across every prop-form label. */
.wb-req { color: #A32D2D; margin-left: 2px; }
.wb-opt { color: #9BA8B4; font-weight: 400; }

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

/* ── School catchment radius control ── CR: fysh-school-catchment-2026-09-23 ──
   Inline styles are dropped by the site CSP (style-src 'self'), so the slider
   width and accent live here. */
.sc-field .sc-range {
    width: 100%;
    max-width: 360px;
    display: block;
    accent-color: #1E5BA8;
    cursor: pointer;
}
.sc-radius-out {
    color: #1E5BA8;
    font-weight: 600;
}

/* =============================================================================
   EPC lookup verdict panel (listing edit) — CR: fysh-epc-exempt-2026-09-28
   Uses form typography and state tokens so it reads as part of the form.
============================================================================= */
.epc-verdict {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 4px;
    border-left: 4px solid var(--border-strong);
    background: var(--surface-2);
    font-family: var(--font-body);
}
.epc-verdict__title {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--slate);
}
.epc-verdict__detail {
    margin: 4px 0 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--slate);
}
.epc-verdict__dates {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}
.epc-verdict--success { background: var(--success-bg); border-left-color: var(--success); }
.epc-verdict--success .epc-verdict__title { color: var(--success); }
.epc-verdict--warning { background: var(--warning-bg); border-left-color: var(--warning); }
.epc-verdict--warning .epc-verdict__title { color: var(--warning); }
.epc-verdict--danger  { background: var(--danger-bg);  border-left-color: var(--danger); }
.epc-verdict--danger .epc-verdict__title  { color: var(--danger); }
.epc-verdict--info    { background: var(--surface-2);  border-left-color: var(--border-strong); }
.epc-verdict--info .epc-verdict__title    { color: var(--slate); }

/* ── Recent listings thumbnail (dashboard) ── CR: fysh-wb-listing-thumb-2026-09-28
   A small cover image in the Recent listings row title cell, to help the vendor
   identify each property at a glance. Sits inside the existing title column, so
   the row grid template is unchanged. */
.wb-listing-row__title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wb-listing-row__thumb {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    object-fit: cover;
    background: var(--surface-2, #EEF2F8);
    border: 1px solid var(--border, #E2E8F0);
}
.wb-listing-row__titletext {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================================
   FYSH — School catchment slider (folded in from standalone file)
   CR: fysh-school-slider-2026-10-10
   Shared global: loaded on every vendor page, so the listing builder (create,
   edit) and the public demo all pick up the styling from here. Colours use the
   workbench tokens; 4px radius; mobile first.
============================================================================ */
.sc-field { max-width: 520px; }

.sc-radius-out {
    display: inline-block;
    min-width: 3.5ch;
    padding: 1px 8px;
    margin: 0 2px;
    border-radius: 4px;
    background: var(--wb-blue, #1E5BA8);
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-align: center;
}

.sc-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    margin: 14px 0 6px;
    border-radius: 4px;
    background: var(--wb-border, #E2E8F0);
    outline: none;
    cursor: pointer;
}

.sc-range::-webkit-slider-runnable-track { height: 6px; border-radius: 4px; background: transparent; }
.sc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; height: 20px; margin-top: -7px;
    border-radius: 50%;
    background: var(--wb-blue, #1E5BA8);
    border: 2px solid #FFFFFF;
    box-shadow: 0 1px 3px rgba(15, 35, 64, 0.30);
    cursor: pointer;
}
.sc-range::-moz-range-track { height: 6px; border-radius: 4px; background: var(--wb-border, #E2E8F0); }
.sc-range::-moz-range-progress { height: 6px; border-radius: 4px; background: var(--wb-blue, #1E5BA8); }
.sc-range::-moz-range-thumb {
    width: 20px; height: 20px;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    background: var(--wb-blue, #1E5BA8);
    box-shadow: 0 1px 3px rgba(15, 35, 64, 0.30);
    cursor: pointer;
}
.sc-range:focus-visible { box-shadow: 0 0 0 3px rgba(30, 91, 168, 0.35); }
.sc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(30, 91, 168, 0.35); }
.sc-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px rgba(30, 91, 168, 0.35); }

/* ============================================================================
   FYSH — Council tax band info panel (shared global)
   CR: fysh-ctb-shared-2026-10-11
   Ported from vendor-edit-statusbar-append.css so the builder (create, edit)
   and the public demo share one definition. Namespace ctb-.
============================================================================ */
/* ── Council Tax Band info panel ─────────────────────────────────────────────
   CR: fysh-ctb-tooltip-2026-07-13
   Namespace: ctb-
   ─────────────────────────────────────────────────────────────────────────── */

/* Label row: label + trigger inline */
.ctb-label-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    position: relative; /* Panel anchors to this */
}

.ctb-label-row .wb-label { margin-bottom: 0; }

/* Info trigger button */
.ctb-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--wb-muted);
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}

.ctb-trigger:hover,
.ctb-trigger:focus-visible {
    color: var(--wb-navy);
    background: rgba(15,35,64,0.07);
    outline: none;
}

.ctb-trigger[aria-expanded="true"] {
    color: var(--wb-navy);
}

/* Panel — position:fixed breaks out of any overflow:hidden ancestor
   (prop-form-section uses overflow:hidden for border-radius clipping).
   top/left are set by JS on each open, based on trigger.getBoundingClientRect(). */
.ctb-panel {
    display: none;
    position: fixed;
    z-index: 200;
    width: 360px;
    max-width: calc(100vw - 16px);
    background: #fff;
    border: 1px solid var(--wb-border);
    border-top: 3px solid var(--wb-navy);
    border-radius: 0 6px 6px 6px;
    box-shadow: 0 8px 28px rgba(15,35,64,0.15), 0 2px 6px rgba(15,35,64,0.07);
    overflow: hidden;
    font-family: var(--wb-body);
}

.ctb-panel--open {
    display: block;
    animation: ctb-enter 0.14s ease;
}

@keyframes ctb-enter {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Panel header */
.ctb-panel__head {
    background: var(--wb-navy);
    padding: 10px 14px 9px;
}

.ctb-panel__badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wb-gold);
    background: rgba(201,168,76,0.18);
    border-radius: 4px;
    padding: 2px 7px;
    margin-bottom: 5px;
}

.ctb-panel__title {
    font-family: var(--wb-display);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px;
    line-height: 1.2;
}

.ctb-panel__sub {
    font-size: 10.5px;
    color: rgba(255,255,255,0.58);
    margin: 0;
    line-height: 1.4;
}

.ctb-panel__sub strong { color: rgba(255,255,255,0.85); font-weight: 600; }

/* Band table */
.ctb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    line-height: 1.35;
}

.ctb-table thead th {
    background: #EEF2F8;
    color: var(--wb-muted);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 5px 8px 4px;
    text-align: left;
    border-bottom: 1px solid var(--wb-border);
}

.ctb-table tbody tr:nth-child(even) { background: #FAFAFA; }
.ctb-table tbody tr:hover           { background: #F0F5FC; transition: background 0.1s; }

.ctb-table td {
    padding: 4px 8px;
    border-bottom: 1px solid #EDF2F8;
    color: var(--wb-navy);
}

.ctb-table tr:last-child td { border-bottom: none; }

/* Band D — highlighted as benchmark */
.ctb-row--d { background: #FEFCE8 !important; }
.ctb-row--d td { font-weight: 500; }

/* Band letter cells */
.ctb-band {
    width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    font-family: var(--wb-display);
}

.ctb-band--a { color: #166534; }
.ctb-band--b { color: #15803D; }
.ctb-band--c { color: #854D0E; }
.ctb-band--d { color: #B45309; }
.ctb-band--e { color: #C2410C; }
.ctb-band--f { color: #DC2626; }
.ctb-band--g { color: #B91C1C; }
.ctb-band--h { color: #7F1D1D; }

/* Rate + average columns */
.ctb-rate { color: var(--wb-muted); font-size: 11px; white-space: nowrap; }
.ctb-avg  { color: var(--wb-navy); font-weight: 600; font-size: 11px; white-space: nowrap; }

/* Footer */
.ctb-panel__footer {
    background: #EEF2F8;
    border-top: 1px solid var(--wb-border);
    padding: 7px 14px 9px;
    font-size: 10px;
    color: var(--wb-muted);
    line-height: 1.5;
}

.ctb-panel__footer p { margin: 0 0 5px; }

.ctb-panel__link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--wb-blue);
    text-decoration: none;
    transition: opacity 0.15s;
}

.ctb-panel__link:hover { text-decoration: underline; }

.ctb-panel__link i { font-size: 10px; }

/* Mobile — max-width already handles viewport constraint; JS clamps left edge */
