/* "My page" editor (pagebuilder.js): full-screen dialog with settings on the left and a live preview. */
.my-page-btn { background: linear-gradient(100deg, #6D28D9, #DB2777) !important; color: #fff !important; border: 0 !important; box-shadow: 0 3px 10px rgba(109,40,217,.3); }
body.pb-open { overflow: hidden; }
.pb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #F1F5F9; color: #0F172A; display: none; flex-direction: column; }
.pb[open] { display: flex; }
.pb::backdrop { background: rgba(15,23,42,.5); }
.pb-head { flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: linear-gradient(100deg, #4C1D95, #9D174D); color: #fff; }
.pb-head-l { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; margin-right: auto; }
.pb-head h2 { margin: 0; font-size: 22px; color: #fff; }
.pb-url { color: #FBCFE8; font-weight: 600; font-size: 14px; }
.pb-unsaved { padding: 2px 10px; border-radius: 999px; background: #FDE68A; color: #78350F; font-size: 12.5px; font-weight: 800; }
.pb-head-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pb-head .btn-quiet { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); }
.pb-head #pb-save { background: #22C55E; border-color: #22C55E; color: #052E16; font-weight: 800; }
.pb-head #pb-save:disabled { background: rgba(255,255,255,.2); border-color: transparent; color: #E9D5FF; }
.pb-head .pb-link { color: #FBCFE8; }
.pb-head .studio-close { background: rgba(255,255,255,.18); color: #fff; }
.pb-status { flex: none; margin: 0; padding: 0 16px; font-size: 14px; min-height: 0; }
.pb-status:not(:empty) { padding: 8px 16px; background: #fff; border-bottom: 1px solid #E2E8F0; }
.pb-status.ok { color: #15803D; } .pb-status.bad { color: #B91C1C; }

.pb-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 700; color: #6D28D9; text-decoration: underline; cursor: pointer; }
.pb-danger { color: #B91C1C; }
.pb-btn2 { border: 1px dashed #A78BFA; background: #F5F3FF; color: #5B21B6; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.pb-icon { width: 30px; height: 30px; border: 1px solid #CBD5E1; border-radius: 8px; background: #fff; cursor: pointer; font-weight: 800; color: #334155; flex: none; }
.pb-icon:disabled { opacity: .35; cursor: default; }

/* Claim (first time) */
.pb-claim { flex: 1; overflow: auto; padding: 28px 24px 40px; max-width: 980px; margin: 0 auto; width: 100%; box-sizing: border-box; }
.pb-claim h3 { font-size: 26px; margin: 0 0 6px; }
.pb-claim > p { color: #475569; margin: 0 0 18px; }
.pb-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.pbc-type { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 16px; border: 2px solid #E2E8F0; border-radius: 16px; background: #fff; font: inherit; color: inherit; cursor: pointer; }
.pbc-type:hover { border-color: #A78BFA; }
.pbc-type.is-on { border-color: #7C3AED; box-shadow: 0 0 0 3px #EDE9FE; }
.pbc-ico { font-size: 30px; }
.pbc-type b { font-size: 17px; }
.pbc-blurb { font-size: 13.5px; color: #475569; line-height: 1.45; }
.pbc-form { display: grid; gap: 10px; max-width: 460px; }

/* Editor */
.pb-editor { flex: 1; min-height: 0; display: grid; grid-template-columns: 400px minmax(0, 1fr); }
.pb-side { min-height: 0; display: flex; flex-direction: column; background: #fff; border-right: 1px solid #E2E8F0; }
.pb-tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #E2E8F0; }
.pb-tab { border: 0; border-bottom: 3px solid transparent; background: none; padding: 12px 4px; font: inherit; font-weight: 700; font-size: 14px; color: #475569; cursor: pointer; }
.pb-tab.is-on { color: #6D28D9; border-bottom-color: #7C3AED; }
.pb-pane { flex: 1; overflow: auto; padding: 16px 16px 40px; }
.pb-panehead { margin: 6px 0 10px; }
.pb-panehead h3 { margin: 0; font-size: 18px; }
.pb-panehead p { margin: 4px 0 0; font-size: 13.5px; color: #64748B; }
.pb-pane .pb-types { grid-template-columns: minmax(0, 1fr); }
/* Home services: trade cards (two to a row) and one-tap service suggestions */
.pb-pane .pb-trades { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.pb-trade { padding: 10px 12px; gap: 2px; border-radius: 12px; }
.pb-trade .pbc-ico { font-size: 22px; }
.pb-trade b { font-size: 14.5px; line-height: 1.25; }
.pb-trade .pbc-blurb { font-size: 12.5px; }
.pb-trade-note.ok { color: #166534; font-weight: 600; }
.pb-trades + .pb-btn2, .pb-trade-note + .pb-btn2 { display: block; width: 100%; margin: 0 0 14px; text-align: left; }
.pb-btn2:disabled { border-style: solid; border-color: #E2E8F0; background: #F8FAFC; color: #64748B; cursor: default; }
.pb-suggest { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 14px; }
.pb-suggest .pb-help { margin: 0; }
.pb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pb-chip { border: 1px solid #DDD6FE; background: #F5F3FF; color: #5B21B6; border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pb-chip:hover { border-color: #A78BFA; }
.pb-chip:focus-visible, .pb-trade:focus-visible { outline: 3px solid #DDD6FE; outline-offset: 1px; }
.pb-field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 12px; }
.pb-label { font-weight: 700; font-size: 13.5px; color: #334155; }
.pb-help { font-size: 12.5px; color: #64748B; margin: 0 0 10px; }
.pb-input { font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid #CBD5E1; border-radius: 10px; background: #fff; color: #0F172A; width: 100%; box-sizing: border-box; }
textarea.pb-input { resize: vertical; line-height: 1.5; }
.pb-input:focus { outline: 3px solid #DDD6FE; border-color: #7C3AED; }

.pb-secs { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.pb-sec { border: 1px solid #E2E8F0; border-radius: 12px; background: #fff; }
.pb-sec.is-open { border-color: #A78BFA; box-shadow: 0 0 0 3px #EDE9FE; }
.pb-sec.is-off .pb-sec-name { opacity: .5; }
.pb-sec-row { display: flex; align-items: center; gap: 6px; padding: 8px; }
.pb-sec-name { flex: 1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; text-align: left; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 2px 4px; }
.pb-sec-ico { grid-row: span 2; font-size: 20px; align-self: center; }
.pb-sec-title { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-sec-kind { font-size: 12px; color: #64748B; }
.pb-switch { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: #CBD5E1; position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; }
.pb-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.pb-switch:checked { background: #22C55E; }
.pb-switch:checked::after { left: 19px; }
.pb-switch:focus-visible { outline: 3px solid #DDD6FE; outline-offset: 2px; }
.pb-sec-edit { padding: 4px 12px 12px; border-top: 1px solid #EEF2F7; }
.pb-list { display: grid; gap: 8px; margin: 0 0 12px; }
.pb-item { border: 1px solid #E2E8F0; border-radius: 10px; padding: 10px 10px 4px; background: #F8FAFC; }
.pb-item .pb-field { margin-bottom: 8px; }
.pb-itemtools { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; }
.pb-hours { display: grid; gap: 6px; margin-bottom: 12px; }
.pb-hourrow { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.pb-add { margin-top: 8px; }

.pb-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.pb-swatch { position: relative; height: 62px; border-radius: 12px; border: 2px solid #E2E8F0; cursor: pointer; padding: 0; overflow: hidden;
  background: linear-gradient(var(--a) 0 55%, var(--c) 55% 100%); }
.pb-swatch::after { content: ""; position: absolute; right: 8px; bottom: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--b); box-shadow: 0 0 0 2px #fff; }
.pb-swatch.is-on { border-color: #7C3AED; box-shadow: 0 0 0 3px #DDD6FE; }
.pb-swatch-name { position: absolute; left: 6px; bottom: 4px; font-size: 11px; font-weight: 800; color: #334155; }
.pb-accent { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 8px; }
.pb-accent input[type=color] { width: 64px; height: 38px; border: 1px solid #CBD5E1; border-radius: 10px; padding: 2px; background: #fff; cursor: pointer; }
.pb-fonts, .pb-layouts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.pb-layouts { grid-template-columns: repeat(3, 1fr); }
.pb-font, .pb-layout { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border: 2px solid #E2E8F0; border-radius: 12px; background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: #334155; cursor: pointer; }
.pb-font.is-on, .pb-layout.is-on, .pb-cover.is-on { border-color: #7C3AED; box-shadow: 0 0 0 3px #DDD6FE; }
.pb-font-aa { font-size: 28px; line-height: 1; color: #0F172A; }
.pb-layout-pic { width: 100%; height: 40px; border-radius: 6px; background: #E2E8F0; position: relative; }
.pb-layout-band .pb-layout-pic { background: linear-gradient(90deg, #475569 0 30%, #94A3B8 30% 100%); }
.pb-layout-centered .pb-layout-pic { background: radial-gradient(circle at 50% 35%, #475569 0 9px, transparent 10px), linear-gradient(#94A3B8 0 100%); }
.pb-layout-cover .pb-layout-pic { background: linear-gradient(160deg, #64748B, #1E293B); }
.pb-cover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 12px; }
.pb-cover { aspect-ratio: 4 / 3; border: 2px solid #E2E8F0; border-radius: 8px; overflow: hidden; padding: 0; background: #F1F5F9; cursor: pointer; font: inherit; font-size: 12px; color: #64748B; }
.pb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pb-stage { min-height: 0; display: flex; flex-direction: column; padding: 12px 16px 16px; }
.pb-devices { flex: none; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.pb-device { border: 1px solid #CBD5E1; background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13.5px; font-weight: 700; color: #334155; cursor: pointer; }
.pb-device.is-on { background: #1E293B; color: #fff; border-color: #1E293B; }
.pb-stage-note { margin-left: auto; font-size: 12.5px; font-weight: 700; color: #64748B; }
.pb-frame-wrap { flex: 1; min-height: 0; display: flex; justify-content: center; }
.pb-frame-wrap iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 6px 24px rgba(15,23,42,.15); transition: width .25s; }
.pb-stage.is-phone iframe { width: 390px; max-width: 100%; }

@media (max-width: 900px) {
  .pb-editor { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 45vh; }
  .pb-side { border-right: 0; border-bottom: 1px solid #E2E8F0; }
  .pb-head-r .pb-link { display: none; }
  .pb-head { flex-wrap: wrap; }
}
.pb .pb-switch { width: 38px !important; height: 22px !important; min-width: 0; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 999px !important; box-shadow: none; }
/* "Get your free web page" card on the dashboard */
.getpage-wrap { padding-top: 18px; }
.getpage { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 18px; border-radius: 16px; color: #fff; background: linear-gradient(100deg, #4C1D95, #9D174D); box-shadow: 0 6px 18px rgba(76,29,149,.25); }
.getpage[hidden] { display: none; }
.getpage-ico { font-size: 28px; }
.getpage-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.getpage-text b { font-size: 18px; }
.getpage-text span { font-size: 14px; opacity: .9; }
.getpage-go { background: #fff !important; color: #5B21B6 !important; border: 0 !important; font-weight: 800; white-space: nowrap; }
.getpage-x { background: none; border: 0; color: #fff; font-size: 22px; opacity: .7; cursor: pointer; padding: 4px 6px; }
.getpage-x:hover { opacity: 1; }
@media (max-width: 640px) { .getpage { flex-wrap: wrap; } .getpage-go { width: 100%; } .getpage-x { position: absolute; right: 26px; } .getpage { position: relative; } }
/* Weekly email dialog */
.dg-dialog { width: min(680px, calc(100vw - 24px)); }
.dg-body { padding: 16px 22px 22px; }
.dg-toggle { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin: 8px 0; cursor: pointer; }
.dg-toggle input { width: 22px; height: 22px; }
.dg-actions { margin: 10px 0; }
#dg-frame { width: 100%; height: 520px; border: 1px solid #E2E8F0; border-radius: 12px; background: #fff; }
/* View first: the page fills the window; "Edit" brings the settings back. */
.pb.pb-viewing .pb-side { display: none; }
.pb.pb-viewing .pb-editor { grid-template-columns: minmax(0, 1fr); }
.pb-head .pb-mode { background: #fff; color: #4C1D95; border-color: #fff; font-weight: 800; }
.pb-newaddr { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #FBCFE8; }
.pb-newaddr[hidden] { display: none; }
.pb-newslug-row { display: inline-flex; align-items: center; background: #fff; border-radius: 10px; overflow: hidden; }
.pb-newslug-row input { border: 0; padding: 6px 4px 6px 10px; font: inherit; font-size: 14px; width: 130px; color: #0F172A; }
.pb-newslug-row span { padding: 0 10px 0 0; color: #475569; font-size: 14px; }
.pb-newhint { font-weight: 700; font-size: 13px; }
.pb-newhint.ok { color: #BBF7D0; } .pb-newhint.bad { color: #FECACA; }
/* Viewing: just the page, full width, with a slim bar on top */
.pb.pb-viewing .pb-devices { display: none; }
.pb.pb-viewing .pb-stage { padding: 0; }
.pb.pb-viewing .pb-frame-wrap iframe { border-radius: 0; box-shadow: none; width: 100% !important; }
.pb.pb-viewing #pb-photos, .pb.pb-viewing #pb-discard, .pb.pb-viewing #pb-unsaved, .pb.pb-viewing #pb-newaddr { display: none !important; }
.pb.pb-viewing.pb-saved #pb-save { display: none; }
.pb.pb-viewing .pb-head { padding: 8px 16px; }
.pb.pb-viewing .pb-status:empty { display: none; }
/* The editor never scrolls as a whole: only its columns do, so the top bar (with Close) always stays in view. */
.pb[open] { overflow: hidden; }
.pb-head { position: relative; z-index: 5; }
/* Drag to reorder sections */
.pb-secs { position: relative; }
.pb-grip { flex: none; width: 22px; display: grid; place-items: center; color: #94A3B8; font-size: 18px; cursor: grab; touch-action: none; user-select: none; }
.pb-grip:hover { color: #6D28D9; }
.pb-sec.is-dragging { opacity: .5; }
.pb-drop-mark { position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: #7C3AED; pointer-events: none; box-shadow: 0 0 0 3px rgba(124,58,237,.2); }
/* Photos from this device */
.pb-device-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 12px; cursor: pointer;
  border: 2px dashed #A78BFA; background: #F5F3FF; color: #4C1D95; font-weight: 700; }
.pb-device-btn:hover { background: #EDE9FE; }
.pb-device-btn:focus-within { outline: 3px solid #C4B5FD; }
.pb-device-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pb-headshot-row { margin: 4px 0 14px; }
.pb.pb-dropping::after { content: "Drop photos to add them to your page"; position: fixed; inset: 12px; z-index: 50; display: grid; place-items: center;
  border: 4px dashed #7C3AED; border-radius: 20px; background: rgba(124,58,237,.12); color: #4C1D95; font-size: 22px; font-weight: 800; pointer-events: none; }
/* Picture chooser */
.pic-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 20px; overflow: hidden; }
.pic-dialog[open] { display: flex; flex-direction: column; }
.pic-dialog::backdrop { background: rgba(15,23,42,.55); }
.pic-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: linear-gradient(100deg, #6D28D9, #DB2777); color: #fff; }
.pic-head h2 { margin: 0; font-size: 20px; color: #fff; }
.pic-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 22px; cursor: pointer; }
.pic-body { padding: 16px 18px 18px; overflow-y: auto; }
.pic-body h3 { margin: 18px 0 8px; font-size: 15px; }
.pic-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px; border: 3px dashed #C4B5FD; border-radius: 16px; background: #F5F3FF; color: #4C1D95; cursor: pointer; text-align: center; }
.pic-drop.is-over { background: #EDE9FE; border-color: #7C3AED; }
.pic-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pic-drop:focus-within { outline: 3px solid #A78BFA; }
.pic-drop-ico { font-size: 32px; }
.pic-drop span:last-child { font-size: 14px; color: #6D28D9; }
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.pic-ph, .pic-av { padding: 0; border: 3px solid transparent; border-radius: 50%; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; }
.pic-ph img { width: 100%; height: 100%; object-fit: cover; }
.pic-ph:hover, .pic-av:hover { border-color: #C4B5FD; }
.pic-ph.is-on, .pic-av.is-on { border-color: #7C3AED; }
.pic-av .pg-headshot { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; font-size: 34px; line-height: 1; box-shadow: none; }
.pic-av .pg-initials { font-size: 26px; font-family: inherit; font-weight: 800; color: #1E293B; background: linear-gradient(135deg, #fff, #E2E8F0); border: 1px solid #CBD5E1; }
.pic-empty { grid-column: 1 / -1; margin: 0; color: #64748B; font-size: 14px; }
.pic-hint { margin: 14px 0 0; font-weight: 700; font-size: 14px; color: #475569; }
.pic-hint.ok { color: #15803D; } .pic-hint.bad { color: #B91C1C; }
/* Template tab: page types two across, compact, so the home-services templates show without much scrolling */
.pb-pane .pb-types:not(.pb-trades) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.pb-pane .pb-types:not(.pb-trades) .pbc-type { padding: 10px 12px; gap: 2px; border-radius: 12px; }
.pb-pane .pb-types:not(.pb-trades) .pbc-ico { font-size: 22px; }
.pb-pane .pb-types:not(.pb-trades) b { font-size: 14.5px; line-height: 1.25; }
.pb-pane .pb-types .pbc-blurb { font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pb-tpl { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.14); color: #fff; font: 600 13px/1.2 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }
.pb-tpl:hover { background: rgba(255,255,255,.26); }
.pb-tpl[hidden] { display: none; }
@media (min-width: 1100px) { .pb-head-r { flex-wrap: nowrap; flex: none; } .pb-head-r .btn, .pb-head-r .pb-link { white-space: nowrap; } }
.pb-head-l { align-items: center; }
/* Where I work: radius + town checklist */
.pb-towns { display: grid; gap: 8px; }
.pb-towns-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pb-towns-mi { width: auto; }
.pb-towns-dd { border: 1px solid #E2E8F0; border-radius: 12px; background: #fff; }
.pb-towns-dd > summary { cursor: pointer; padding: 10px 12px; font-weight: 600; font-size: 14px; list-style: none; }
.pb-towns-dd > summary::after { content: " ▾"; color: #7C3AED; }
.pb-towns-dd[open] > summary::after { content: " ▴"; }
.pb-towns-list { max-height: 260px; overflow: auto; padding: 4px 12px 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.pb-town { display: flex; align-items: center; gap: 6px; font-size: 14px; padding: 3px 0; }
.pb-town small { margin-left: auto; color: #64748B; font-size: 12px; }
.pb-media-ed { display: grid; gap: 8px; }
.pb-media-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pb-media-list li { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.pb-towns-list label.pb-town { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; margin: 0; padding: 4px 0; text-align: left; font-weight: 500; }
.pb-towns-list label.pb-town input { width: 16px; height: 16px; margin: 0; flex: none; }
.pb-towns-list label.pb-town span { flex: 1; }
/* Customers tab: email the people who contacted you */
.pb-tabs { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pb-tabs .pb-tab { padding-left: 4px; padding-right: 4px; font-size: 14px; white-space: nowrap; }
.pb-cust-note { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: #F1F5F9; font-size: 13px; }
.pb-cust-msg.is-bad { color: #B42318; font-weight: 600; } .pb-cust-msg.is-ok { color: #166534; font-weight: 600; }
.pb-cust-box { border: 1px solid #E2E8F0; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; display: grid; gap: 8px; }
.pb-cust-box > summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.pb-cust-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow: auto; display: grid; gap: 2px; }
.pb-cust-list li { display: flex; align-items: center; gap: 8px; padding: 5px 2px; border-bottom: 1px solid #F1F5F9; }
.pb-cust-list li.is-off { opacity: .5; }
.pb-cust-list input { width: 16px; height: 16px; flex: none; }
.pb-cust-who { display: grid; flex: 1; min-width: 0; font-size: 14px; }
.pb-cust-who small { color: #64748B; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-cust-consent { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.pb-cust-consent input { width: 16px; height: 16px; }
.pb-cust-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.pb-cust-tools button { border: 1px solid #E2E8F0; background: #fff; border-radius: 8px; padding: 4px 9px; font: 13px inherit; font-family: inherit; cursor: pointer; }
.pb-cust-ed { min-height: 160px; padding: 10px 12px; border: 1px solid #CBD5E1; border-radius: 10px; font: 15px/1.55 Arial, sans-serif; outline: none; background: #fff; }
.pb-cust-ed:focus { border-color: #7C3AED; box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.pb-cust-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-cust-sent { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pb-cust-sent li { display: grid; font-size: 14px; } .pb-cust-sent small { color: #64748B; }
.pb-cust-paused { background: #FEE2E2; color: #991B1B; font-weight: 600; }
.pb-cust-rules { font-size: 12px; color: #64748B; margin: 4px 0 0; }
.pb-cust-btn { background: #fff !important; color: #6D28D9 !important; border-color: #fff !important; }
.pb-cust-btn:hover { background: #F5F3FF !important; }
.pb-tpl[aria-pressed="true"] { background: #fff !important; color: #14284B !important; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.pb-tpl[aria-pressed="true"]::after { content: "  ✕"; font-weight: 700; margin-left: 6px; }
