.page-editor-toolbar {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.page-editor-back-button {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1000;
}

.page-editor-toolbar button {
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-editor-toolbar button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.3);
}

.page-editor-back-button a {
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.page-editor-back-button a:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.3);
}

.page-editor-back-button i,
.page-editor-back-button svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.page-editor-publish-button {
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-editor-publish-button.primary {
    background: rgba(79, 70, 229, 0.9);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.25);
}

.page-editor-publish-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.3);
}

.page-editor-publish-button.primary:hover {
    box-shadow: 0 18px 32px rgba(79, 70, 229, 0.3);
}

.page-editor-publish-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Save status indicator */
.page-editor-save-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(15, 23, 42, 0.6);
    transition: opacity 0.3s ease, color 0.3s ease;
    user-select: none;
    opacity: 0;
}

.page-editor-save-status.is-visible {
    opacity: 1;
}

.page-editor-save-status.is-saving {
    color: rgba(255, 255, 255, 0.5);
}

.page-editor-save-status.is-error {
    color: #f87171;
}

.save-status-icon {
    font-size: 13px;
    line-height: 1;
}

/* Unpublished changes dot on publish button */
.page-editor-publish-button.has-changes {
    position: relative;
}

.page-editor-publish-button.has-changes::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f59e0b;
    border: 2px solid rgba(79, 70, 229, 0.9);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

/* Unpublished changes badge */
.page-editor-unpublished-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    animation: unpublished-fade-in 0.3s ease;
}

@keyframes unpublished-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fixed bottom bar for unpublished changes */
.page-editor-unpublished-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(30, 27, 56, 0.95);
    backdrop-filter: blur(8px);
    border-top: 2px solid #f59e0b;
    animation: unpublished-bar-slide-up 0.3s ease;
}

@keyframes unpublished-bar-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.page-editor-unpublished-bar__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    flex-shrink: 0;
}

.page-editor-unpublished-bar__text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.page-editor-unpublished-bar__btn {
    padding: 6px 16px;
    border-radius: 999px;
    border: none;
    background: #f59e0b;
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.page-editor-unpublished-bar__btn:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}

.page-inline-edit {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.page-inline-edit a,
[data-editor-text] a {
    color: #6b7280;
    text-decoration: none;
    border-bottom: 1px solid rgba(107, 114, 128, 0.25);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.page-inline-edit a:hover,
[data-editor-text] a:hover {
    color: #4b5563;
    border-bottom-color: rgba(75, 85, 99, 0.4);
}

.page-inline-edit::after {
    content: '';
    position: absolute;
    inset: -4px -8px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.page-inline-edit:hover::after,
.page-inline-edit:focus-visible::after {
    border-color: rgba(79, 70, 229, 0.5);
    background-color: rgba(79, 70, 229, 0.08);
}

.page-inline-edit-icon {
    font-size: 0.7em;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.2s ease;
}

.page-inline-edit:hover .page-inline-edit-icon,
.page-inline-edit:focus-visible .page-inline-edit-icon {
    opacity: 0.75;
}

.forms-inline-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.forms-inline-actions .page-inline-edit {
    background: rgba(99, 102, 241, 0.12);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
}

.forms-inline-actions .page-inline-edit::after {
    display: none;
}

.forms-inline-actions .page-inline-edit-icon {
    opacity: 0.85;
}

.sponsorship-controls {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.sponsorship-layout-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: rgba(148, 163, 184, 0.16);
    border-radius: 999px;
}

.sponsorship-layout-toggle span {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.sponsorship-layout-toggle button {
    border: none;
    background: transparent;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    transition: background 0.2s ease, color 0.2s ease;
}

.sponsorship-layout-toggle button.is-active {
    background: #ffffff;
    color: var(--primary, #1f2937);
    box-shadow: 0 10px 20px rgba(31, 41, 55, 0.18);
}

.sponsorship-layout-toggle button:focus-visible {
    outline: 2px solid var(--primary, #1f2937);
    outline-offset: 2px;
}

.sponsorship-views {
    margin-top: 20px;
}

.sponsorship-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sponsorship-list-item {
    padding: 20px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.sponsorship-list-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.sponsorship-list-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.sponsorship-list-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary, #1f2937);
}

.sponsorship-list-description {
    margin: 0 0 12px;
    color: #475569;
}

.sponsorship-list-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.sponsorship-list-perks li {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    color: #334155;
    font-size: 14px;
}

.sponsorship-list-perks .level-perk-label {
    font-weight: 600;
    color: #1e293b;
}

.sponsorship-grid-table {
    margin-top: 20px;
    width: 100%;
    overflow-x: auto;
}

.sponsorship-grid-table table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.sponsorship-grid-table thead {
    background: var(--primary, #1f2937);
    color: #ffffff;
}

.sponsorship-grid-table th,
.sponsorship-grid-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.sponsorship-grid-table th:not(:first-child),
.sponsorship-grid-table td:not(:first-child) {
    text-align: center;
}

.sponsorship-grid-table tbody tr:nth-child(even) td:not(:first-child) {
    background: rgba(241, 245, 249, 0.55);
}

.sponsorship-grid-table th:first-child,
.sponsorship-grid-table td:first-child {
    background: rgba(241, 245, 249, 0.85);
    font-weight: 600;
    color: #0f172a;
    width: 220px;
}

.sponsorship-grid-table__level-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.sponsorship-grid-table__level-price {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.85;
}

.sponsorship-grid-table__availability {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.7;
}

.sponsorship-grid-table tfoot td {
    padding-top: 18px;
    padding-bottom: 18px;
    background: none;
}

.sponsorship-grid-table__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.sponsorship-grid-table__dash {
    font-size: 18px;
    color: rgba(15, 23, 42, 0.35);
}

.sponsorship-grid-table__note {
    margin-top: 6px;
    font-size: 13px;
    color: #475569;
    text-align: left;
}

.section--sponsorshipLevels[data-sponsorship-layout="grid"] [data-sponsorship-cards] {
    display: none !important;
}

.section--sponsorshipLevels[data-sponsorship-layout="card"] [data-sponsorship-list] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 720px) {
    .sponsorship-grid-table th:first-child,
    .sponsorship-grid-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
    }
}

.page-editor-sortable {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-editor-sortable-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    cursor: grab;
}

.page-editor-sortable-item.is-dragging {
    opacity: 0.6;
    cursor: grabbing;
}

.page-editor-sortable-item.drag-over {
    border-color: rgba(79, 70, 229, 0.5);
    background: rgba(79, 70, 229, 0.05);
}

.page-editor-sortable-handle {
    font-size: 18px;
    line-height: 1;
    color: #94a3b8;
    user-select: none;
}

.page-editor-sortable-item label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    flex: 1;
}

.page-editor-sortable-item label input {
    margin-top: 4px;
}

.page-editor-level-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-editor-level-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-editor-level-controls label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.page-editor-level-controls select {
    border-radius: 8px;
    border: 1px solid #cbd5f5;
    background: #ffffff;
    padding: 6px 10px;
    font-size: 13px;
    color: #1f2937;
}

.page-editor-level-controls select:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.25);
    outline-offset: 1px;
}

.page-editor-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.page-editor-radio-group label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    color: #334155;
}

.page-editor-radio-group label input {
    margin-top: 4px;
}

/* Overlay - transparent so eye dropper picks true colors */
.page-editor-overlay {
    position: fixed;
    inset: 0;
    z-index: 1099;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.page-editor-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Panel - shadcn sheet style */
.page-editor-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(384px, 100%);
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}

.page-editor-panel.is-open {
    transform: translateX(0);
}

/* Close button - shadcn style */
.page-editor-panel__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #71717a;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.page-editor-panel__close:hover {
    opacity: 1;
    background: #f4f4f5;
}

.page-editor-panel__close:focus-visible {
    outline: 2px solid #18181b;
    outline-offset: 2px;
}

/* Header */
.page-editor-panel__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 24px;
    padding-right: 48px;
}

.page-editor-panel__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #09090b;
    line-height: 1.4;
}

.page-editor-panel__description {
    margin: 0;
    font-size: 14px;
    color: #71717a;
    line-height: 1.5;
}

/* Content */
.page-editor-panel__content {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Footer */
.page-editor-panel__footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

/* Buttons - shadcn style */
.page-editor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.page-editor-btn--primary {
    background: #18181b;
    color: #fafafa;
}

.page-editor-btn--primary:hover {
    background: #27272a;
}

.page-editor-btn--outline {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #18181b;
}

.page-editor-btn--outline:hover {
    background: #f4f4f5;
}

.page-editor-btn:focus-visible {
    outline: 2px solid #18181b;
    outline-offset: 2px;
}

/* Drawer variant - for modals that should slide in from right */
.page-editor-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(480px, 100%);
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}

.page-editor-drawer.is-open {
    transform: translateX(0);
}

.page-editor-drawer--wide {
    width: min(600px, 100%);
}

.page-editor-drawer__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #71717a;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, background 0.2s ease;
    z-index: 1;
}

.page-editor-drawer__close:hover {
    opacity: 1;
    background: #f4f4f5;
}

.page-editor-drawer__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 24px;
    padding-right: 56px;
    border-bottom: 1px solid #e5e7eb;
}

.page-editor-drawer__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #09090b;
    line-height: 1.4;
}

.page-editor-drawer__description {
    margin: 0;
    font-size: 14px;
    color: #71717a;
    line-height: 1.5;
}

.page-editor-drawer__content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.page-editor-drawer__footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

/* Modal as drawer - wrapper keeps modal behavior but content slides in */
.page-editor-modal--drawer {
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
}

.page-editor-modal--drawer .page-editor-modal__overlay {
    opacity: 0;
}

.page-editor-modal--drawer.is-open .page-editor-modal__overlay {
    animation: fadeIn 0.3s ease forwards;
}

.page-editor-modal--drawer.is-closing .page-editor-modal__overlay {
    animation: fadeOut 0.2s ease forwards;
}

.page-editor-modal--drawer .page-editor-drawer {
    transform: translateX(100%);
}

.page-editor-modal--drawer.is-open .page-editor-drawer {
    animation: slideInFromRight 0.3s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.page-editor-modal--drawer.is-closing .page-editor-drawer {
    animation: slideOutToRight 0.2s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* Legacy form styles - keep for compatibility */
.page-editor-panel form {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.page-editor-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.page-editor-field__static {
    font-weight: 600;
    color: #0f172a;
}

.page-editor-field__hint {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.page-editor-field--group {
    gap: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.page-editor-field__group-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-editor-preview {
    margin-top: 6px;
    min-height: 84px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-editor-preview img {
    max-width: 160px;
    max-height: 80px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.page-editor-link-button {
    border: none;
    background: none;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary, #1f2937);
    cursor: pointer;
    text-decoration: underline;
}

.page-editor-link-button:hover,
.page-editor-link-button:focus-visible {
    color: var(--accent, #ef4444);
}

.page-editor-field label {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.page-editor-field input[type="text"],
.page-editor-field textarea,
.page-editor-field select {
    border: 1px solid #cbd5f5;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
}

.page-editor-field input[type="color"] {
    border: 1px solid #cbd5f5;
    border-radius: 10px;
    padding: 0;
    height: 48px;
    width: 100%;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.page-editor-field input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: inherit;
}

.page-editor-field input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: inherit;
}

.page-editor-field input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: inherit;
}

.page-editor-favicon {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-editor-favicon__preview {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.05);
    position: relative;
}

.page-editor-favicon__preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.page-editor-favicon__preview span {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.page-editor-favicon__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-editor-favicon__actions button {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.page-editor-favicon__actions button[data-editor-favicon-upload] {
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
}

.page-editor-favicon__actions button[data-editor-favicon-upload]:hover {
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.25);
}

.page-editor-favicon__actions button[data-editor-favicon-remove] {
    background: #e2e8f0;
    color: #0f172a;
}

.page-editor-favicon__actions button[data-editor-favicon-remove]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.page-editor-field textarea {
    min-height: 90px;
    resize: vertical;
}

.page-editor-checkboxes {
    display: grid;
    gap: 10px;
}

.page-editor-checkboxes label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 13px;
    color: #334155;
}

.page-editor-actions {
    padding: 18px 22px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    background: #f8fafc;
}

.page-editor-actions button {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.page-editor-actions button[type="submit"] {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.25);
}

.page-editor-actions button[type="button"] {
    background: #e2e8f0;
    color: #0f172a;
}

.page-editor-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.page-editor-modal.is-open {
    display: flex;
}

/* Nested modals (modals that open on top of other modals) need higher z-index */
#pageEditorModal-link-edit.is-open,
#pageEditorModal-question-edit.is-open {
    z-index: 1300;
}

.page-editor-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
}

.page-editor-modal__content {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(640px, calc(100vh - 32px));
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page-editor-modal__content--medium {
    width: min(480px, 100%);
}

.page-editor-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(640px, calc(100vh - 32px));
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page-editor-modal__dialog--large {
    width: min(680px, 100%);
    max-height: min(85vh, calc(100vh - 32px));
}

.page-editor-modal__header {
    padding: 20px 22px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.page-editor-modal__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.page-editor-modal__body {
    padding: 22px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.page-editor-modal__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.page-editor-modal__form--compact {
    gap: 12px;
    padding: 18px 22px;
}

.page-editor-modal__form--compact .page-editor-field {
    gap: 4px;
}

.page-editor-modal__form .page-editor-field textarea,
.page-editor-modal__form .page-editor-field input[type="text"] {
    width: 100%;
}

.page-editor-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 22px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.page-editor-modal__actions button {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.page-editor-modal__actions button[type="submit"] {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.25);
}

.page-editor-modal__actions button[type="button"] {
    background: #e2e8f0;
    color: #0f172a;
}

/* Ensure button styles work within modals - prevent modal button styles from overriding */
.page-editor-modal .photo-gallery-photo-item__remove,
.page-editor-modal .faqs-manage-item__edit-btn,
.page-editor-modal .faqs-manage-item__delete-btn,
.page-editor-modal .page-editor-add-button {
    /* Reset any conflicting styles from .page-editor-modal__actions button */
    border-radius: initial;
    padding: initial;
    font-weight: initial;
    font-size: initial;
    background: initial;
    color: initial;
    box-shadow: initial;
}

/* Re-apply specific styles for these buttons within modals */
.page-editor-modal .page-editor-add-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #cbd5f5;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.page-editor-modal .page-editor-add-button:hover {
    background: #f8fafc;
    border-color: #4f46e5;
    color: #4f46e5;
}

.page-editor-modal .page-editor-add-button:active {
    transform: translateY(1px);
}

.page-editor-modal .faqs-manage-item__edit-btn {
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    color: #374151;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
}

.page-editor-modal .faqs-manage-item__edit-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.page-editor-modal .faqs-manage-item__delete-btn {
    flex-shrink: 0;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    color: #dc2626;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.page-editor-modal .faqs-manage-item__delete-btn:hover {
    background: #fecaca;
    border-color: #f87171;
    color: #991b1b;
}

.page-editor-modal .faqs-manage-item__delete-btn:active {
    transform: scale(0.95);
}

.page-editor-modal .photo-gallery-photo-item__remove {
    flex-shrink: 0;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    color: #dc2626;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.page-editor-modal .photo-gallery-photo-item__remove:hover {
    background: #fecaca;
    border-color: #f87171;
    color: #991b1b;
}

.page-editor-modal .photo-gallery-photo-item__remove:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .hero-content {
        padding-left: 6%;
        padding-right: 6%;
    }
    .hero-details-section {
        gap: 24px;
    }
    section {
        padding-left: 6%;
        padding-right: 6%;
    }
}

/* Preview banner mobile styles are in page-base.css */

.section--units[data-units-display="text"] .unit-list-name {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* FAQ Suggestion Buttons */
.page-editor-modal .faq-suggestion-add-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.page-editor-modal .faq-suggestion-add-btn:active {
    transform: scale(0.98);
}

.page-editor-modal .faq-category-toggle:hover {
    background: #f3f4f6;
}

/* ========================================
   Questions Management System Styles
   ======================================== */

/* Large modal variant */
.page-editor-modal--large .page-editor-modal__dialog {
    max-width: 700px;
}

/* Questions container */
.questions-manage-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.questions-manage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.questions-add-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.questions-add-button:hover {
    background: #4338ca;
}

.questions-add-button:active {
    transform: scale(0.98);
}

/* Questions list */
.questions-manage-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100px;
    max-height: 400px;
    overflow-y: auto;
    padding: 4px;
}

/* Question item */
.questions-manage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: grab;
}

.questions-manage-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.questions-manage-item.is-dragging {
    opacity: 0.5;
    cursor: grabbing;
}

/* Drag handle */
.questions-manage-item__drag-handle {
    flex-shrink: 0;
    color: #94a3b8;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    cursor: grab;
}

.questions-manage-item:hover .questions-manage-item__drag-handle {
    opacity: 1;
}

.questions-manage-item__drag-handle span {
    font-size: 16px;
    user-select: none;
}

/* Body */
.questions-manage-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.questions-manage-item__label {
    font-weight: 500;
    font-size: 14px;
    color: #1f2937;
    line-height: 1.4;
    word-break: break-word;
}

.questions-manage-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.questions-manage-item__section {
    font-size: 11px;
    color: #7c3aed;
    background: #f5f3ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.questions-manage-item__type {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.questions-manage-item__required {
    font-size: 11px;
    color: #dc2626;
    background: #fef2f2;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* Actions */
.questions-manage-item__actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.questions-manage-item__edit,
.questions-manage-item__delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.questions-manage-item__edit {
    background: #f1f5f9;
    color: #64748b;
}

.questions-manage-item__edit:hover {
    background: #e2e8f0;
    color: #475569;
}

.questions-manage-item__delete {
    background: #fef2f2;
    color: #ef4444;
}

.questions-manage-item__delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Success message */
.questions-success-message {
    display: none;
    padding: 8px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    color: #15803d;
    font-size: 13px;
    font-weight: 500;
}

/* Empty state */
.questions-manage-empty {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    padding: 32px 16px;
    font-style: italic;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #e5e7eb;
}

/* Inline edit button for section headers */
.page-inline-edit-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.page-inline-edit-button:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* Section config actions removed - now using page-section__controls from page-sections.css */

/* ========================================
   Field Configuration Styles
   ======================================== */

.field-config-intro {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.field-config-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.field-config-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.field-config-item__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.field-config-item__label {
    font-weight: 500;
    font-size: 14px;
    color: #1f2937;
}

.field-config-item__id {
    font-size: 11px;
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.field-config-item__controls {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.field-config-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #64748b;
    user-select: none;
}

.field-config-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.field-config-toggle span {
    font-weight: 500;
}

.field-config-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    padding: 24px;
    font-style: italic;
}

.field-config-item__hint {
    font-size: 12px;
    color: #94a3b8;
    font-weight: normal;
}

.field-config-subheading {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin: 16px 0 8px 0;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

/* Section Toggle Styles */
.section-toggle-config {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
}

.section-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.section-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.section-toggle__label {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.section-toggle__hint {
    margin: 8px 0 0 32px;
    font-size: 13px;
    color: #64748b;
}

.insurance-fields-list {
    margin-top: 16px;
}

/* Field config hint text */
.field-config-hint {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px 0;
}

/* Categories/Checkboxes textarea editor */
.categories-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    background: #ffffff;
}

.categories-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.categories-textarea::placeholder {
    color: #94a3b8;
}

/* Field config subitem (nested options like min coverage) */
.field-config-subitem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-left: 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: -1px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.field-config-subitem label {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
}

.field-config-subitem .input-with-prefix {
    display: flex;
    align-items: stretch;
    max-width: 220px;
}

.field-config-subitem .input-with-prefix .prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    color: #64748b;
    flex-shrink: 0;
    /* Reset absolute positioning from applicant.css */
    position: static;
    left: auto;
    top: auto;
    transform: none;
    font-weight: 400;
}

.field-config-subitem .input-with-prefix input[type="number"] {
    padding: 8px 12px;
    padding-left: 12px; /* Reset padding-left from applicant.css */
    border: 1px solid #cbd5e1;
    border-left: none;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    flex: 1;
    min-width: 0;
    width: auto;
}

/* Custom checkboxes container in form */
.custom-checkboxes-container {
    display: contents;
}

/* Disabled section state for edit mode */
.section-disabled {
    position: relative;
}

/* Apply opacity to content, not the whole section (so controls stay full-color) */
.section-disabled > h2,
.section-disabled > .section-lead,
.section-disabled > .form-grid,
.section-disabled > .vehicles-trailers-list,
.section-disabled > .add-button,
.section-disabled > .empty-state {
    opacity: 0.5;
    pointer-events: none;
}

.section-disabled::before {
    content: 'Section Disabled';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(100, 116, 139, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    pointer-events: none;
}

/* Keep section controls clickable and full-color when disabled */
.section-disabled .page-section__controls {
    opacity: 1;
    pointer-events: auto;
    position: absolute;
    z-index: 20;
}

/* Section Questions Styling */
.section-questions-list {
    margin: 12px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    min-height: 60px;
}

.section-questions-empty {
    color: #6b7280;
    font-style: italic;
    padding: 16px;
    text-align: center;
    margin: 0;
    font-size: 13px;
}

.section-question-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.section-question-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.section-question-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.section-question-item__info {
    flex: 1;
    min-width: 0;
}

.section-question-item__label {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.section-question-item__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.section-question-item__type {
    font-size: 11px;
    padding: 2px 8px;
    background: #e5e7eb;
    color: #4b5563;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

.section-question-item__required {
    font-size: 11px;
    padding: 2px 8px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 4px;
    font-weight: 500;
}

.section-question-item__actions {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}

.section-question-edit,
.section-question-delete {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
    color: #6b7280;
    transition: all 0.15s ease;
}

.section-question-edit:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.section-question-delete:hover {
    background: #fef2f2;
    color: #dc2626;
}

.section-add-question-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 8px;
}

.section-add-question-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #1f2937;
}

/* Input with suffix (for ft units) */
.input-with-suffix {
    display: flex;
    align-items: stretch;
    max-width: 150px;
}

.input-with-suffix input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    width: 100%;
    background: white;
}

.input-with-suffix input[type="number"]:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
    z-index: 1;
}

.input-with-suffix .suffix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-left: none;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

/* Vehicle limits config section */
.vehicles-limits-config {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* Admin config note (shown in edit mode) */
.admin-config-note {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #0369a1;
    margin-bottom: 16px;
}

.admin-config-note strong {
    color: #0c4a6e;
}

/* ========================================
   Mobile Responsive - Page Editor
   ======================================== */

@media (max-width: 768px) {
    /* Drawer: tighter padding on mobile */
    .page-editor-drawer__header {
        padding: 14px 16px;
        padding-right: 48px;
    }

    .page-editor-drawer__content {
        padding: 16px;
    }

    .page-editor-drawer__footer {
        padding: 12px 16px;
    }

    /* Modal: tighter padding on mobile */
    .page-editor-modal__header {
        padding: 16px 18px 10px;
    }

    .page-editor-modal__body {
        padding: 16px;
    }

    .page-editor-modal__actions {
        padding: 12px 16px;
    }

    /* Section controls: larger touch targets on mobile */
    .page-section__control {
        width: 38px;
        height: 38px;
    }

    .page-section__controls {
        gap: 6px;
    }

    /* Insert section button: larger touch target */
    .page-section-insert__button {
        width: 42px;
        height: 42px;
    }

    /* Sortable items: better touch spacing */
    .page-editor-sortable-item {
        padding: 12px;
        gap: 10px;
    }

    /* Fixed toolbar: stack on mobile */
    .page-editor-back-button {
        top: 12px;
        left: 12px;
    }

    .page-editor-toolbar {
        top: 12px;
        right: 12px;
        gap: 6px;
    }

    .page-editor-toolbar button,
    .page-editor-back-button a {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* Section controls: even larger for small phones */
    .page-section__control {
        width: 40px;
        height: 40px;
    }

    /* Fixed toolbar: hide "Brand Colors" text, keep swatches */
    .page-editor-toolbar #pageEditorOpenPanelButton {
        font-size: 0;
        padding: 8px 10px;
        gap: 0;
    }

    .page-editor-toolbar #pageEditorOpenPanelButton > span {
        font-size: 12px;
    }

    .page-editor-toolbar button,
    .page-editor-back-button a {
        padding: 8px 10px;
        font-size: 11px;
    }

    /* Drawer: full bleed on small screens */
    .page-editor-drawer__content {
        padding: 14px 12px;
    }

    .page-editor-drawer__header {
        padding: 12px 14px;
        padding-right: 44px;
    }

    .page-editor-drawer__footer {
        padding: 10px 14px;
    }

    /* Modal dialog: reduce border-radius and padding */
    .page-editor-modal__content,
    .page-editor-modal__dialog {
        border-radius: 14px;
    }

    .page-editor-modal {
        padding: 8px;
    }
}
