/* MirrorHost Panel — enterprise clearnet CMS */
.pb-window .w-content { padding: 0; background: #eef1f5; overflow: hidden; display: flex; flex-direction: column; }
.pb-window .w-header { background: #1a2332 !important; color: #e8edf4; border-bottom: 1px solid #0f1419; font-weight: 600; letter-spacing: 0.02em; flex-shrink: 0; }

.pb-shell { flex: 1; min-height: 0; height: 100%; display: flex; flex-direction: column; font-family: 'Segoe UI', system-ui, sans-serif; color: #1a2332; font-size: 13px; }
.pb-app { flex: 1; min-height: 0; display: flex; height: 100%; width: 100%; }

/* Sidebar */
.pb-sidebar { width: 220px; flex-shrink: 0; background: #1a2332; color: #b8c5d6; display: flex; flex-direction: column; border-right: 1px solid #0f1419; }
.pb-sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.pb-sidebar__logo { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; letter-spacing: 0.04em; }
.pb-sidebar__brand strong { display: block; color: #f1f5f9; font-size: 14px; }
.pb-sidebar__brand small { color: #64748b; font-size: 10px; }
.pb-sidebar__nav { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.pb-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: none; border-radius: 6px; background: transparent; color: #94a3b8; cursor: pointer; font-size: 13px; text-align: left; }
.pb-nav-item:hover { background: rgba(255,255,255,0.05); color: #e2e8f0; }
.pb-nav-item--active { background: rgba(37,99,235,0.18); color: #fff; }
.pb-nav-item__icon { width: 18px; text-align: center; opacity: 0.85; }
.pb-sidebar__foot { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 10px; display: flex; justify-content: space-between; align-items: center; color: #64748b; }

/* Workspace */
.pb-workspace { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pb-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: #fff; border-bottom: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.pb-header__crumb { font-size: 15px; font-weight: 600; color: #0f172a; }
.pb-header__meta { display: flex; align-items: center; gap: 14px; font-size: 12px; }
.pb-header__bal { font-family: 'JetBrains Mono', monospace; color: #059669; font-weight: 600; background: #ecfdf5; padding: 4px 10px; border-radius: 4px; }
.pb-header__user { color: #64748b; }
.pb-content { flex: 1; min-height: 0; overflow: auto; padding: 20px; background: #eef1f5; }
.pb-content--editor { padding: 0; overflow: hidden; display: flex; flex-direction: column; }

/* Pages */
.pb-page { max-width: 1100px; }
.pb-page--editor { max-width: none; padding: 0; }
.pb-page__head { margin-bottom: 20px; }
.pb-page__title { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: #0f172a; letter-spacing: -0.02em; }
.pb-page__sub { margin: 0; color: #64748b; font-size: 13px; }

.pb-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.pb-metric { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.pb-metric__val { font-size: 26px; font-weight: 700; color: #0f172a; font-family: 'JetBrains Mono', monospace; }
.pb-metric__lbl { font-size: 11px; color: #64748b; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.pb-metric--accent .pb-metric__val { color: #2563eb; }

.pb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pb-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 18px; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.pb-section--inline { margin-top: 16px; }
.pb-section--form { margin-bottom: 16px; }
.pb-section__title { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: #334155; text-transform: uppercase; letter-spacing: 0.05em; }

.pb-dl { margin: 0 0 14px; }
.pb-dl div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.pb-dl dt { color: #64748b; margin: 0; }
.pb-dl dd { margin: 0; font-weight: 500; }

.pb-steps { margin: 0 0 14px; padding-left: 18px; color: #475569; line-height: 1.7; font-size: 13px; }

.pb-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.pb-banner--warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.pb-banner--info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* Plans */
.pb-grid--plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pb-plan { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(15,23,42,0.06); transition: border-color 0.15s, box-shadow 0.15s; }
.pb-plan:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(15,23,42,0.08); }
.pb-plan--active { border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb; }
.pb-plan__head { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; margin-bottom: 8px; }
.pb-plan__price { font-size: 28px; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.pb-plan__price span { font-size: 13px; font-weight: 400; color: #64748b; }
.pb-plan__features { list-style: none; margin: 0 0 12px; padding: 0; font-size: 12px; color: #475569; line-height: 1.8; }
.pb-plan__features li::before { content: '✓ '; color: #059669; font-weight: 700; }
.pb-plan__desc { font-size: 11px; color: #94a3b8; margin: 0 0 14px; flex: 1; line-height: 1.5; }

/* Forms & buttons */
.pb-btn { border: 1px solid #cbd5e1; background: #fff; color: #334155; padding: 8px 16px; font-size: 12px; font-weight: 500; cursor: pointer; border-radius: 6px; transition: background 0.12s, border-color 0.12s; }
.pb-btn:hover { background: #f8fafc; border-color: #94a3b8; }
.pb-btn--primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.pb-btn--primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.pb-btn--danger { border-color: #fecaca; color: #dc2626; background: #fef2f2; }
.pb-btn--ghost { background: transparent; border-color: #e2e8f0; color: #64748b; }
.pb-btn--block { width: 100%; margin-top: auto; }
.pb-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pb-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pb-form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.pb-field { display: flex; flex-direction: column; gap: 5px; }
.pb-field--grow { flex: 1; min-width: 180px; }
.pb-field label { font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }
.pb-field input, .pb-field select, .pb-field textarea { background: #fff; border: 1px solid #cbd5e1; color: #0f172a; padding: 9px 11px; font-size: 13px; border-radius: 6px; outline: none; }
.pb-field input:focus, .pb-field select:focus, .pb-field textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.pb-select { background: #fff; border: 1px solid #cbd5e1; color: #0f172a; padding: 6px 8px; font-size: 12px; border-radius: 4px; max-width: 180px; }

/* Table */
.pb-table-wrap { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
.pb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pb-table th { text-align: left; padding: 11px 14px; background: #f8fafc; color: #64748b; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #e2e8f0; }
.pb-table td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.pb-table tbody tr:hover { background: #fafbfc; }
.pb-table__empty { text-align: center; color: #94a3b8; padding: 28px !important; }
.pb-table__sub { font-size: 10px; color: #94a3b8; margin-top: 3px; font-family: 'JetBrains Mono', monospace; }
.pb-table__metrics { font-size: 12px; color: #64748b; white-space: nowrap; }
.pb-table__actions { white-space: nowrap; }

.pb-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.pb-badge--live { background: #dcfce7; color: #166534; }
.pb-badge--draft { background: #fef3c7; color: #92400e; }
.pb-domain-preview { font-family: 'JetBrains Mono', monospace; color: #2563eb; font-size: 12px; }
.pb-hint { font-size: 12px; color: #94a3b8; line-height: 1.5; margin-top: 8px; }

.pb-template-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pb-template-chip { padding: 7px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; font-size: 12px; cursor: pointer; color: #475569; font-weight: 500; }
.pb-template-chip:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }

/* Block editor v2 — full container stretch */
.pb-page--editor { flex: 1; min-height: 0; display: flex; flex-direction: column; max-width: none; margin: 0; height: 100%; }
.pb-page--editor-empty { padding: 20px; }
.pb-page--locked { padding: 0; }

.pb-editor-v2 {
    display: grid;
    grid-template-columns: 172px 1fr 280px;
    flex: 1;
    min-height: 0;
    height: 100%;
    background: #eef1f5;
}
.pb-editor-v2--preview { grid-template-columns: 172px 1fr 280px; }
.pb-editor-v2--edit { grid-template-columns: 172px 1fr 280px; }

.pb-editor-locked {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 10px;
    height: 100%;
}
.pb-editor-locked__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.pb-editor-locked__stats { font-size: 12px; color: #64748b; }
.pb-editor-locked__preview { flex: 1; min-height: 0; display: flex; overflow: hidden; }
.pb-editor-locked__preview .pb-preview-frame { width: 100%; height: 100%; }

.pb-palette--v2 {
    background: #fff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-height: 0;
}
.pb-palette__head {
    padding: 10px 12px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
}
.pb-palette__list { padding: 0 8px 8px; }
.pb-palette__list + .pb-palette__head { margin-top: 8px; }
.pb-palette-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; margin-bottom: 4px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px;
    cursor: grab; font-size: 12px; user-select: none; color: #334155;
}
.pb-palette-item:active { cursor: grabbing; }
.pb-palette-item:hover { border-color: #2563eb; background: #eff6ff; }
.pb-block__actions button { background: none; border: none; color: #94a3b8; cursor: pointer; padding: 2px 6px; font-size: 11px; }
.pb-block__actions button:hover { color: #f87171; }

.pb-preview-modal { position: fixed; inset: 0; background: rgba(15,23,42,0.6); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.pb-preview-modal__box { background: #fff; width: min(760px, 95vw); max-height: 85vh; overflow: hidden; border-radius: 10px; box-shadow: 0 24px 64px rgba(15,23,42,0.25); }
.pb-preview-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; font-size: 12px; font-weight: 500; }

.pb-palette__templates { padding: 0 8px 12px; display: flex; flex-direction: column; gap: 4px; }

.pb-editor-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; flex: 1; }

.pb-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}
.pb-editor-toolbar__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; flex: 1; min-width: 120px; }
.pb-editor-toolbar__actions { display: flex; gap: 8px; margin-left: auto; }

.pb-mode-switch {
    display: inline-flex;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}
.pb-mode-btn {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}
.pb-mode-btn:hover { color: #334155; background: rgba(255,255,255,0.6); }
.pb-mode-btn--active { background: #fff; color: #2563eb; box-shadow: 0 1px 3px rgba(15,23,42,0.08); }

.pb-editor-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.pb-field--inline { margin: 0; min-width: 140px; }
.pb-field--domain { flex: 1; min-width: 180px; }
.pb-field--domain .pb-domain-preview { display: block; padding: 9px 0; font-size: 12px; }
.pb-input-mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; }

.pb-editor-stage {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
    padding: 12px;
    gap: 12px;
}
.pb-editor-stage--edit .pb-editor-pane--preview { display: none; }
.pb-editor-stage--preview .pb-editor-pane--blocks { display: none; }
.pb-editor-stage--preview { padding: 0; gap: 0; }
.pb-editor-stage--preview .pb-editor-pane--preview {
    flex: 1;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #f0f0f1;
}
.pb-editor-stage--split .pb-editor-pane { flex: 1; min-width: 0; }

.pb-editor-pane {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15,23,42,0.05);
}
.pb-editor-pane__label {
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.pb-canvas {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f8fafc;
}
.pb-canvas--dragover { background: #eff6ff; outline: 2px dashed #2563eb; outline-offset: -4px; }
.pb-canvas-empty {
    text-align: center;
    color: #64748b;
    padding: 40px 16px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
}
.pb-canvas-empty__icon { display: block; font-size: 28px; color: #94a3b8; margin-bottom: 8px; }
.pb-canvas-empty p { margin: 0 0 4px; font-weight: 500; }
.pb-canvas-empty small { color: #94a3b8; font-size: 11px; }

.pb-block {
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.12s, box-shadow 0.12s;
}
.pb-block--selected { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }
.pb-block__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 11px;
    cursor: grab;
}
.pb-block__type { flex: 1; font-weight: 500; }
.pb-block__mini {
    padding: 10px 12px;
    max-height: 120px;
    overflow: hidden;
    cursor: pointer;
    font-size: 12px;
    background: linear-gradient(180deg, #fff 60%, rgba(255,255,255,0));
    position: relative;
}
.pb-block__mini::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 24px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}
.pb-block-fallback { padding: 8px; color: #94a3b8; font-size: 11px; }

.pb-props--v2 {
    background: #fff;
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.pb-props__head {
    padding: 10px 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.pb-props--v2 #pb-props { border: none; padding: 0 14px 14px; }
.pb-props--v2 #pb-props .pb-props__title { margin-top: 12px; }
.pb-props--v2 { overflow-y: auto; padding-bottom: 14px; }

.pb-editor-pane--preview { flex: 1; min-height: 0; }
.pb-editor-pane--preview .pb-editor-pane__label {
    background: #fff;
    border-bottom: 1px solid #dcdcde;
    color: #50575e;
}

#pb-live-preview-root {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Live preview frame — WordPress-like scrollable canvas */
.pb-preview-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}
.pb-preview-frame__chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #e8eaed;
    border-bottom: 1px solid #dadce0;
    flex-shrink: 0;
}
.pb-preview-frame__dots { display: flex; gap: 5px; }
.pb-preview-frame__dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: #dadce0;
}
.pb-preview-frame__dots span:nth-child(1) { background: #ff5f57; }
.pb-preview-frame__dots span:nth-child(2) { background: #febc2e; }
.pb-preview-frame__dots span:nth-child(3) { background: #28c840; }
.pb-preview-frame__url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 16px;
    padding: 5px 12px;
    font-size: 11px;
    color: #3c4043;
    min-width: 0;
}
.pb-preview-frame__host {
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pb-preview-frame__badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #2563eb;
    background: #eff6ff;
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}
.pb-preview-frame__viewport {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f0f0f1;
    padding: 32px 24px 64px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.pb-preview-frame__site {
    max-width: 820px;
    margin: 0 auto;
    min-height: 480px;
    border-radius: 2px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
}
.pb-preview-frame__body { padding: 0 16px 24px; min-height: 200px; }
.pb-preview-block {
    position: relative;
    transition: outline 0.12s, box-shadow 0.12s;
    border-radius: 2px;
    margin: 2px 0;
}
.pb-preview-block__content { pointer-events: none; }
.pb-preview-block--interactive {
    cursor: pointer;
}
.pb-preview-block--interactive:hover {
    outline: 1px dashed #2271b1;
    outline-offset: 0;
    box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.15);
}
.pb-preview-block--active {
    outline: 2px solid #2271b1 !important;
    outline-offset: 0;
    box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.2);
}
.pb-preview-block__label {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: #2271b1;
    padding: 2px 8px;
    border-radius: 2px 2px 0 0;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
}
.pb-preview-block--interactive:hover .pb-preview-block__label,
.pb-preview-block--active .pb-preview-block__label {
    opacity: 1;
}
.pb-preview-block--active .pb-preview-block__label {
    background: #135e96;
}
.pb-preview-empty { text-align: center; color: #888; padding: 24px; font-size: 13px; }

.pb-preview-modal__box--wide { width: min(900px, 96vw); }
.pb-preview-modal__body { padding: 0; max-height: 75vh; overflow: auto; }
.pb-preview-modal__body .pb-preview-frame { min-height: 420px; }

@media (max-width: 1100px) {
    .pb-editor-v2, .pb-editor-v2--preview, .pb-editor-v2--edit { grid-template-columns: 150px 1fr 240px; }
    .pb-editor-stage--split { flex-direction: column; }
    .pb-editor-stage--split .pb-editor-pane { flex: 1; min-height: 240px; }
}
@media (max-width: 900px) {
    .pb-editor-v2, .pb-editor-v2--preview, .pb-editor-v2--edit { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
    .pb-palette--v2 { max-height: 200px; border-right: none; border-bottom: 1px solid #e2e8f0; }
    .pb-props--v2 { max-height: 220px; border-left: none; border-top: 1px solid #e2e8f0; }
}

.pb-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.pb-preview-grid__col { padding: 10px; background: #f9fafb; border: 1px solid #e5e7eb; font-size: 12px; }
.pb-preview-divider { border: none; border-top: 1px solid #e5e7eb; margin: 12px 0; }
.pb-preview-cta-wrap { text-align: center; padding: 8px 0; }

/* Register block field editor */
.pb-reg-fields { margin: 12px 0; }
.pb-reg-fields__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
.pb-btn--sm { padding: 4px 10px; font-size: 11px; }
.pb-reg-field {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    background: #f8fafc;
}
.pb-reg-field__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}
.pb-reg-field__title { font-size: 12px; font-weight: 600; color: #334155; }
.pb-reg-field__actions { display: flex; gap: 4px; }
.pb-reg-field__actions button {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #64748b;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    cursor: pointer;
}
.pb-reg-field__actions button:hover { border-color: #2563eb; color: #2563eb; }
.pb-reg-field__remove:hover { border-color: #fca5a5 !important; color: #dc2626 !important; }
.pb-check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #475569; margin: 8px 0 0; cursor: pointer; }
.pb-check--inline input { width: auto; margin: 0; }
.pb-reg-field .pb-field { margin-bottom: 8px; }
.pb-reg-field .pb-field:last-of-type { margin-bottom: 0; }

@media (max-width: 900px) {
    .pb-metrics { grid-template-columns: repeat(2, 1fr); }
    .pb-split, .pb-grid--plans { grid-template-columns: 1fr; }
    .pb-editor { grid-template-columns: 1fr; height: auto; }
    .pb-sidebar { width: 56px; }
    .pb-sidebar__brand div, .pb-nav-item span:not(.pb-nav-item__icon), .pb-sidebar__foot span:first-child { display: none; }
}
