/*
  Admin chrome for commerce, members and settings pages. Builds on the audit-console look
  (website-builder.css) and the shared primitives in commerce.css.
*/

/* ---- Page header ------------------------------------------------------- */
.wb-page-header {
    margin-bottom: 1.5rem;
}

.wb-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.wb-crumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.wb-crumbs a:hover {
    color: var(--heading-color, var(--text-primary));
    text-decoration: underline;
}

.wb-crumbs [aria-current="page"] {
    color: var(--heading-color, var(--text-primary));
    font-weight: 600;
}

.wb-page-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.wb-page-header-copy {
    min-width: 0;
    flex: 1 1 22rem;
}

.wb-page-header-lead {
    max-width: 46rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.wb-page-header-lead p:last-child {
    margin-bottom: 0;
}

.wb-page-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* ---- Stat cards -------------------------------------------------------- */
.wb-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.wb-stat {
    --wb-tone: var(--wb-tone-neutral);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.9rem 1rem 0.9rem 1.15rem;
    border: 1px solid var(--surface-border, var(--border-color));
    border-radius: 12px;
    background: var(--surface-bg);
    color: var(--text-primary);
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.wb-stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--wb-tone);
    opacity: 0.85;
}

.wb-stat-success { --wb-tone: var(--wb-tone-success); }
.wb-stat-info { --wb-tone: var(--wb-tone-info); }
.wb-stat-warning { --wb-tone: var(--wb-tone-warning); }
.wb-stat-danger { --wb-tone: var(--wb-tone-danger); }

.wb-stat.is-quiet::before {
    opacity: 0.25;
}

.wb-stat.is-quiet .wb-stat-value {
    color: var(--text-muted);
}

.wb-stat-link:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--wb-tone) 45%, var(--surface-border));
    box-shadow: var(--wb-card-shadow);
}

.wb-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.wb-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--heading-color, var(--text-primary));
    font-variant-numeric: tabular-nums;
}

.wb-stat-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Sections ---------------------------------------------------------- */
.wb-section {
    border: 1px solid var(--surface-border, var(--border-color));
    border-radius: 12px;
    background: var(--surface-bg);
    color: var(--text-primary);
    box-shadow: 0 1px 2px color-mix(in srgb, #000 4%, transparent);
    scroll-margin-top: calc(var(--site-chrome-height, var(--nav-height, 0px)) + 1rem);
}

.wb-section + .wb-section {
    margin-top: 1rem;
}

.wb-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 1rem 1.25rem 0.85rem;
    border-bottom: 1px solid var(--surface-border, var(--border-color));
}

.wb-section-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--heading-color, var(--text-primary));
}

.wb-section-desc {
    margin: 0.2rem 0 0;
    max-width: 44rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.wb-section-head-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.wb-section-body {
    padding: 1.1rem 1.25rem 1.25rem;
}

.wb-section-body.is-flush {
    padding: 0;
}

/* ---- Settings layout with section nav ---------------------------------- */
.wb-settings-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.wb-sidenav {
    position: sticky;
    top: calc(var(--site-chrome-height, var(--nav-height, 0px)) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem;
    border: 1px solid var(--surface-border, var(--border-color));
    border-radius: 12px;
    background: var(--surface-bg);
}

.wb-sidenav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.wb-sidenav a:hover {
    background: var(--surface-bg-hover, color-mix(in srgb, var(--text-primary) 6%, transparent));
    color: var(--heading-color, var(--text-primary));
}

@media (max-width: 991.98px) {
    .wb-settings-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .wb-sidenav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ---- Sticky save bar --------------------------------------------------- */
.wb-savebar {
    position: sticky;
    bottom: 1rem;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 0.7rem 0.85rem 0.7rem 1.1rem;
    border: 1px solid var(--surface-border, var(--border-color));
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface-bg) 94%, transparent);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px color-mix(in srgb, #000 14%, transparent);
    animation: wb-savebar-in 0.18s ease-out;
}

.wb-savebar.is-dirty {
    border-color: color-mix(in srgb, var(--wb-tone-warning) 45%, var(--surface-border));
}

.wb-savebar-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.wb-savebar-ok {
    color: var(--wb-tone-success);
}

.wb-savebar-actions {
    display: flex;
    gap: 0.5rem;
}

@keyframes wb-savebar-in {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

/* ---- Queue tabs + bulk bar --------------------------------------------- */
.wb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.3rem;
    border-radius: 12px;
    background: color-mix(in srgb, var(--text-primary) 5%, transparent);
    margin-bottom: 1rem;
}

.wb-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.wb-tab:hover {
    color: var(--heading-color, var(--text-primary));
}

.wb-tab.is-active {
    background: var(--surface-bg);
    color: var(--heading-color, var(--text-primary));
    box-shadow: 0 1px 3px color-mix(in srgb, #000 12%, transparent);
}

.wb-tabs-compact {
    margin-bottom: 0;
    padding: 0.2rem;
}

.wb-tabs-compact .wb-tab {
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
}

.wb-tab-count {
    min-width: 1.4rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1.3rem;
    text-align: center;
    background: color-mix(in srgb, var(--text-primary) 9%, transparent);
    color: var(--text-primary);
}

.wb-tab-count.is-hot {
    background: var(--wb-tone-warning);
    color: #1a1a1a;
}

.wb-bulkbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--surface-border, var(--border-color));
    background: color-mix(in srgb, var(--accent-primary) 9%, var(--surface-bg));
    font-size: 0.88rem;
}

.wb-bulkbar strong {
    margin-right: auto;
}

/* ---- Tables ------------------------------------------------------------ */
.wb-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.wb-table th {
    padding: 0.6rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    border-bottom: 1px solid var(--surface-border, var(--border-color));
    background: color-mix(in srgb, var(--text-primary) 3%, transparent);
    white-space: nowrap;
}

.wb-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--surface-border, var(--border-color)) 70%, transparent);
    vertical-align: middle;
}

.wb-table tbody tr:last-child td {
    border-bottom: 0;
}

.wb-table tbody tr.is-clickable {
    cursor: pointer;
}

.wb-table tbody tr.is-clickable:hover,
.wb-table tbody tr.is-selected {
    background: color-mix(in srgb, var(--accent-primary) 7%, transparent);
}

.wb-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.wb-table-wrap {
    overflow-x: auto;
}

.wb-cell-main {
    font-weight: 600;
    color: var(--heading-color, var(--text-primary));
}

.wb-cell-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Drawer ------------------------------------------------------------ */
.wb-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: color-mix(in srgb, #000 38%, transparent);
    animation: wb-fade-in 0.15s ease-out;
}

.wb-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1051;
    display: flex;
    flex-direction: column;
    width: min(560px, 100vw);
    background: var(--page-bg-elevated, var(--surface-bg));
    color: var(--text-primary);
    border-left: 1px solid var(--surface-border, var(--border-color));
    box-shadow: -12px 0 40px color-mix(in srgb, #000 20%, transparent);
    animation: wb-drawer-in 0.2s ease-out;
}

.wb-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid var(--surface-border, var(--border-color));
}

.wb-drawer-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading-color, var(--text-primary));
}

.wb-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.15rem 1.35rem 1.5rem;
}

.wb-drawer-body > * + * {
    margin-top: 1.25rem;
}

.wb-drawer-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem;
    border-top: 1px solid var(--surface-border, var(--border-color));
}

.wb-drawer-section-title {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.wb-close {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    padding: 0.3rem;
    line-height: 0;
    cursor: pointer;
}

.wb-close:hover {
    color: var(--heading-color, var(--text-primary));
    background: var(--surface-bg-hover, transparent);
}

@keyframes wb-drawer-in {
    from { transform: translateX(24px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@keyframes wb-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---- Key/value list + mini list ---------------------------------------- */
.wb-kv {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.4rem 1rem;
    margin: 0;
    font-size: 0.9rem;
}

.wb-kv dt {
    color: var(--text-muted);
    font-weight: 500;
}

.wb-kv dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.wb-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--surface-border, var(--border-color));
    border-radius: 10px;
    overflow: hidden;
}

.wb-mini-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
}

.wb-mini-list li + li {
    border-top: 1px solid var(--surface-border, var(--border-color));
}

.wb-mini-list a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.wb-mini-list a:hover {
    text-decoration: underline;
}

/* ---- Event timeline (vertical) ----------------------------------------- */
.wb-events {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.1rem;
    border-left: 2px solid var(--surface-border, var(--border-color));
}

.wb-events li {
    position: relative;
    padding: 0 0 0.9rem 0.6rem;
    font-size: 0.88rem;
}

.wb-events li::before {
    content: "";
    position: absolute;
    left: calc(-1.1rem - 6px);
    top: 0.3rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--surface-bg);
    border: 2px solid var(--wb-tone, var(--text-muted));
}

.wb-events li.is-status { --wb-tone: var(--wb-tone-info); }
.wb-events li.is-payment { --wb-tone: var(--wb-tone-success); }
.wb-events li.is-email { --wb-tone: var(--accent-primary); }

.wb-events-meta {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* ---- Progress bar ------------------------------------------------------ */
.wb-progress {
    height: 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text-primary) 9%, transparent);
    overflow: hidden;
}

.wb-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--btn-primary-bg, var(--accent-primary));
    transition: width 0.4s ease;
}

.wb-progress.is-success > span {
    background: var(--wb-tone-success);
}

/* ---- Admin home: attention strip + setup checklist --------------------- */
.wb-attention {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.wb-attention-item {
    --wb-tone: var(--wb-tone-warning);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--wb-tone) 35%, var(--surface-border));
    background: color-mix(in srgb, var(--wb-tone) 8%, var(--surface-bg));
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.wb-attention-item:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--wb-card-shadow);
}

.wb-attention-item.is-danger { --wb-tone: var(--wb-tone-danger); }
.wb-attention-item.is-info { --wb-tone: var(--wb-tone-info); }
.wb-attention-item.is-success { --wb-tone: var(--wb-tone-success); }

.wb-attention-count {
    flex: 0 0 auto;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--wb-tone) 20%, transparent);
    color: color-mix(in srgb, var(--wb-tone) 75%, var(--text-primary));
    font-weight: 800;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.wb-attention-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wb-attention-title {
    font-weight: 700;
    font-size: 0.92rem;
}

.wb-attention-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.wb-allclear {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--wb-tone-success) 30%, var(--surface-border));
    background: color-mix(in srgb, var(--wb-tone-success) 7%, var(--surface-bg));
    color: var(--text-primary);
    font-size: 0.92rem;
}

.wb-allclear svg {
    color: var(--wb-tone-success);
}

.wb-checklist {
    margin-bottom: 2rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--surface-border, var(--border-color));
    border-radius: 14px;
    background: var(--surface-bg);
}

.wb-checklist-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.wb-checklist-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading-color, var(--text-primary));
}

.wb-checklist-progress {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 12rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.wb-checklist-progress .wb-progress {
    flex: 1 1 auto;
}

.wb-checklist ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.35rem 1rem;
}

.wb-checklist li a,
.wb-checklist li span.wb-check-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.wb-checklist li a:hover {
    background: var(--surface-bg-hover, transparent);
}

.wb-check {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 2px solid var(--surface-border, var(--border-color));
}

.is-done .wb-check {
    background: var(--wb-tone-success);
    border-color: var(--wb-tone-success);
    color: #fff;
}

.is-done .wb-check-label {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* ---- Tile badges ------------------------------------------------------- */
.admin-tile {
    position: relative;
}

.admin-tile-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
}

.admin-tile.has-badge .admin-tile-title {
    padding-right: 4.5rem;
}

/* ---- Small helpers ----------------------------------------------------- */
.wb-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.wb-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

.wb-split-wide {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .wb-split,
    .wb-split-wide {
        grid-template-columns: minmax(0, 1fr);
    }
}

.wb-preview-frame {
    width: 100%;
    min-height: 420px;
    border: 1px solid var(--surface-border, var(--border-color));
    border-radius: 10px;
    background: #fff;
}

.wb-help {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.wb-toggle-row {
    padding: 0.75rem 0;
}

.wb-toggle-row:first-child {
    padding-top: 0;
}

.wb-toggle-row + .wb-toggle-row {
    border-top: 1px solid color-mix(in srgb, var(--surface-border, var(--border-color)) 70%, transparent);
}

.wb-toggle-row .form-check {
    margin: 0;
}

.wb-toggle-row > .wb-help {
    margin: 0.2rem 0 0 2.5rem;
}

.wb-health {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wb-health-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.55rem 0;
}

.wb-health-item + .wb-health-item {
    border-top: 1px solid color-mix(in srgb, var(--surface-border, var(--border-color)) 70%, transparent);
}

.wb-health-item > .wb-pill {
    min-width: 3.25rem;
    justify-content: center;
    margin-top: 0.1rem;
}

.wb-health-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.wb-group {
    border: 1px solid var(--surface-border, var(--border-color));
    border-radius: 12px;
    background: var(--surface-bg, var(--card-bg, transparent));
    margin-bottom: 1rem;
}

.wb-group > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.9rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wb-group > summary::-webkit-details-marker {
    display: none;
}

.wb-group > summary::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    flex: 0 0 auto;
}

.wb-group[open] > summary::after {
    transform: rotate(-135deg);
}

.wb-group-title {
    font-weight: 650;
    color: var(--heading-color, var(--text-primary));
}

.wb-group-body {
    padding: 0 1.15rem 1.15rem;
}

.wb-group-body > .card {
    border: 0;
    background: transparent;
}

.wb-group-body > .card > .card-body {
    padding: 0.75rem 0;
}

.wb-group-body > .card + .card {
    border-top: 1px solid color-mix(in srgb, var(--surface-border, var(--border-color)) 70%, transparent);
    border-radius: 0;
}

.wb-subhead {
    font-size: 0.95rem;
    font-weight: 650;
    margin-bottom: 0.25rem;
    color: var(--heading-color, var(--text-primary));
}

.wb-choice-list {
    display: grid;
    gap: 0.6rem;
}

.wb-choice {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.8rem 1rem;
    border: 1px solid var(--surface-border, var(--border-color));
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.wb-choice:hover {
    border-color: color-mix(in srgb, var(--accent-primary) 45%, var(--surface-border, var(--border-color)));
}

.wb-choice.is-selected {
    border-color: var(--accent-primary);
    background: color-mix(in srgb, var(--accent-primary) 6%, transparent);
}

.wb-choice > .form-check-input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.wb-choice-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wb-choice-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.wb-choice-body .wb-help {
    margin-top: 0.15rem;
}

.wb-preview-card {
    padding: 1rem;
    border-radius: 12px;
    border: 1px dashed var(--surface-border, var(--border-color));
    background: color-mix(in srgb, var(--surface-border, var(--border-color)) 18%, transparent);
}

.wb-preview-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.wb-toggle-label {
    font-weight: 600;
    color: var(--heading-color, var(--text-primary));
}

@media print {
    .wb-page-header-actions,
    .wb-tabs,
    .wb-bulkbar,
    .wb-savebar {
        display: none !important;
    }
}
