:root {
    --rsb-danger-bg: #fdeaea;
    --rsb-danger-border: #b3261e;
    --rsb-danger-text: #b3261e;
    --rsb-save-bg: #3780a0;
    --rsb-save-text: #ffffff;
}

[v-cloak] {
    display: none !important;
}

/* The host WordPress theme's global text-color styles otherwise bleed into
   Quill's contenteditable area (a plain <p>-based DOM with no color of its
   own) — explicit here so typed text/background stay readable regardless of
   host page styling. Shared by every Quill instance in the plugin (CV
   summary, cover letter body). */
.ql-editor,
.ql-editor p {
    color: #222;
}
.ql-container {
    background: #fff;
}
/* Quill's default paragraph spacing is 0 — with no blank line and no
   indent, consecutive paragraphs read as one solid block, making it hard to
   spot where one ends and the next begins while typing. */
.ql-editor p {
    margin-bottom: 12px;
}

body:has(#rsb-editor-root),
body:has(#rsb-letter-root) {
    overflow-x: hidden;
}

/* width:100% defeats the host page's own layout: on this Bricks site the
   plugin root sits inside a `.brxe-container` that is itself a column flex
   box with align-items:flex-start — without an explicit width our root
   shrinks to fit its content and gets left-aligned in that container,
   which looked like "the letter preview isn't centered" even though the
   centering CSS inside it (justify-content:center) was already correct. */
#rsb-editor-root,
#rsb-letter-root {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
}

.rsb-form-panel {
    flex: 1 1 380px;
    min-width: 320px;
    max-width: 480px;
}

/* The CV editor's form panel sits on the same page background as its
   preview pane, so it was never given a card of its own — but the letter
   editor visibly needed one (no visual boundary against the host page's
   grey background). Scoped to the letter root only, doesn't touch the CV. */
#rsb-letter-root .rsb-form-panel {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
}

.rsb-form-panel label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
}

.rsb-form-panel input[type="text"],
.rsb-form-panel input[type="email"],
.rsb-form-panel textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

.rsb-form-panel h3 {
    margin: 28px 0 12px !important;
}

.rsb-form-panel button {
    margin-top: 16px;
    margin-bottom: 20px;
    padding: 10px 18px;
    cursor: pointer;
    background: #eef5fa;
    border: 1px solid #0d3f54;
    border-radius: 6px;
    color: #2271b1;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: background 0.15s, box-shadow 0.15s;
}

.rsb-form-panel button:hover {
    background: #dcedf7;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.rsb-saved-msg {
    margin-left: 10px;
    color: #2a9d3f;
    font-size: 16px;
    font-weight: 600;
}

.rsb-preview-panel {
    flex: 2 1 600px;
    display: flex;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.rsb-cv-pages {
    transform-origin: top center;
    flex-shrink: 0;
}

.rsb-preview-panel-full {
    flex: 1 1 100%;
}

@media (max-width: 1100px) {
    .rsb-preview-panel-full {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding-top: 0 !important;
        background: none !important;
    }
}

.rsb-job-title {
    color: #666;
}

.rsb-job-title-input {
    min-height: 50px !important;
    resize: vertical;
}

.rsb-form-panel input[type="file"] {
    display: block;
    margin-top: 4px;
}

.rsb-error-msg {
    color: #c0392b;
    font-size: 13px;
    margin: 4px 0 0;
}

.rsb-photo-thumb {
    display: block;
    margin-top: 8px;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

#rsb-summary-editor {
    background: #fff;
    min-height: 100px;
}

.rsb-repeat-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}

.rsb-repeat-row input {
    flex: 1;
    padding: 6px;
    box-sizing: border-box;
}

.rsb-form-panel button.rsb-remove-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rsb-danger-bg);
    border: 1px solid var(--rsb-danger-border);
    color: var(--rsb-danger-text);
    border-radius: 4px;
    width: 28px;
    height: 28px;
    padding: 0;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.rsb-signature-preview {
    font-size: 28px;
    line-height: 1.2;
    padding: 8px 0;
}

.rsb-signature-preview img {
    display: block;
    height: auto;
    max-width: 100%;
}

.rsb-reorder-row {
    display: inline-flex;
    gap: 4px;
    margin-right: 8px;
    vertical-align: middle;
}

.rsb-form-panel button.rsb-reorder-btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border, #d5d4d3);
    color: var(--heading, #333);
    border-radius: 4px;
    width: 28px;
    height: 28px;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.rsb-form-panel button.rsb-reorder-btn:hover:not(:disabled) {
    border-color: var(--accent, #3780a0);
    color: var(--accent, #3780a0);
}

.rsb-form-panel button.rsb-reorder-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.rsb-form-panel button.rsb-remove-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
    height: auto;
    margin-top: 10px;
    padding: 6px 12px;
    background: var(--rsb-danger-bg);
    border: 1px solid var(--rsb-danger-border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: var(--rsb-danger-text);
}

.rsb-remove-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.rsb-save-row {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rsb-save-row .rsb-dash-btn {
    flex: none;
}

.rsb-back-to-dashboard-row {
    margin-top: 16px;
}

.rsb-back-to-dashboard-row .rsb-dash-btn {
    display: inline-block;
    flex: none;
}

.rsb-preview-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
}

.rsb-preview-summary {
    margin-top: 12px;
    font-size: 13px;
    color: #333;
}

.rsb-preview-websites {
    margin-top: 12px;
    padding-left: 18px;
    font-size: 12px;
}

.rsb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 8px;
    margin-bottom: 20px;
}

.rsb-tabs button {
    margin-top: 0;
    padding: 8px 16px;
    background: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rsb-tabs button:hover {
    background: #e6e6e6;
}

.rsb-tabs button.active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    box-shadow: 0 2px 5px rgba(34, 113, 177, 0.35);
}

.rsb-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-top: 12px;
}

.rsb-card input,
.rsb-card select,
.rsb-card textarea {
    display: block;
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
    margin-top: 8px;
    font-size: 14px;
}

.rsb-card textarea {
    min-height: 70px;
}

.rsb-card input[type="checkbox"] {
    display: inline-block;
    width: auto;
    margin: 12px 6px 0 0;
    vertical-align: middle;
}

.rsb-card label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    font-weight: normal;
}

.rsb-card label:has(input[type="checkbox"]) input[type="checkbox"] {
    margin: 0;
}

.rsb-hide-toggle {
    background: #f5f5f5;
    padding: 6px 8px;
    border-radius: 4px;
    margin-top: 0 !important;
    font-size: 13px;
}

.rsb-card-hidden {
    border-color: #e0a030;
    background: #fffaf0;
    opacity: 0.75;
}

.rsb-date-row {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}

.rsb-date-row select {
    flex: 1;
    padding: 6px;
}

.rsb-repeat-row select {
    padding: 6px;
}

input[type="color"] {
    display: block;
    margin-top: 4px;
    width: 60px;
    height: 32px;
    padding: 0;
    border: 1px solid #ccc;
}

.rsb-preview-row {
    margin-top: 10px;
    font-size: 13px;
}

.rsb-mini {
    font-size: 12px;
    color: #666;
}

.rsb-preview-btn {
    display: none;
}

.rsb-view-actions {
    flex-basis: 100%;
    text-align: center;
    margin: 24px 0 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.rsb-view-btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.rsb-view-btn-primary {
    background: var(--accent, #2271b1);
    color: #fff;
    border: none;
}

.rsb-view-btn-primary:hover {
    filter: brightness(0.9);
}

.rsb-view-btn-outline {
    background: #fff;
    color: var(--accent, #2271b1) !important;
    border: 1px solid var(--accent, #2271b1);
}

.rsb-view-credit {
    margin-top: 14px;
    font-size: 12px;
    color: #999;
    text-align: center;
    flex-basis: 100%;
}

.rsb-view-credit .rsb-heart {
    color: #e63946;
}

.rsb-view-credit a {
    color: var(--accent, #2271b1);
    text-decoration: underline;
}

.rsb-qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 20px;
    box-sizing: border-box;
}

.rsb-qr-modal {
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    position: relative;
}

.rsb-qr-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f2f2f2;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.rsb-qr-modal h3 {
    margin: 0 0 18px;
    font-size: 17px;
    color: #222;
}

.rsb-qr-modal-canvas {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.rsb-qr-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.rsb-qr-modal-action {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    color: var(--accent, #2271b1) !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.rsb-qr-modal-download {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
}

.rsb-qr-modal-print {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--accent, #2271b1);
    background: var(--accent, #2271b1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-top: 10px;
}

.rsb-qr-modal-credit {
    margin: 16px 0 0;
    font-size: 12px;
    color: #999;
}

.rsb-qr-modal-credit .rsb-heart {
    color: #e63946;
}

.rsb-qr-modal-credit a {
    color: var(--accent, #2271b1);
    text-decoration: underline;
}

.rsb-view-qr {
    flex-basis: 100%;
    text-align: center;
    margin: -10px 0 28px;
}

.rsb-view-qr p {
    font-size: 12px;
    color: #666;
    margin: 6px 0 0;
}

.rsb-view-qr-canvas {
    display: inline-block;
}

@media (max-width: 1100px) {
    .rsb-preview-panel {
        position: fixed;
        top: 10vh;
        bottom: 0;
        left: 0;
        right: 0;
        background: #f5f5f5;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 9998;
        overflow-y: auto;
        overflow-x: hidden;
        justify-content: center;
        padding-top: 16px;
    }

    .rsb-preview-panel.open {
        transform: translateY(0);
    }

    .rsb-preview-btn {
        display: flex;
        position: fixed;
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #ffffff;
        border: 1px solid #2271b1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 9999;
        transition: all 0.25s ease;
    }

    .rsb-preview-btn .rsb-preview-icon {
        width: 22px;
        height: 22px;
        border: 2px solid #2271b1;
        border-radius: 4px;
        transition: transform 0.25s ease, background-color 0.25s ease;
    }

    .rsb-preview-btn.open {
        background: #2271b1;
    }

    .rsb-preview-btn.open .rsb-preview-icon {
        transform: rotate(45deg);
        border-color: #ffffff;
    }
}

.rsb-theme-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 28px;
}

.rsb-side-picker {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 28px;
}

.rsb-form-panel button.rsb-side-option {
    flex: 1;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 10px 8px;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0;
}

.rsb-form-panel button.rsb-side-option.selected {
    border-color: #2271b1;
    background: #f0f7fc;
    color: #2271b1;
}

.rsb-other-language-field {
    margin-top: -14px;
    margin-bottom: 24px;
}

.rsb-other-language-field label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rsb-other-language-field input {
    max-width: 120px;
}

.rsb-info-bubble {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ddd;
    color: #555;
    font-size: 11px;
    font-weight: 700;
    cursor: help;
}

.rsb-info-bubble::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    background: #333;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    padding: 8px 10px;
    border-radius: 6px;
    text-align: left;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s;
    pointer-events: none;
}

.rsb-info-bubble:hover::after,
.rsb-info-bubble:focus::after {
    opacity: 1;
    visibility: visible;
}

.rsb-confirm-modal p {
    margin: 0 0 18px;
    font-size: 14px;
    color: #333;
    text-align: left;
}

.rsb-confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.rsb-label-editor {
    margin-bottom: 8px;
}

.rsb-label-editor-group-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #555;
    margin: 20px 0 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid #ddd;
}

.rsb-label-editor-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rsb-label-editor-row label {
    flex: 0 0 160px;
    font-size: 12px;
    color: #555;
    margin: 0;
}

.rsb-label-editor-row input {
    flex: 1;
}

.rsb-theme-option {
    position: relative;
    flex: 1;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.rsb-theme-option.selected {
    border-color: #2271b1;
    background: #f0f7fc;
}

.rsb-theme-option.locked,
.rsb-form-panel button.rsb-side-option.locked,
.rsb-form-panel button.rsb-palette-option.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.rsb-lock-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #fff;
    background: #8a4baf;
    border-radius: 4px;
    padding: 3px 6px;
    line-height: 1.2;
}

.rsb-theme-option .rsb-lock-badge {
    position: relative;
    top: 7px;
}

.rsb-form-panel button.rsb-side-option .rsb-lock-badge,
.rsb-form-panel button.rsb-palette-option .rsb-lock-badge {
    display: block;
    margin-top: 4px;
}

.rsb-theme-option img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;
}

.rsb-theme-label {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Cover letter theme cards have no preview thumbnail yet (rendering engine
   not built) — text-only card, just needs enough height to not look broken
   next to the CV's image-based cards. */
.rsb-theme-option-text {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.rsb-theme-option .rsb-zoom-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.rsb-zoom-btn::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 9px;
    height: 9px;
    border: 2px solid #333333;
    border-radius: 50%;
    box-sizing: border-box;
}

.rsb-zoom-btn::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 11px;
    width: 2px;
    height: 7px;
    background: #333333;
    border-radius: 1px;
    transform: rotate(-45deg);
    transform-origin: top center;
}

.rsb-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    cursor: zoom-out;
    padding: 40px;
    box-sizing: border-box;
}

.rsb-lightbox img {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.rsb-hint {
    font-size: 12px;
    color: #777;
    margin: 4px 0 12px;
}

.rsb-palette-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rsb-form-panel button.rsb-palette-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    cursor: pointer;
    margin-top: 0;
    margin-bottom: 0;
}

.rsb-form-panel button.rsb-palette-option.selected {
    border-color: #2271b1;
    background: #f0f7fc;
}

.rsb-palette-swatches {
    display: flex;
    width: 60px;
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.rsb-palette-swatches span {
    flex: 1;
}

.rsb-palette-name {
    font-size: 11px;
    color: #444;
}

#rsb-dashboard-root,
#rsb-letter-dash-root {
    max-width: 1400px;
    width: 100%;
    display: flex;
    gap: var(--space--l, 24px);
    align-items: flex-start;
}

.rsb-dash-sidebar {
    flex: 0 0 340px;
    background: var(--accent-d-3, #102630);
    color: var(--s2-text, #f7f6f6);
    border-radius: var(--radius--m, 12px);
    padding: var(--space--m, 20px);
    display: flex;
    flex-direction: column;
    gap: var(--space--l, 24px);
    position: sticky;
    top: var(--space--m, 20px);
}

.rsb-dash-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rsb-dash-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius--btn, 8px);
    background-color: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--s2-text, #f7f6f6);
    text-decoration: none;
    font-size: var(--text--s, 14px);
    line-height: 1.4;
    transition: all .25s ease-in-out;
}

.rsb-dash-nav-link:hover {
    background-color: rgba(255, 255, 255, .15);
    transform: translateX(8px);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, .4);
}

.rsb-dash-nav-link.active {
    background-color: var(--accent, #3780a0);
    box-shadow: inset 2px 2px 6px rgba(0, 0, 0, .5);
    border: 1px solid rgba(255, 255, 255, .2);
}

.rsb-dash-lang-switcher {
    display: flex;
    gap: 6px;
    margin: 4px 0 16px;
}

.rsb-dash-lang-switcher button {
    flex: 1;
    padding: 6px 0;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    border-radius: var(--radius--btn, 8px);
    border: 1px solid var(--s2-border, #545251);
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.rsb-dash-lang-switcher button.active {
    background-color: var(--accent, #3780a0);
    border-color: var(--accent, #3780a0);
}

.rsb-dash-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--s2-border, #545251);
    border-radius: var(--radius--m, 12px);
    padding: 10px;
}

.rsb-dash-identity > div {
    min-width: 0;
}

.rsb-dash-identity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent, #3780a0);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    border: none;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.rsb-dash-identity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rsb-dash-avatar-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .6);
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 0 0;
    margin-left: 52px;
}

.rsb-dash-avatar-remove:hover {
    color: #fff;
}

.rsb-avatar-block {
    margin-bottom: 20px;
}

.rsb-avatar-block .rsb-dash-avatar-remove {
    color: var(--accent, #3780a0);
    opacity: .8;
}

.rsb-avatar-block .rsb-dash-avatar-remove:hover {
    opacity: 1;
}

.rsb-plan-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 4px 10px;
    border-radius: 999px;
    margin-left: 10px;
    vertical-align: middle;
    color: #fff;
    background: rgba(255, 255, 255, .15);
}

.rsb-plan-badge.plan-free {
    background: #e8590c;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .3);
}

.rsb-plan-badge.plan-starter {
    background: var(--accent, #3780a0);
}

.rsb-plan-badge.plan-pro {
    background: #c0517e;
}

.rsb-plan-badge.plan-pro50,
.rsb-plan-badge.plan-pro100,
.rsb-plan-badge.plan-pro500 {
    background: #6b2140;
}

.rsb-plan-badge.plan-admin {
    background: #555b63;
}

.rsb-plan-badge-block {
    display: block;
    width: fit-content;
    margin: 6px 0 0;
    opacity: 1;
}

.rsb-plan-upgrade {
    background: #e0a622;
    text-decoration: none;
    cursor: pointer;
}

.rsb-plan-upgrade:hover {
    background: #c98f14;
    color: #fff;
}

.rsb-dash-identity strong {
    display: block;
    font-size: var(--text--s, 14px);
    overflow-wrap: anywhere;
}

.rsb-dash-identity span {
    display: block;
    font-size: var(--text--xs, 12px);
    opacity: .75;
    overflow-wrap: anywhere;
}

.rsb-dash-main {
    flex: 1;
    min-width: 0;
}

.rsb-dash-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.rsb-dash-header-row .rsb-dash-btn {
    flex: 0 0 auto;
}

.rsb-dash-quota {
    font-size: 13px;
    color: var(--text, #39363d);
    opacity: .7;
    white-space: nowrap;
}

.rsb-dash-quota-full {
    color: #b3261e;
    font-weight: 600;
    opacity: 1;
}

.rsb-dash-search-row {
    margin: 16px 0;
}

.rsb-dash-search-input {
    width: 100%;
    max-width: 360px;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border, #d5d4d3);
    border-radius: var(--radius--btn, 8px);
    box-sizing: border-box;
}

.rsb-dash-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
}

.rsb-dash-pagination .rsb-dash-btn {
    flex: none;
    padding: 8px 18px;
}

.rsb-dash-pagination .rsb-dash-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.rsb-dash-pagination-status {
    font-size: 13px;
    color: var(--text, #39363d);
    opacity: .8;
}

.rsb-dash-empty {
    color: var(--text, #39363d);
    opacity: .7;
}

.rsb-dash-account-banner {
    background: #fff6e5;
    border: 1px solid #e0a622;
    border-radius: var(--radius--m, 12px);
    padding: var(--space--m, 16px) var(--space--l, 20px);
    margin-bottom: 20px;
}

.rsb-dash-account-banner p {
    margin: 0 0 10px;
    color: var(--text, #39363d);
}

.rsb-dash-locked-notice {
    background: #fdeaea;
    border: 1px solid #d94f4f;
    border-radius: var(--radius--m, 12px);
    padding: 12px 16px;
    color: #8a2f2f;
    margin-bottom: 20px;
}

.rsb-dash-expired-note {
    font-size: var(--text--s, 13px);
    color: var(--text, #39363d);
    opacity: .7;
    margin: 4px 0 12px;
}

.rsb-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space--m, 20px);
    margin-top: 16px;
    width: 100%;
}

.rsb-dash-card {
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--border, #d5d4d3);
    border-radius: var(--radius--m, 12px);
    box-shadow: var(--shadow--s, 0 1.5px 3px rgba(0,0,0,.06));
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rsb-dash-thumb {
    aspect-ratio: 210 / 297;
    border-radius: var(--radius--s, 6px);
    overflow: hidden;
    background: var(--foreground, #e4e3e2);
    display: flex;
}

.rsb-dash-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.rsb-dash-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, var(--foreground, #e4e3e2), var(--foreground, #e4e3e2) 10px, var(--border, #d5d4d3) 10px, var(--border, #d5d4d3) 20px);
}

.rsb-dash-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rsb-dash-card-head strong {
    color: var(--heading, #322f35);
}

.rsb-dash-card-title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.rsb-dash-card-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rsb-dash-rename-btn {
    flex-shrink: 0;
    border: none;
    background: none;
    padding: 0;
    font-size: 11px;
    color: var(--accent, #3780a0);
    cursor: pointer;
    text-decoration: underline;
}

.rsb-dash-rename-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.rsb-dash-rename-input {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    padding: 4px 6px;
    border: 1px solid var(--accent, #3780a0);
    border-radius: 4px;
}

.rsb-dash-rename-save,
.rsb-dash-rename-cancel {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
}

.rsb-dash-rename-save {
    background: #e3f5e6;
    color: #1f7a34;
}

.rsb-dash-rename-cancel {
    background: #fdeaea;
    color: #b3261e;
}

.rsb-dash-btn.locked {
    opacity: .5;
    cursor: not-allowed;
}

.rsb-dash-btn .rsb-lock-badge {
    display: block;
    margin-top: 4px;
}

.rsb-dash-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.rsb-dash-badge.public {
    background: #e3f5e6;
    color: #1f7a34;
}

.rsb-dash-badge.private {
    background: #fdeaea;
    color: #b3261e;
}

.rsb-dash-badge.language {
    background: #eef1f5;
    color: #44494f;
    cursor: default;
}

.rsb-dash-btn {
    padding: 8px 14px;
    font-size: var(--text--s, 13px);
    border: 1px solid var(--border, #d5d4d3);
    border-radius: var(--radius--btn, 8px);
    background: #fff;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: var(--heading, #222);
    flex: 1;
    transition: all var(--timing--s, 150ms);
}

.rsb-dash-btn:hover {
    border-color: var(--accent, #3780a0);
    color: var(--accent, #3780a0);
}

.rsb-dash-btn-primary {
    background: var(--accent, #3780a0);
    border-color: var(--accent, #3780a0);
    color: var(--btn-text, #fff);
}

.rsb-dash-btn-primary:hover {
    color: var(--btn-text, #fff);
    opacity: .9;
}

.rsb-form-panel button.rsb-save-btn {
    background: var(--rsb-save-bg) !important;
    border-color: var(--rsb-save-bg) !important;
    color: var(--rsb-save-text) !important;
}

.rsb-form-panel button.rsb-save-btn:hover {
    color: var(--rsb-save-text) !important;
}

.rsb-dash-row {
    display: flex;
    gap: 8px;
}

.rsb-dash-qr {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.rsb-dash-link {
    font-size: 12px;
    text-align: center;
    color: var(--accent, #3780a0);
}

.rsb-dash-btn-danger {
    background: none;
    border-color: #d94f4f;
    color: #d94f4f;
}

.rsb-dash-btn-danger:hover {
    background: #fdeaea;
    border-color: #d94f4f;
    color: #d94f4f;
}

.rsb-dash-create {
    margin-top: 24px;
}

/* WooCommerce My Account — reuse the dashboard's sidebar look on native WC markup */
.woocommerce-account .woocommerce {
    display: flex;
    gap: var(--space--l, 24px);
    align-items: flex-start;
    width: 100%;
    max-width: var(--max-screen-width, 1440px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 4rem);
    box-sizing: border-box;
}

.woocommerce-account nav.woocommerce-MyAccount-navigation {
    flex: 0 0 220px;
    background: var(--accent-d-3, #102630);
    border-radius: var(--radius--m, 12px);
    padding: var(--space--m, 20px);
    position: sticky;
    top: var(--space--m, 20px);
}

.woocommerce-account nav.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.woocommerce-account nav.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link a {
    display: flex;
    align-items: center;
    padding: 12px 16px !important;
    margin: 0 !important;
    border-radius: var(--radius--btn, 8px);
    background-color: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--s2-text, #f7f6f6);
    text-decoration: none;
    font-size: var(--text--s, 14px) !important;
    line-height: 1.4 !important;
    transition: all .25s ease-in-out;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link a:hover {
    background-color: rgba(255, 255, 255, .15);
    transform: translateX(8px);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, .4);
}

.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a {
    background-color: var(--accent, #3780a0);
    box-shadow: inset 2px 2px 6px rgba(0, 0, 0, .5);
    border: 1px solid rgba(255, 255, 255, .2);
}

.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--border, #d5d4d3);
    border-radius: var(--radius--m, 12px);
    padding: var(--space--m, 20px);
}

.woocommerce-account .woocommerce-MyAccount-content a {
    color: var(--accent, #3780a0);
}

.woocommerce-account .woocommerce-MyAccount-content a.rsb-dash-btn-primary {
    color: var(--btn-text, #fff);
}

.woocommerce-account .button,
.woocommerce-account button.button,
.woocommerce-account input.button,
.woocommerce-account a.button {
    background: var(--accent, #3780a0) !important;
    border-radius: var(--radius--btn, 8px) !important;
    border: 1px solid var(--accent, #3780a0) !important;
    color: var(--btn-text, #fff) !important;
}

@media (max-width: 1024px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }
    .woocommerce-account nav.woocommerce-MyAccount-navigation {
        flex: none;
        width: 100%;
        position: static;
    }
}

.rsb-notice-block {
    max-width: 480px;
    margin: 60px auto;
    text-align: center;
    padding: var(--space--l, 32px);
    background: #fff;
    border: 1px solid var(--border, #d5d4d3);
    border-radius: var(--radius--m, 12px);
}

.rsb-notice-block h2 {
    color: var(--heading, #322f35);
    margin-top: 0;
}

.rsb-notice-block p {
    color: var(--text, #39363d);
    opacity: .8;
}

.rsb-notice-block .rsb-dash-btn {
    display: inline-block;
    margin: 12px 6px 0;
}

.rsb-dash-limit-msg {
    color: #c0392b;
    font-size: 13px;
    margin: 8px 0 0;
}

@media (max-width: 1024px) {
    #rsb-dashboard-root {
        flex-direction: column;
    }
    .rsb-dash-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }
}

.rsb-analytics-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

.rsb-analytics-page h2 {
    margin: 16px 0 24px;
    color: var(--heading, #322f35);
}

.rsb-analytics-period-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.rsb-analytics-period-tab {
    padding: 8px 16px;
    border: 1px solid var(--border, #d5d4d3);
    border-radius: var(--radius--btn, 8px);
    color: var(--heading, #222);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.rsb-analytics-period-tab.active {
    background: var(--accent, #3780a0);
    border-color: var(--accent, #3780a0);
    color: #fff;
}

.rsb-analytics-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.rsb-analytics-stat {
    flex: 1;
    background: var(--foreground, #f5f4f3);
    border-radius: var(--radius--s, 8px);
    padding: 20px;
    text-align: center;
}

.rsb-analytics-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent, #3780a0);
}

.rsb-analytics-stat-label {
    display: block;
    font-size: 13px;
    color: var(--text, #39363d);
    opacity: .8;
    margin-top: 4px;
}

.rsb-analytics-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 160px;
    padding: 0 8px;
}

.rsb-analytics-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.rsb-analytics-bar {
    width: 100%;
    max-width: 32px;
    min-height: 2px;
    background: var(--accent, #3780a0);
    border-radius: 3px 3px 0 0;
}

.rsb-analytics-bar-value {
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

.rsb-analytics-bar-label {
    font-size: 11px;
    color: var(--text, #39363d);
    opacity: .7;
    margin-top: 2px;
}
