@import '_content/AllAboutLocal.Shared.Web/AllAboutLocal.Shared.Web.b1dv4wfma4.bundle.scp.css';

/* /Components/HomeContentEditor.razor.rz.scp.css */
/* Member app home editor (ConnectLocal admin kit). Child components are styled through ::deep. */
.vh[b-0lt80f6iq2] {
    --vh-primary: var(--cl-primary, #222266);
    --vh-primary-rgb: var(--cl-primary-rgb, 34, 34, 102);
    --vh-accent: var(--cl-accent, #ff9933);
    --vh-accent-ink: #8a4a00;
    --vh-accent-soft: rgba(255, 153, 51, 0.14);
    --vh-heading: var(--cl-heading, #111133);
    --vh-fg2: var(--cl-fg2, #5d5d73);
    --vh-fg3: var(--cl-fg3, #8888aa);
    --vh-surface: var(--cl-surface, #fff);
    --vh-surface-2: var(--cl-bg-secondary, #f0f0f3);
    --vh-border: var(--cl-border, #e4e4ee);
    --vh-border-strong: var(--cl-border-strong, #c9cadb);
    --vh-danger: var(--cl-danger, #ee3344);
}

.vh-count[b-0lt80f6iq2] {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(var(--vh-primary-rgb), 0.08);
    color: var(--vh-primary);
}

.vh-layout[b-0lt80f6iq2] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
    align-items: start;
}

.vh-editor[b-0lt80f6iq2] {
    border: 1px solid var(--vh-border);
    border-radius: 14px;
    background: var(--vh-surface);
    min-width: 0;
}

/* Section tabs */
.vh-tabs[b-0lt80f6iq2] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 20px 0;
}

.vh-tab[b-0lt80f6iq2] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--vh-border);
    border-radius: 999px;
    background: var(--vh-surface);
    color: var(--vh-heading);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.vh-tab:hover[b-0lt80f6iq2] { border-color: var(--vh-primary); }

.vh-tab.is-on[b-0lt80f6iq2] {
    background: var(--vh-primary);
    border-color: var(--vh-primary);
    color: #fff;
}

.vh-tab-count[b-0lt80f6iq2] {
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: var(--vh-surface-2);
    color: var(--vh-fg2);
}

.vh-tab.is-on .vh-tab-count[b-0lt80f6iq2] { background: rgba(255, 255, 255, 0.2); color: inherit; }

.vh-tab-dot[b-0lt80f6iq2] { width: 7px; height: 7px; border-radius: 50%; background: var(--vh-accent); }

.vh-preview-toggle[b-0lt80f6iq2] { display: none; margin-left: auto; }

.vh-panel[b-0lt80f6iq2] {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 16px 20px 18px;
}

.vh-hint[b-0lt80f6iq2] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--vh-surface-2);
    color: var(--vh-fg2);
    font-size: 12.5px;
}

.vh-hint-warn[b-0lt80f6iq2] { background: var(--vh-accent-soft); color: var(--vh-accent-ink); }
.vh-hint-warn .btn[b-0lt80f6iq2] { margin-left: auto; flex-shrink: 0; }

.vh-subtle[b-0lt80f6iq2] { margin: 10px 0 0; font-size: 12px; color: var(--vh-fg3); }
.vh-center[b-0lt80f6iq2] { text-align: center; }

/* Shared slot pieces */
.vh[b-0lt80f6iq2]  .vh-pos {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--vh-accent);
    color: #000;
    font-size: 12px;
    font-weight: 700;
}

.vh[b-0lt80f6iq2]  .vh-tools {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}

.vh[b-0lt80f6iq2]  .vh-hslot:hover .vh-tools,
.vh[b-0lt80f6iq2]  .vh-hslot:focus-within .vh-tools,
.vh[b-0lt80f6iq2]  .vh-tile:hover .vh-tools,
.vh[b-0lt80f6iq2]  .vh-tile:focus-within .vh-tools { opacity: 1; }

.vh[b-0lt80f6iq2]  .vh-ibtn {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: #111133;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.vh[b-0lt80f6iq2]  .vh-ibtn:hover:not(:disabled) { background: var(--vh-accent); color: #000; }
.vh[b-0lt80f6iq2]  .vh-ibtn:disabled { opacity: 0.35; cursor: default; }
.vh[b-0lt80f6iq2]  .vh-ibtn:focus-visible { outline: 2px solid var(--vh-accent); outline-offset: 1px; }

.vh[b-0lt80f6iq2]  .vh-noimg {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 10px;
    text-align: center;
    font-size: 11.5px;
    color: var(--vh-fg3);
}

.vh[b-0lt80f6iq2]  .vh-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    width: 100%;
    border: 1.5px dashed var(--vh-border-strong);
    background: transparent;
    color: var(--vh-fg2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.vh[b-0lt80f6iq2]  .vh-empty small { font-size: 11.5px; font-weight: 400; color: var(--vh-fg3); }
.vh[b-0lt80f6iq2]  .vh-empty:hover:not(:disabled) { border-color: var(--vh-primary); color: var(--vh-primary); background: rgba(var(--vh-primary-rgb), 0.04); }

.vh[b-0lt80f6iq2]  .vh-plus {
    width: 34px;
    height: 34px;
    margin-bottom: 4px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(var(--vh-primary-rgb), 0.1);
    color: var(--vh-primary);
    font-size: 20px;
}

/* Hero slots */
.vh[b-0lt80f6iq2]  .vh-hero-slots {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.vh[b-0lt80f6iq2]  .vh-hslot {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: var(--vh-surface-2);
    border: 1px solid var(--vh-border);
}

.vh[b-0lt80f6iq2]  .vh-hslot.vh-empty { border: 1.5px dashed var(--vh-border-strong); background: transparent; }
.vh[b-0lt80f6iq2]  .vh-hslot.is-missing { border-color: rgba(238, 51, 68, 0.45); }

.vh[b-0lt80f6iq2]  .vh-hslot > img,
.vh[b-0lt80f6iq2]  .vh-tile-img img,
.vh[b-0lt80f6iq2]  .vh-opt-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.vh[b-0lt80f6iq2]  .vh-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    padding: 22px 10px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
    color: #fff;
    font-size: 11.5px;
}

.vh[b-0lt80f6iq2]  .vh-cap b { font-size: 13px; line-height: 1.25; }

/* Offer tiles */
.vh[b-0lt80f6iq2]  .vh-tiles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.vh[b-0lt80f6iq2]  .vh-tile {
    position: relative;
    border: 1px solid var(--vh-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--vh-surface);
    height: 100%;
}

.vh[b-0lt80f6iq2]  .vh-tile.is-missing { border-color: rgba(238, 51, 68, 0.45); }
.vh[b-0lt80f6iq2]  .vh-tile .vh-pos { width: 20px; height: 20px; font-size: 11px; }
.vh[b-0lt80f6iq2]  .vh-tile-img { display: block; aspect-ratio: 4 / 3; background: var(--vh-surface-2); }

.vh[b-0lt80f6iq2]  .vh-tile-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 6px 8px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--vh-heading);
}

.vh[b-0lt80f6iq2]  .vh-tile-add { height: 100%; min-height: 140px; border-radius: 12px; }

/* Chips and rails */
.vh-chip-head[b-0lt80f6iq2],
.vh-rail-head[b-0lt80f6iq2] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.vh-chip-head .form-control[b-0lt80f6iq2] { flex: 1; min-width: 160px; max-width: 260px; }
.vh-rail-head .form-control[b-0lt80f6iq2] { flex: 1; min-width: 180px; }

.vh-chip[b-0lt80f6iq2] {
    border: 1px solid var(--vh-border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    transition: border-color 0.15s;
}

.vh-chip.is-selected[b-0lt80f6iq2] { border-color: var(--vh-primary); box-shadow: 0 0 0 3px rgba(var(--vh-primary-rgb), 0.1); }

/* Automatic / Hand-picked segmented switch */
.vh-mode[b-0lt80f6iq2] {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--vh-border);
    border-radius: 999px;
    background: var(--vh-surface-2);
}

.vh-mode-btn[b-0lt80f6iq2] {
    padding: 5px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--vh-fg2);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.vh-mode-btn.is-on[b-0lt80f6iq2] { background: var(--vh-primary); color: #fff; }
.vh-mode-btn:focus-visible[b-0lt80f6iq2] { outline: 2px solid var(--vh-accent); outline-offset: 1px; }

.vh-rule[b-0lt80f6iq2] { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 600; color: var(--vh-heading); }
.vh-rule .form-select[b-0lt80f6iq2] { max-width: 280px; }

.vh-rail[b-0lt80f6iq2] {
    border: 1px solid var(--vh-border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.vh-link-danger[b-0lt80f6iq2] { color: var(--vh-danger); font-size: 12.5px; font-weight: 700; text-decoration: none; }

/* Save bar */
.vh-savebar[b-0lt80f6iq2] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid var(--vh-border);
    background: var(--vh-surface-2);
    border-radius: 0 0 14px 14px;
}

.vh-state[b-0lt80f6iq2] { margin-right: auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--vh-fg2); }
.vh-dot[b-0lt80f6iq2] { width: 8px; height: 8px; border-radius: 50%; background: var(--cl-success, #2f8a3a); }
.vh-dot.is-dirty[b-0lt80f6iq2] { background: var(--vh-accent); }

/* Live preview (always light: it imitates the member app) */
.vh-preview[b-0lt80f6iq2] { position: sticky; top: 16px; }

.vh[b-0lt80f6iq2]  .vh-phone {
    height: 580px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 8px solid #111133;
    border-radius: 30px;
    background: #fff;
    color: #222;
}

.vh[b-0lt80f6iq2]  .vh-phone-bar { display: flex; justify-content: space-between; padding: 10px 12px; background: #222266; color: #fff; font-size: 12px; font-weight: 700; }
.vh[b-0lt80f6iq2]  .vh-phone-scroll { flex: 1; overflow: auto; padding: 10px; display: grid; gap: 12px; align-content: start; }
.vh[b-0lt80f6iq2]  .vh-pz { border-radius: 12px; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color 0.2s; }
.vh[b-0lt80f6iq2]  .vh-pz.is-lit { outline-color: #ff9933; }
.vh[b-0lt80f6iq2]  .vh-pz-label { margin-bottom: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8888aa; }
.vh[b-0lt80f6iq2]  .vh-p-hero { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #eee; }
.vh[b-0lt80f6iq2]  .vh-p-hero img { width: 100%; height: 100%; object-fit: cover; }
.vh[b-0lt80f6iq2]  .vh-p-cap { position: absolute; left: 0; bottom: 0; padding: 6px 10px; border-radius: 0 10px 0 0; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 11px; }
.vh[b-0lt80f6iq2]  .vh-p-cap b { display: block; font-size: 12px; }
.vh[b-0lt80f6iq2]  .vh-p-dots { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.vh[b-0lt80f6iq2]  .vh-p-dots i { width: 6px; height: 6px; border-radius: 50%; background: #ddd; }
.vh[b-0lt80f6iq2]  .vh-p-dots i.is-on { background: #222266; }
.vh[b-0lt80f6iq2]  .vh-p-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vh[b-0lt80f6iq2]  .vh-p-chips span { padding: 3px 10px; border: 1px solid #222266; border-radius: 999px; color: #222266; font-size: 11px; }
.vh[b-0lt80f6iq2]  .vh-p-chips span.is-on { background: #222266; color: #fff; }
.vh[b-0lt80f6iq2]  .vh-p-chips span.is-empty { border-style: dashed; border-color: #ccc; color: #999; }
.vh[b-0lt80f6iq2]  .vh-p-rail { display: flex; gap: 8px; overflow: hidden; margin-top: 8px; }
.vh[b-0lt80f6iq2]  .vh-p-card { flex: 0 0 92px; }
.vh[b-0lt80f6iq2]  .vh-p-card div { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #eee; }
.vh[b-0lt80f6iq2]  .vh-p-card img { width: 100%; height: 100%; object-fit: cover; }
.vh[b-0lt80f6iq2]  .vh-p-card span { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 600; line-height: 1.25; color: #111133; }
.vh[b-0lt80f6iq2]  .vh-p-row { margin-bottom: 8px; }
.vh[b-0lt80f6iq2]  .vh-p-row-title { font-size: 12px; font-weight: 700; color: #111133; }
.vh[b-0lt80f6iq2]  .vh-p-muted { margin-top: 6px; padding: 10px; border: 1px dashed #ccc; border-radius: 10px; text-align: center; font-size: 11px; color: #8888aa; }

/* Picker drawer */
.vh[b-0lt80f6iq2]  .vh-scrim { position: fixed; inset: 0; z-index: 1050; background: rgba(10, 10, 30, 0.45); }

.vh[b-0lt80f6iq2]  .vh-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1051;
    width: min(560px, 100%);
    display: flex;
    flex-direction: column;
    background: var(--vh-surface);
    box-shadow: 0 16px 48px rgba(17, 17, 51, 0.18);
    animation: vh-slide-in-b-0lt80f6iq2 0.22s ease;
}

@keyframes vh-slide-in-b-0lt80f6iq2 { from { transform: translateX(100%); } to { transform: none; } }

.vh[b-0lt80f6iq2]  .vh-d-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--vh-border); }
.vh[b-0lt80f6iq2]  .vh-d-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--vh-heading); }
.vh[b-0lt80f6iq2]  .vh-d-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--vh-fg3); }
.vh[b-0lt80f6iq2]  .vh-d-close { margin-left: auto; width: 32px; height: 32px; border: 1px solid var(--vh-border); border-radius: 8px; background: var(--vh-surface); color: var(--vh-heading); font-size: 16px; }
.vh[b-0lt80f6iq2]  .vh-d-tools { display: grid; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--vh-border); }
.vh[b-0lt80f6iq2]  .vh-d-search { display: flex; gap: 8px; }
.vh[b-0lt80f6iq2]  .vh-d-search .btn { flex-shrink: 0; }
.vh[b-0lt80f6iq2]  .vh-d-note { margin: 0; font-size: 12px; color: var(--vh-accent-ink); }
.vh[b-0lt80f6iq2]  .vh-filters { display: flex; flex-wrap: wrap; gap: 6px; }

.vh[b-0lt80f6iq2]  .vh-fchip {
    padding: 4px 11px;
    border: 1px solid var(--vh-border);
    border-radius: 999px;
    background: var(--vh-surface);
    color: var(--vh-fg2);
    font-size: 12px;
    font-weight: 600;
}

.vh[b-0lt80f6iq2]  .vh-fchip.is-on { background: var(--vh-heading); border-color: var(--vh-heading); color: var(--vh-surface); }

.vh[b-0lt80f6iq2]  .vh-d-list {
    flex: 1;
    overflow: auto;
    list-style: none;
    margin: 0;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    align-content: start;
}

.vh[b-0lt80f6iq2]  .vh-opt {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    text-align: left;
    border: 1.5px solid var(--vh-border);
    border-radius: 12px;
    background: var(--vh-surface);
    cursor: pointer;
}

.vh[b-0lt80f6iq2]  .vh-opt:hover:not(:disabled) { border-color: var(--vh-primary); }
.vh[b-0lt80f6iq2]  .vh-opt.is-picked { border-color: var(--vh-primary); box-shadow: 0 0 0 3px rgba(var(--vh-primary-rgb), 0.15); }
.vh[b-0lt80f6iq2]  .vh-opt:disabled { cursor: not-allowed; }
.vh[b-0lt80f6iq2]  .vh-opt:disabled .vh-opt-img,
.vh[b-0lt80f6iq2]  .vh-opt:disabled .vh-opt-body { opacity: 0.5; }
.vh[b-0lt80f6iq2]  .vh-opt:focus-visible { outline: 2px solid var(--vh-accent); outline-offset: 1px; }
.vh[b-0lt80f6iq2]  .vh-opt-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--vh-surface-2); }
.vh[b-0lt80f6iq2]  .vh-opt-body { display: grid; padding: 8px 10px 10px; }
.vh[b-0lt80f6iq2]  .vh-opt-title { font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--vh-heading); }
.vh[b-0lt80f6iq2]  .vh-opt-meta { font-size: 11.5px; color: var(--vh-fg3); }
.vh[b-0lt80f6iq2]  .vh-opt-also { font-size: 11px; color: var(--vh-primary); }

.vh[b-0lt80f6iq2]  .vh-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.vh[b-0lt80f6iq2]  .vh-opt.is-picked .vh-check { background: var(--vh-primary); border-color: var(--vh-primary); }
.vh[b-0lt80f6iq2]  .vh-opt.is-in .vh-check { background: var(--vh-fg3); border-color: var(--vh-fg3); }
.vh[b-0lt80f6iq2]  .vh-flag { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.vh[b-0lt80f6iq2]  .vh-flag-warn { background: var(--vh-accent); color: #000; }
.vh[b-0lt80f6iq2]  .vh-flag-muted { background: rgba(0, 0, 0, 0.65); color: #fff; }
.vh[b-0lt80f6iq2]  .vh-d-none { grid-column: 1 / -1; padding: 20px; text-align: center; font-size: 12.5px; color: var(--vh-fg3); }
.vh[b-0lt80f6iq2]  .vh-d-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--vh-border); }
.vh[b-0lt80f6iq2]  .vh-d-sum { margin-right: auto; font-size: 12.5px; color: var(--vh-fg2); }

/* Narrow screens: preview behind a button, tools always visible (no hover on touch) */
@media (max-width: 1100px) {
    .vh-layout[b-0lt80f6iq2] { grid-template-columns: 1fr; }
    .vh-preview-toggle[b-0lt80f6iq2] { display: inline-flex; }
    .vh-preview[b-0lt80f6iq2] { display: none; position: static; max-width: 300px; margin: 0 auto; }
    .vh-preview.is-shown[b-0lt80f6iq2] { display: block; }
}

@media (max-width: 700px) {
    .vh[b-0lt80f6iq2]  .vh-hero-slots { grid-template-columns: 1fr; }
    .vh[b-0lt80f6iq2]  .vh-tools { opacity: 1; }
    .vh-panel[b-0lt80f6iq2], .vh-savebar[b-0lt80f6iq2] { padding-left: 14px; padding-right: 14px; }
    .vh[b-0lt80f6iq2]  .vh-d-search { flex-direction: column; }
}

@media (hover: none) {
    .vh[b-0lt80f6iq2]  .vh-tools { opacity: 1; }
}
/* /Pages/Settings.razor.rz.scp.css */
/* Your organisation / Advanced settings. Rules under .is-organisation only apply to /settings/organisation;
   the rest (form footers, field rows, brand preview, Home editor guards) is shared by both routes. */

/* ── At a glance cards ───────────────────────────────────── */
.tenant-settings-page.is-organisation[b-2iybcwi8wj]  .stats-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.tenant-settings-page.is-organisation[b-2iybcwi8wj]  .stat-card {
    gap: 12px;
    padding: 14px 16px;
}

.tenant-settings-page.is-organisation[b-2iybcwi8wj]  .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.tenant-settings-page.is-organisation[b-2iybcwi8wj]  .stat-body {
    min-width: 0;
}

.tenant-settings-page.is-organisation[b-2iybcwi8wj]  .stat-value {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Form layout ─────────────────────────────────────────── */
.tenant-settings-field[b-2iybcwi8wj] {
    display: grid;
    gap: 5px;
    min-width: 0;
    max-width: 640px;
    margin-bottom: 14px;
}

.tenant-settings-field > .form-label[b-2iybcwi8wj] {
    margin: 0;
}

.tenant-settings-pair[b-2iybcwi8wj] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 640px;
}

.tenant-settings-pair > .tenant-settings-field[b-2iybcwi8wj] {
    margin-bottom: 0;
}

.tenant-settings-page.is-organisation .form-grid[b-2iybcwi8wj] {
    max-width: 640px;
}

.tenant-settings-toggle[b-2iybcwi8wj] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 640px;
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid #e4e4ee;
    border-radius: 12px;
    cursor: pointer;
}

.tenant-settings-toggle[b-2iybcwi8wj]  .form-check-input {
    flex: none;
    width: 2.25em;
    height: 1.25em;
    margin: 1px 0 0;
    border-radius: 2em;
    cursor: pointer;
}

.tenant-settings-toggle > span[b-2iybcwi8wj] {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.tenant-settings-toggle strong[b-2iybcwi8wj] {
    color: var(--cl-heading);
    font-size: 13px;
}

/* Footer bar: runs edge to edge under the form and holds the save action. */
.tenant-settings-footer[b-2iybcwi8wj] {
    justify-content: flex-end;
    margin: 18px -20px -18px;
    padding: 12px 20px;
    border-top: 1px solid #e4e4ee;
    background: #fafafc;
}

/* ── Brand ───────────────────────────────────────────────── */
.tenant-brand-layout[b-2iybcwi8wj] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.tenant-brand-fields[b-2iybcwi8wj] {
    min-width: 0;
}

.tenant-brand-logo[b-2iybcwi8wj] {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.tenant-colour-field[b-2iybcwi8wj]  .form-control {
    min-width: 0;
    flex: 1;
}

.tenant-brand-preview[b-2iybcwi8wj] {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px;
    border: 1px dashed #d6d6e4;
    border-radius: 12px;
    background: #fafafc;
}

.tenant-brand-appbar[b-2iybcwi8wj] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    color: #ffffff;
}

.tenant-brand-appbar strong[b-2iybcwi8wj] {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tenant-brand-mark[b-2iybcwi8wj] {
    display: grid;
    flex: none;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

.tenant-brand-cta[b-2iybcwi8wj] {
    flex: none;
    margin-left: auto;
    padding: 3px 12px;
    border-radius: 999px;
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

/* ── Member app home (HomeContentEditor) guards ──────────── */
.tenant-settings-page[b-2iybcwi8wj]  .vh-panel .d-flex {
    flex-wrap: wrap;
}

.tenant-settings-page[b-2iybcwi8wj]  .vh-panel label,
.tenant-settings-page[b-2iybcwi8wj]  .vh-panel .form-control,
.tenant-settings-page[b-2iybcwi8wj]  .vh-panel .form-select {
    min-width: 0;
    max-width: 100%;
}

/* Phone preview: the scroll area is a grid whose auto column grew to the banner's 1600px natural width and
   pushed the hero past the phone frame. Pin the column to the frame. Uploaded banners are 16:7 (the member
   app's banner shape), so their hero frame follows the image instead of the 16:10 offer-card frame. */
.tenant-settings-page[b-2iybcwi8wj]  .vh .vh-phone-scroll {
    grid-template-columns: minmax(0, 1fr);
}

.tenant-settings-page[b-2iybcwi8wj]  .vh .vh-pz {
    min-width: 0;
}

.tenant-settings-page[b-2iybcwi8wj]  .vh .vh-p-hero:has(> img[style*="16/7"]) {
    aspect-ratio: 16 / 7;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .tenant-settings-page.is-organisation[b-2iybcwi8wj]  .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .tenant-brand-layout[b-2iybcwi8wj] {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

@media (max-width: 680px) {
    .tenant-settings-page.is-organisation[b-2iybcwi8wj]  .stats-row {
        gap: 8px;
        margin-bottom: 16px;
    }

    .tenant-settings-page.is-organisation[b-2iybcwi8wj]  .stat-card {
        padding: 12px;
    }

    .tenant-settings-page.is-organisation[b-2iybcwi8wj]  .stat-icon {
        display: none;
    }

    /* One row of section tabs that scrolls sideways inside its own strip. */
    .tenant-settings-page.is-organisation[b-2iybcwi8wj]  .tenant-workspace-subsection-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 2px 2px 6px;
        scrollbar-width: none;
    }

    .tenant-settings-page.is-organisation[b-2iybcwi8wj]  .tenant-workspace-subsection-nav::-webkit-scrollbar {
        display: none;
    }

    .tenant-settings-page.is-organisation[b-2iybcwi8wj]  .tenant-workspace-subsection-link {
        flex: none;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .tenant-settings-pair[b-2iybcwi8wj] {
        grid-template-columns: minmax(0, 1fr);
    }

    .tenant-brand-logo[b-2iybcwi8wj] {
        grid-template-columns: 112px minmax(0, 1fr);
    }
}
