/* ---------- Paleta inspirada no Instagram (substitui o azul do Bootstrap) ---------- */
:root {
    --ig-purple: #962fbf;
    --ig-magenta: #d62976;
    --ig-orange: #fa7e1e;
    --ig-yellow: #feda75;
    --ig-blue: #4f5bd5;
    --ig-gradient: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
    --ig-gradient-btn: linear-gradient(45deg, #fa7e1e 0%, #d62976 50%, #962fbf 100%);
    --bs-primary: #d62976;
    --bs-primary-rgb: 214, 41, 118;
    --bs-link-color: #c1246b;
    --bs-link-color-rgb: 193, 36, 107;
    --bs-link-hover-color: #962fbf;
    --bs-link-hover-color-rgb: 150, 47, 191;
    --bs-primary-text-emphasis: #7d1748;
    --bs-primary-bg-subtle: #fbe3ee;
    --bs-primary-border-subtle: #f3a9ca;
    --bs-focus-ring-color: rgba(214, 41, 118, .25);
}

body { background: #faf7fb; }

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: #fff;
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-border-color: transparent;
    --bs-btn-focus-shadow-rgb: 214, 41, 118;
    background-image: var(--ig-gradient-btn);
    background-color: #d62976;
    border: 0;
}
.btn-primary:hover, .btn-primary:focus-visible { filter: brightness(1.08); }
.btn-primary:active { filter: brightness(.95); }
.btn-primary:disabled, .btn-primary.disabled { opacity: .55; }

.btn-outline-primary {
    --bs-btn-color: #d62976;
    --bs-btn-border-color: #d62976;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d62976;
    --bs-btn-hover-border-color: #d62976;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #b81f63;
    --bs-btn-active-border-color: #b81f63;
    --bs-btn-disabled-color: #d62976;
    --bs-btn-disabled-border-color: #d62976;
    --bs-btn-focus-shadow-rgb: 214, 41, 118;
}
.btn-link { --bs-btn-color: #c1246b; --bs-btn-hover-color: #962fbf; --bs-btn-active-color: #962fbf; }

.text-bg-primary { background: var(--ig-gradient-btn) !important; color: #fff !important; }
.border-primary { border-color: #d62976 !important; }
.text-primary { color: #d62976 !important; }

.form-control:focus, .form-select:focus { border-color: #ec8cb6; box-shadow: 0 0 0 .25rem rgba(214, 41, 118, .2); }
.form-check-input:checked { background-color: #d62976; border-color: #d62976; }
.form-check-input:focus { border-color: #ec8cb6; box-shadow: 0 0 0 .25rem rgba(214, 41, 118, .2); }

.nav-tabs .nav-link { color: #6c4a7a; }
.nav-tabs .nav-link.active { color: #d62976; border-bottom-color: transparent; font-weight: 600; box-shadow: inset 0 -3px 0 #d62976; }
.spinner-border { color: #d62976; }


.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 250px; flex-shrink: 0; background: linear-gradient(180deg, #4f5bd5 0%, #962fbf 35%, #d62976 70%, #fa7e1e 100%); color: #fff; padding: 1.25rem 1rem; }
.sidebar .brand { font-weight: 700; font-size: 1.3rem; margin-bottom: .25rem; letter-spacing: .02em; }
.sidebar .greeting { font-size: .85rem; opacity: .85; margin-bottom: 1rem; }
.sidebar .account-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.sidebar .account-select { background-color: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.sidebar .account-select option { color: #222; }
.sidebar .nav-link { color: rgba(255,255,255,.88); border-radius: .375rem; padding: .4rem .6rem; }
.sidebar .nav-link.active, .sidebar .nav-link:hover { background: rgba(255,255,255,.16); color: #fff; }
.content { flex: 1; padding: 1.5rem 2rem; min-width: 0; }
.site-navbar { background: linear-gradient(90deg, #4f5bd5 0%, #962fbf 35%, #d62976 70%, #fa7e1e 100%); }

.post-text { white-space: pre-wrap; line-height: 1.45; }
.post-editor { font-family: inherit; line-height: 1.45; }
.format-badge { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }

.profile-item .item-actions { visibility: hidden; white-space: nowrap; }
.profile-item:hover .item-actions { visibility: visible; }
.item-actions .btn-link { text-decoration: none; }

/* ---------- Artes ---------- */
.art-strip { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; }
.art-strip .art-frame { flex: 0 0 auto; width: 180px; }
.art-strip .art-frame.story { width: 135px; }
.art-frame svg, .art-frame img { width: 100%; height: auto; display: block; border-radius: .4rem; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.art-frame .art-label { font-size: .7rem; color: #6c757d; text-align: center; margin-top: .15rem; }
.visual-box { border: 1px dashed #d7c8e6; border-radius: .5rem; padding: .75rem; background: #fcfaff; }
.sample-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.sample-strip svg { width: 100%; height: auto; border-radius: .5rem; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.swatch { display: inline-block; width: 1rem; height: 1rem; border-radius: .25rem; border: 1px solid rgba(0,0,0,.2); vertical-align: middle; }
.asset-thumb { width: 84px; height: 84px; object-fit: cover; border: 1px solid #dee2e6; border-radius: .5rem; background: repeating-conic-gradient(#f1f3f5 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.asset-thumb.logo { object-fit: contain; }
.reel-scenes td, .reel-scenes th { font-size: .82rem; vertical-align: top; }
.metric { font-variant-numeric: tabular-nums; }
.media-table td { font-size: .85rem; vertical-align: top; }
.media-table .caption-cell { max-width: 420px; }

@media (max-width: 768px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; }
    .content { padding: 1rem; }
    .profile-item .item-actions { visibility: visible; }
    .sample-strip { grid-template-columns: 1fr; }
}

/* ---------- Área administrativa ---------- */
.kpi .kpi-value { font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.kpi .kpi-label { font-size: .8rem; color: #6c757d; }
.kpi .kpi-sub { font-size: .8rem; color: #6c757d; }
.mini-chart-plot { display: flex; align-items: flex-end; gap: 2px; height: 96px; border-bottom: 1px solid #dee2e6; }
.mini-chart-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.mini-chart-col:hover .mini-chart-bar { background: #d62976; }
.mini-chart-bar { width: 100%; background: #962fbf; border-radius: 3px 3px 0 0; min-height: 2px; }
.mini-chart-bar.is-zero { background: #e9ecef; }
.mini-chart-axis { display: flex; justify-content: space-between; margin-top: .15rem; }
.admin-table th { white-space: nowrap; font-size: .8rem; }
.admin-table td { font-size: .875rem; vertical-align: middle; }
.admin-table th.sortable { cursor: pointer; user-select: none; }
.admin-table th.sortable:hover { text-decoration: underline; }
.nav-section { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin: 1rem .6rem .25rem; }

/* ---------- Cadastro da conta em formato de Stories ---------- */
.story-stage { min-height: calc(100vh - 64px - 3rem); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; border-radius: 20px; background: #140b1b; font-family: 'Figtree', system-ui, sans-serif; }
.story-row { display: flex; align-items: center; gap: 2.5rem; }
.story-nav { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #2e2138; color: #fff; }
.story-nav:not(:disabled):hover { background: #3f2f4b; }
.story-nav:disabled { opacity: .3; }

.story-card { --story-bg: #b3215f; --story-deep: #8f1a4c; --story-line: #f2b3cd;
    width: 460px; height: min(780px, calc(100vh - 7rem)); min-height: 560px; box-sizing: border-box; display: flex; flex-direction: column;
    padding: .5rem 1.4rem 1.25rem; border-radius: 22px; background: var(--story-bg); color: #fff; transition: background-color .3s ease; }
.story-2 { --story-bg: #6a2c9c; --story-deep: #511f79; --story-line: #cfb2e6; }
.story-3 { --story-bg: #3f4bc4; --story-deep: #2f399c; --story-line: #b7bdf0; }
.story-4 { --story-bg: #c2410c; --story-deep: #92310a; --story-line: #f6c2a8; }
.story-5 { --story-bg: #2b1f33; --story-deep: #1b1220; --story-line: #8d7a99; }
.story-6 { --story-bg: #9a1f6a; --story-deep: #741650; --story-line: #eab0d2; }
.story-7 { --story-bg: #36307a; --story-deep: #25205a; --story-line: #b9b4ec; }

.story-progress { display: flex; gap: 4px; }
.story-progress button { flex: 1; padding: .55rem 0; border: 0; background: none; }
.story-progress span { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.story-progress .is-seen span { background: #fff; }
.story-progress button:not(:disabled):hover span { background: rgba(255,255,255,.75); }
.story-progress button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

.story-head { display: flex; align-items: center; gap: .65rem; margin-top: .35rem; }
.story-avatar { width: 36px; height: 36px; flex-shrink: 0; padding: 2px; box-sizing: border-box; border-radius: 50%; background: linear-gradient(45deg, #feda75, #fa7e1e, #fff); }
.story-avatar img, .story-avatar span { display: grid; place-items: center; width: 100%; height: 100%; box-sizing: border-box; border: 2px solid var(--story-bg); border-radius: 50%; object-fit: cover; background: #2b1f33; font: 700 .7rem 'Bricolage Grotesque', system-ui, sans-serif; }
.story-who { flex: 1; min-width: 0; display: flex; gap: .5rem; align-items: baseline; font-size: .9rem; }
.story-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-who span { opacity: .85; white-space: nowrap; }
.story-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; color: #fff; border-radius: 50%; }
.story-close:hover { background: rgba(255,255,255,.12); }

.story-body { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -.6rem; padding: 0 .6rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.4) transparent; }
.story-body h1 { margin: 1.6rem 0 .5rem; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 2.3rem; line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
.story-body h1:focus { outline: none; }
.story-hint { margin-bottom: 1.4rem; opacity: .9; line-height: 1.45; }
.story-field { margin-bottom: 1.15rem; }
.story-field > label, .story-label { display: block; margin-bottom: .45rem; font-size: .875rem; font-weight: 600; }
.story-input { width: 100%; box-sizing: border-box; padding: .65rem .9rem; border: 1.5px solid var(--story-line); border-radius: 14px; background: transparent; color: #fff; font: inherit; line-height: 1.45; }
textarea.story-input { resize: vertical; }
.story-input::placeholder { color: rgba(255,255,255,.72); }
.story-input:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.story-input-sm { padding: .5rem .9rem; font-size: .9rem; }

.story-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .6rem; }
.story-chip { padding: .5rem .95rem; border: 1.5px solid var(--story-line); border-radius: 999px; background: transparent; color: #fff; font: 500 .9rem 'Figtree', system-ui, sans-serif; }
button.story-chip:hover { background: rgba(255,255,255,.12); }
.story-chip.is-on { border-color: #fff; background: #fff; color: var(--story-deep); font-weight: 600; }
.story-chip.is-dashed { border-style: dashed; }
.story-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: .6rem; border-radius: 14px; background: var(--story-deep); }
.story-seg button { padding: .55rem 0; border: 0; border-radius: 10px; background: transparent; color: #fff; font: 500 .9rem 'Figtree', system-ui, sans-serif; }
.story-seg button:hover { background: rgba(255,255,255,.12); }
.story-seg button.is-on { background: #fff; color: var(--story-deep); font-weight: 600; }

.story-insp { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: .4rem; margin-bottom: .9rem; }
.story-insp .story-input-sm { grid-column: 1; }
.story-insp-status { grid-column: 1 / -1; font-size: .8rem; opacity: .85; }
.story-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--story-deep); color: #fff; }

.story-box { margin-bottom: 1rem; padding: .9rem 1rem; border-radius: 14px; background: var(--story-deep); line-height: 1.45; }
.story-box code, .story-note code { color: #ffe0ee; }
.story-diag { font-size: .85rem; display: grid; gap: .3rem; }
.story-account { display: flex; align-items: center; gap: .65rem; margin-top: .6rem; padding: .55rem .65rem; border-radius: 12px; background: rgba(255,255,255,.1); }
.story-account img { border-radius: 50%; }
.story-note { font-size: .85rem; opacity: .9; line-height: 1.45; }
.story-alert { margin-bottom: 1rem; padding: .6rem .85rem; border-radius: 12px; background: #fff; color: #8a1538; font-size: .9rem; }
.story-alert.is-ok { color: #14532d; }

.story-foot { display: flex; gap: .6rem; padding-top: .9rem; }
.story-btn { padding: .65rem 1.3rem; border: 0; border-radius: 999px; background: #fff; color: var(--story-deep); font: 600 .95rem 'Figtree', system-ui, sans-serif; white-space: nowrap; }
.story-btn:hover { filter: brightness(.95); }
.story-btn.is-ghost { border: 1.5px solid var(--story-line); background: transparent; color: #fff; }
.story-btn:disabled { opacity: .6; }
.story-back { display: none; }
.story-card button:focus-visible, .story-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.story-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 460px; min-height: 2rem; color: #b9a9c4; font-size: .85rem; }
.story-meta-link { --bs-btn-color: #b9a9c4; --bs-btn-hover-color: #fff; text-decoration: none; padding: 0; }

@media (max-width: 768px) {
    .story-stage { margin: -1rem; padding: 0 0 1rem; border-radius: 0; min-height: 100vh; justify-content: flex-start; }
    .story-row { width: 100%; }
    .story-nav { display: none; }
    .story-card { width: 100%; height: auto; min-height: 0; border-radius: 0; }
    .story-body { overflow: visible; }
    .story-back { display: inline-block; }
    .story-meta { width: 100%; padding: 0 1rem; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
    .story-card { transition: none; }
}

/* ---------- Perfil da conta em formato de mural ---------- */
.mural { margin: -1.5rem -2rem; padding: 2rem 0 1.5rem 3rem; min-height: calc(100vh - 64px); box-sizing: border-box; background: #f1edf5; color: #1c1320; font-family: 'Figtree', system-ui, sans-serif; }
.mural-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; padding-right: 3rem; margin-bottom: 1.25rem; }
.mural-title { flex: 1 1 320px; }
.mural-title h1 { margin: 0; font: 700 1.9rem 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.01em; }
.mural-title p { margin: .2rem 0 0; color: #5b4a64; }
.mural-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #e3dbea; }
.mural-seg button { border: 0; border-radius: 9px; padding: .45rem .9rem; background: transparent; color: #4a3d52; font: 500 .9rem 'Figtree', system-ui, sans-serif; }
.mural-seg button[aria-pressed="true"] { background: #fff; color: #1c1320; font-weight: 600; }

.mural-btn { --cat: #d62976; border: 0; border-radius: 10px; padding: .5rem .85rem; background: #fff; color: #1c1320; font: 600 .85rem 'Figtree', system-ui, sans-serif; white-space: nowrap; }
.mural-btn:hover { filter: brightness(.96); }
.mural-btn.is-dark { padding: .7rem 1.1rem; border-radius: 12px; background: #1c1320; color: #fff; font-size: .9rem; }
.mural-btn.is-dark:disabled { opacity: .5; }
.mural-btn.is-cat { background: var(--cat); color: #fff; }
.mural-btn.is-ghost { border: 1px solid #d6cbdd; background: #fff; font-weight: 500; }

.mural-alert { margin: 0 3rem 1rem 0; padding: .7rem 1rem; border-radius: 12px; background: #fff; color: #3b2f43; }
.mural-alert.is-error { color: #8a1538; }
.mural-sugbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 3rem 1.25rem 0; padding: .65rem .65rem .65rem 1rem; border-radius: 12px; background: #fff; }
.mural-sugbar span { flex: 1 1 260px; }

.mural-board { display: flex; align-items: flex-start; gap: 20px; overflow-x: auto; padding: .25rem 3rem 1rem 0; scroll-snap-type: x proximity; scroll-padding-left: 0; scrollbar-width: thin; }
.mural-board:focus-visible { outline: 2px solid #d62976; outline-offset: 4px; border-radius: 8px; }
.mural-col { --cat: #b3215f; --tint: #fbe3ee; flex: 0 0 280px; display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; }
.mural-col h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .25rem; font-size: .95rem; font-weight: 700; }
.mural-col h2 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cat); }
.mural-col h2 .count { color: #6f6377; font-weight: 500; }
.cat-Audience { --cat: #6a2c9c; --tint: #efe3f8; }
.cat-Voice { --cat: #3f4bc4; --tint: #e4e7fb; }
.cat-Pillar { --cat: #c2410c; --tint: #fde8dc; }
.cat-Format { --cat: #2b1f33; --tint: #e6e1ea; }
.cat-Differential { --cat: #9a1f6a; --tint: #f7e1ef; }
.cat-Goal { --cat: #36307a; --tint: #e5e3f6; }
.cat-Avoid { --cat: #7a2236; --tint: #f6e2e7; }
.cat-Hashtag { --cat: #8a4b0f; --tint: #f6eadb; }
.mural-col .mural-btn { --cat: inherit; }
.mural-col .mural-btn.is-cat { background: var(--cat); }

.mural-note { position: relative; display: flex; align-items: flex-start; border-radius: 14px; background: var(--tint); line-height: 1.4; }
.mural-col .mural-note:nth-of-type(3n+2):not(.is-editing):not(.is-suggestion) { transform: rotate(-.5deg); }
.mural-col .mural-note:nth-of-type(3n):not(.is-editing):not(.is-suggestion) { transform: rotate(.5deg); }
.mural-note-text { flex: 1; min-width: 0; padding: .85rem 2.2rem .85rem 1rem; border: 0; border-radius: 14px; background: none; color: inherit; font: 400 .95rem/1.4 'Figtree', system-ui, sans-serif; text-align: left; overflow-wrap: anywhere; cursor: text; }
.mural-note-text:hover { background: rgba(255,255,255,.45); }
.mural-icon { position: absolute; top: .4rem; right: .4rem; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #4a3d52; opacity: 0; }
.mural-note:hover .mural-icon, .mural-note:focus-within .mural-icon { opacity: 1; }
.mural-icon:hover { background: rgba(255,255,255,.7); color: #8a1538; }
@media (hover: none) { .mural-icon { opacity: 1; } }
.mural-note.is-editing { flex-direction: column; gap: .5rem; padding: .6rem; background: #fff; box-shadow: 0 0 0 2px var(--cat); }
.mural-input { width: 100%; box-sizing: border-box; border: 0; border-radius: 10px; padding: .5rem; background: var(--tint); color: #1c1320; font: 400 .95rem/1.4 'Figtree', system-ui, sans-serif; resize: vertical; }
.mural-input:focus { outline: 2px solid var(--cat); outline-offset: 1px; }
.mural-note.is-suggestion { flex-direction: column; gap: .25rem; padding: .85rem 1rem; border: 2px dashed var(--cat); background: #fff; font-size: .95rem; }
.mural-tag { font-size: .75rem; font-weight: 700; color: var(--cat); }
.mural-why { font-size: .82rem; color: #5b4a64; }
.mural-actions { display: flex; gap: .4rem; margin-top: .45rem; }
.mural-add { padding: .75rem 1rem; border: 1.5px dashed #c9bcd1; border-radius: 14px; background: transparent; color: #5b4a64; font: 500 .9rem 'Figtree', system-ui, sans-serif; text-align: left; }
.mural-add:hover { border-color: var(--cat); color: #1c1320; }
.mural button:focus-visible { outline: 2px solid var(--cat, #d62976); outline-offset: 2px; }

.mural-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 3rem 0 0; color: #5b4a64; font-size: .85rem; }
.mural-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #d6cbdd; border-radius: 50%; background: #fff; color: #1c1320; }
.mural-arrow:hover { border-color: #1c1320; }

@media (max-width: 768px) {
    .mural { margin: -1rem; padding: 1.25rem 0 1rem 1rem; }
    .mural-head, .mural-board, .mural-foot { padding-right: 1rem; }
    .mural-alert, .mural-sugbar { margin-right: 1rem; }
    .mural-col { flex-basis: 82vw; }
}
.mural-col-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; }
.mural-col-head h2 { flex: 1; min-width: 0; margin: 0; }
.mural-help { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1.5px solid var(--cat); border-radius: 50%; background: #fff; color: var(--cat); font: 700 .85rem 'Figtree', system-ui, sans-serif; cursor: help; }
.mural-help:hover, .mural-help:focus-visible { background: var(--cat); color: #fff; }

/* ---------- Balão de ajuda (data-bubble, ver js/ui.js) ---------- */
.ui-bubble { position: fixed; z-index: 1080; top: 0; left: 0; max-width: min(300px, calc(100vw - 16px)); box-sizing: border-box; padding: .75rem .95rem; border-radius: 16px; background: #1c1320; color: #fff; font: 400 .87rem/1.45 'Figtree', system-ui, sans-serif; box-shadow: 0 10px 28px rgba(28, 19, 32, .28); pointer-events: none; visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
.ui-bubble.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .15s ease, transform .15s ease; }
.ui-bubble::after { content: ""; position: absolute; left: var(--arrow-x, 50%); bottom: -6px; width: 14px; height: 14px; background: #1c1320; border-radius: 0 0 4px 0; transform: translateX(-50%) rotate(45deg); }
.ui-bubble.is-below { transform: translateY(-4px); }
.ui-bubble.is-below.is-open { transform: none; }
.ui-bubble.is-below::after { top: -6px; bottom: auto; border-radius: 4px 0 0 0; }
@media (prefers-reduced-motion: reduce) { .ui-bubble, .ui-bubble.is-open { transition: none; transform: none; } }

/* ---------- Barra superior e menu (substituem a barra lateral) ---------- */
body { font-family: 'Figtree', system-ui, sans-serif; color: #1c1320; }
.topbar { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: .75rem; height: 64px; box-sizing: border-box; padding: 0 1.25rem; background: #fff; border-bottom: 1px solid #ece6ef; }
.topbar-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: #1c1320; }
.topbar-icon:hover { background: #f4eef7; }
.topbar-brand { display: inline-flex; align-items: center; gap: .6rem; color: #1c1320; text-decoration: none; font: 700 1.25rem 'Bricolage Grotesque', system-ui, sans-serif; }
.topbar-brand:hover { color: #1c1320; }
.brand-mark { width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(45deg, #fa7e1e, #d62976 55%, #962fbf); }
.topbar-link { color: #b0215f; font-weight: 600; text-decoration: none; }
.topbar-account { position: relative; margin-left: auto; }
.account-pill { display: flex; align-items: center; gap: .6rem; max-width: 280px; padding: 4px 12px 4px 4px; border: 1px solid #ece6ef; border-radius: 999px; background: #fff; color: #1c1320; font: 600 .9rem 'Figtree', system-ui, sans-serif; }
.account-pill:hover { border-color: #d6cbdd; }
.account-pill-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 280px; padding: .4rem; border-radius: 16px; background: #fff; border: 1px solid #ece6ef; box-shadow: 0 12px 32px rgba(28, 19, 32, .14); }
.account-menu-item { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .6rem; border: 0; border-radius: 10px; background: none; color: #1c1320; font: 500 .92rem 'Figtree', system-ui, sans-serif; text-align: left; text-decoration: none; }
.account-menu-item:hover { background: #f4eef7; color: #1c1320; }
.account-menu-item small { display: block; color: #6f6377; }
.account-menu-item.is-current { background: #fdf0f6; font-weight: 700; }
.account-menu-item.is-add { color: #b0215f; font-weight: 600; }

.avatar-ring { display: inline-block; flex-shrink: 0; padding: 2px; box-sizing: border-box; border-radius: 50%; background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf); }
.avatar-ring img, .avatar-ring > span { display: grid; place-items: center; width: 100%; height: 100%; box-sizing: border-box; border: 2px solid #fff; border-radius: 50%; object-fit: cover; background: #2b1f33; color: #fff; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; }

.drawer-overlay { position: fixed; inset: 0; z-index: 1040; background: rgba(20, 11, 27, .5); }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1050; width: min(340px, 88vw); box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; padding: .75rem .9rem 1rem; overflow-y: auto; background: #fff; animation: drawer-in .18s ease; }
@keyframes drawer-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-left: .5rem; margin-bottom: .75rem; }
.drawer-account { display: flex; align-items: center; gap: .75rem; padding: .75rem; margin-bottom: .75rem; border-radius: 16px; background: #f4eef7; }
.drawer-account b, .drawer-account span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-account span { font-size: .85rem; color: #6f6377; }
.drawer-section { margin: .9rem .75rem .25rem; font-size: .82rem; font-weight: 700; color: #6f6377; }
.drawer-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .6rem .75rem; border: 0; border-radius: 10px; background: none; color: #1c1320; font: 500 .97rem 'Figtree', system-ui, sans-serif; text-align: left; text-decoration: none; }
.drawer-link:hover { background: #f4eef7; color: #1c1320; }
.drawer-link.active { background: #fdf0f6; color: #9e1d57; font-weight: 700; }
.drawer-link.is-muted { color: #4a3d52; }
.drawer-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #d62976; color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.drawer-foot { margin-top: auto; padding-top: .6rem; border-top: 1px solid #ece6ef; }
.topbar button:focus-visible, .drawer :is(a, button):focus-visible, .account-menu :is(a, button):focus-visible { outline: 2px solid #d62976; outline-offset: 2px; }
.min-w-0 { min-width: 0; }

/* ---------- Início guiado: régua de etapas e fala do assistente ---------- */
.guide { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border-radius: 18px; background: #fff; border: 1px solid #ece6ef; }
.guide.is-compact { padding: .8rem 1.25rem; }
.guide-top { display: flex; align-items: flex-start; gap: 1.5rem; }
.guide-steps { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .78rem; color: #6f6377; }
.guide-steps li { display: flex; flex-direction: column; gap: 6px; }
.guide-steps .bar { height: 4px; border-radius: 2px; background: #e6dcec; }
.guide-steps .is-done .bar, .guide-steps .is-current .bar { background: #d62976; }
.guide-steps .is-current { color: #1c1320; font-weight: 700; }
.guide-later { flex-shrink: 0; font-size: .88rem; font-weight: 600; color: #b0215f; text-decoration: none; }
.guide-body { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1rem; margin-top: 1rem; }
.guide-avatar { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(45deg, #fa7e1e, #d62976 55%, #962fbf); }
.guide-say { flex: 1 1 380px; margin: 0; font-size: 1.02rem; line-height: 1.5; color: #2b1f33; }
.guide-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.guide-btn { display: inline-block; padding: .65rem 1.15rem; border-radius: 12px; background: #1c1320; color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.guide-btn:hover { color: #fff; filter: brightness(1.15); }
.guide-btn.is-ghost { background: #fff; color: #1c1320; border: 1px solid #d6cbdd; }
.guide-btn.is-ghost:hover { color: #1c1320; border-color: #1c1320; filter: none; }
.mural .guide { margin-right: 3rem; }

.onboard { max-width: 720px; margin: 3rem auto 0; }
.onboard-say { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.4rem; color: #4a3d52; font-size: 1.02rem; }
.onboard-question { display: block; margin: 0 0 1.75rem; font: 700 clamp(2rem, 4.5vw, 3rem)/1.05 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.02em; }
.onboard-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.onboard-handle { flex: 1 1 320px; display: flex; align-items: center; padding: 0 1.1rem; border: 2px solid #d62976; border-radius: 16px; background: #fff; font-size: 1.35rem; }
.onboard-handle span { color: #6f6377; }
.onboard-handle input { flex: 1; min-width: 0; padding: 1rem .35rem; border: 0; outline: none; background: transparent; font: 500 1.35rem 'Figtree', system-ui, sans-serif; color: #1c1320; }
.onboard-go { padding: 0 1.75rem; min-height: 60px; border: 0; border-radius: 16px; background: #1c1320; color: #fff; font: 600 1.05rem 'Figtree', system-ui, sans-serif; }
.onboard-card { padding: 1.5rem 1.6rem; border-radius: 20px; background: #fff; border: 1px solid #ece6ef; }
.onboard-card > p:first-child { font-size: 1.05rem; line-height: 1.5; color: #3b2f43; }
.onboard-connect { padding: .8rem 1.35rem; border: 0; border-radius: 12px; background: linear-gradient(45deg, #fa7e1e, #d62976 55%, #962fbf); color: #fff; font: 600 1rem 'Figtree', system-ui, sans-serif; }
.onboard-skip { padding: .75rem 1.2rem; border: 1px solid #ddd3e2; border-radius: 12px; background: #fff; color: #1c1320; font: 500 1rem 'Figtree', system-ui, sans-serif; }
.onboard-note { margin: 1rem 0 0; font-size: .88rem; line-height: 1.5; color: #6f6377; }

/* ---------- Início: "Que bom te ver de volta" ---------- */
.hub { max-width: 920px; margin: 2.5rem auto 0; }
.hub-hello { margin: 0; font-size: 1.25rem; color: #4a3d52; }
.hub h1 { margin: .25rem 0 .6rem; font: 700 clamp(2.4rem, 5vw, 3.5rem)/1 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.025em; }
.hub-status { margin: 0 0 1.75rem; color: #6f6377; }
.hub-resume { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding: 1.1rem 1.3rem; border-radius: 18px; background: #1c1320; color: #fff; text-decoration: none; }
.hub-resume:hover { color: #fff; filter: brightness(1.15); }
.hub-resume b { display: block; font-size: 1.1rem; }
.hub-resume span span { color: #d5c6dd; font-size: .92rem; }
.hub-resume-count { flex-shrink: 0; padding: .35rem .75rem; border-radius: 999px; background: #d62976; font-size: .85rem; font-weight: 700; }
.hub-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hub-option { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: 18px; background: #fff; border: 1px solid #ece6ef; color: #1c1320; text-decoration: none; }
.hub-option:hover { border-color: #d6cbdd; color: #1c1320; }
.hub-option > span:first-child { flex: 1; min-width: 0; }
.hub-option b { display: block; font-size: 1.08rem; }
.hub-option span span { font-size: .88rem; color: #6f6377; }
.hub-option svg { flex-shrink: 0; color: #b0215f; }
.hub-option.is-hot { border: 2px solid #d62976; }
.hub-badge { flex-shrink: 0; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: #d62976; color: #fff; font-size: .85rem; font-weight: 700; display: grid; place-items: center; }
.hub-ask { display: flex; align-items: center; gap: .6rem; margin-top: 1.4rem; padding: .5rem .5rem .5rem 1.25rem; border: 1px solid #ddd3e2; border-radius: 18px; background: #fff; }
.hub-ask:focus-within { border-color: #d62976; box-shadow: 0 0 0 3px rgba(214, 41, 118, .15); }
.hub-ask input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 400 1rem 'Figtree', system-ui, sans-serif; color: #1c1320; }
.hub-ask button { padding: .7rem 1.25rem; border: 0; border-radius: 12px; background: #1c1320; color: #fff; font: 600 .95rem 'Figtree', system-ui, sans-serif; }
.hub-ask-hint { margin: .5rem 0 0 .25rem; font-size: .82rem; color: #6f6377; }
.hub-name { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2rem 0 1rem; }
.hub-name input { padding: .45rem .75rem; border: 1px solid #ddd3e2; border-radius: 10px; font: inherit; }
.hub-option:focus-visible, .hub-resume:focus-visible, .guide a:focus-visible { outline: 2px solid #d62976; outline-offset: 3px; }

/* ---------- Landing (visitante) ---------- */
.landing { margin: -1.5rem -2rem; min-height: calc(100vh - 64px); box-sizing: border-box; padding: 3rem 4.5rem; background: #140b1b; color: #f6eff9; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 4rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.landing h1 { margin: 0; max-width: 640px; font: 700 clamp(2.5rem, 5.5vw, 4.25rem)/1 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.025em; }
.landing-lead { margin: 1.5rem 0 2.25rem; max-width: 560px; font-size: 1.2rem; line-height: 1.5; color: #d5c6dd; }
.landing-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.landing-cta span { color: #b8a6c2; }
.landing-start { padding: 1.1rem 2.1rem; border-radius: 999px; background: #fff; color: #140b1b; font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.landing-start:hover { color: #140b1b; filter: brightness(.94); }
.landing-login { display: inline-block; margin-top: 1rem; color: #f7a8cb; font-weight: 600; text-decoration: none; }
.landing-login:hover { color: #fff; }
.landing-steps { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 3rem 0 0; padding: 0; list-style: none; color: #d5c6dd; }
.landing-steps li { display: flex; align-items: baseline; gap: .6rem; }
.landing-steps b { font: 700 1.4rem 'Bricolage Grotesque', system-ui, sans-serif; color: #fa7e1e; }
.landing-steps li:nth-child(2) b { color: #f06ba3; }
.landing-steps li:nth-child(3) b { color: #b07be0; }
.landing-phone { position: relative; }
.phone { width: 320px; box-sizing: border-box; border: 8px solid #2e2138; border-radius: 40px; background: #fff; overflow: hidden; color: #1c1320; }
.phone-head { display: flex; align-items: center; gap: .6rem; padding: 1rem; font-size: .9rem; }
.phone-art { aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: center; padding: 1.75rem; box-sizing: border-box; background: #2b1f33; color: #fff; }
.phone-art strong { font: 700 1.75rem/1.1 'Bricolage Grotesque', system-ui, sans-serif; }
.phone-art span { margin-top: .6rem; color: #f2b3cd; }
.phone p { margin: 0; padding: .8rem 1rem 1.1rem; font-size: .85rem; line-height: 1.45; }
.phone-note { position: absolute; right: -24px; bottom: 60px; width: 220px; padding: .9rem 1rem; border-radius: 18px; background: #2e2138; font-size: .88rem; line-height: 1.4; }
.phone-note small { display: block; margin-bottom: .2rem; color: #f7a8cb; font-weight: 700; }

@media (max-width: 992px) {
    .landing { padding: 2rem 1.25rem; }
    .landing-hero { grid-template-columns: 1fr; }
    .landing-phone { display: none; }
    .hub-options { grid-template-columns: 1fr; }
    .guide-steps { font-size: 0; }
    .guide-steps .is-current { font-size: .78rem; }
}
@media (max-width: 768px) {
    .topbar { padding: 0 .75rem; }
    .account-pill-name { display: none; }
    .landing { margin: -1rem; }
    .hub, .onboard { margin-top: 1.25rem; }
    .mural .guide { margin-right: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }

/* FocusOnNavigate (Routes.razor) leva o foco ao <h1> a cada navegação, para leitores de tela; sem contorno visual. */
h1:focus { outline: none; }

/* ---------- Base de engajamento ---------- */
.eng { margin: -1.5rem -2rem; padding: 2rem 3rem 3rem; min-height: calc(100vh - 64px); box-sizing: border-box; background: #f1edf5; }
.eng-head h1 { margin: 0; font: 700 1.9rem 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.01em; }
.eng-head p { margin: .25rem 0 1.5rem; max-width: 720px; color: #5b4a64; }
.eng-alert { margin-bottom: 1rem; padding: .7rem 1rem; border-radius: 12px; background: #fff; color: #3b2f43; }
.eng-alert.is-error { color: #8a1538; }

.eng-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 2rem; padding: 0; list-style: none; }
.eng-step { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.3rem 1.3rem; border-radius: 20px; background: #fff; }
.eng-step-n { position: absolute; top: 1.1rem; right: 1.2rem; font: 700 2.4rem/1 'Bricolage Grotesque', system-ui, sans-serif; color: #eadff0; }
.eng-step:nth-child(1) .eng-step-n { color: #fbd9c2; }
.eng-step:nth-child(2) .eng-step-n { color: #f6c6dc; }
.eng-step:nth-child(3) .eng-step-n { color: #e2d0f2; }
.eng-step h2 { margin: 0; padding-right: 2.5rem; font-size: 1.1rem; font-weight: 700; }
.eng-step p { margin: 0; font-size: .92rem; line-height: 1.45; color: #4a3d52; }
.eng-step-status { display: flex; flex-direction: column; gap: .15rem; margin-top: auto; padding-top: .35rem; font-size: .85rem; color: #6f6377; }
.eng-step-status .is-bad { color: #8a1538; }
.eng-step .eng-btn { align-self: flex-start; margin-top: .4rem; }

.eng-btn { display: inline-block; padding: .6rem 1.05rem; border: 1px solid #d6cbdd; border-radius: 12px; background: #fff; color: #1c1320; font: 600 .9rem 'Figtree', system-ui, sans-serif; text-decoration: none; white-space: nowrap; }
.eng-btn:hover { border-color: #1c1320; color: #1c1320; }
.eng-btn.is-strong { border-color: #1c1320; background: #1c1320; color: #fff; }
.eng-btn.is-strong:hover { color: #fff; filter: brightness(1.15); }
.eng-btn.is-ghost { background: #fff; }
.eng-btn.is-small { padding: .42rem .8rem; border-radius: 10px; font-size: .85rem; }
.eng-btn:disabled { opacity: .5; }
.eng-link { padding: 0; border: 0; background: none; color: #4a3d52; font: 600 .85rem 'Figtree', system-ui, sans-serif; text-decoration: underline; text-underline-offset: 2px; }
.eng-link:hover { color: #1c1320; }
.eng-link.is-danger { color: #8a1538; }

.eng-patterns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin-bottom: 2.25rem; scroll-margin-top: 80px; }
.eng-col { display: flex; flex-direction: column; gap: 10px; }
.eng-col-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.eng-col-head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.eng-col-head h3 span { color: #6f6377; font-weight: 500; }
.eng-empty { margin: 0; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(255,255,255,.6); color: #5b4a64; font-size: .92rem; }

.eng-card { --cat: #2b1f33; --tint: #e6e1ea; display: flex; flex-direction: column; gap: .35rem; padding: .95rem 1.05rem; border-radius: 16px; }
.eng-card.is-proposed { border: 2px dashed var(--cat); background: #fff; }
.eng-card.is-approved { background: var(--tint); }
.kind-Hook { --cat: #b3215f; --tint: #fbe3ee; }
.kind-Caption { --cat: #3f4bc4; --tint: #e4e7fb; }
.kind-Visual { --cat: #9a1f6a; --tint: #f7e1ef; }
.kind-Topic { --cat: #c2410c; --tint: #fde8dc; }
.kind-Hashtag { --cat: #8a4b0f; --tint: #f6eadb; }
.kind-Timing { --cat: #36307a; --tint: #e5e3f6; }
.kind-CallToAction { --cat: #6a2c9c; --tint: #efe3f8; }
.kind-Reels { --cat: #7a2236; --tint: #f6e2e7; }
.kind-Stories { --cat: #1d5f73; --tint: #dff0f4; }
.eng-kind { align-self: flex-start; padding: .2rem .6rem; border-radius: 999px; background: var(--cat); color: #fff; font-size: .75rem; font-weight: 700; }
.eng-statement { margin: 0; font-size: .98rem; line-height: 1.45; color: #1c1320; }
.eng-evidence { margin: 0; font-size: .85rem; line-height: 1.45; color: #5b4a64; }
.eng-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: .35rem; }
.eng-card.is-proposed .eng-actions { gap: .45rem; }
.eng-input { width: 100%; box-sizing: border-box; padding: .55rem .7rem; border: 1px solid #d6cbdd; border-radius: 10px; font: 400 .95rem/1.45 'Figtree', system-ui, sans-serif; resize: vertical; }
.eng-input:focus { outline: 2px solid var(--cat); outline-offset: 1px; }

.eng-add { margin-top: .4rem; padding: .9rem 1rem; border: 1.5px dashed #c9bcd1; border-radius: 16px; }
.eng-add-label { display: block; margin-bottom: .45rem; font-size: .88rem; font-weight: 700; }
.eng-add-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.eng-add-row select, .eng-add-row input { padding: .45rem .6rem; border: 1px solid #d6cbdd; border-radius: 10px; background: #fff; font: 400 .9rem 'Figtree', system-ui, sans-serif; }
.eng-add-row input { flex: 1 1 200px; min-width: 0; }
.eng-rejected { margin-top: .4rem; font-size: .9rem; }
.eng-rejected summary { cursor: pointer; font-weight: 600; color: #4a3d52; }
.eng-rejected-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; padding: .55rem 0; border-bottom: 1px solid #e6dcec; }
.eng-rejected-item > span { flex: 1 1 260px; color: #4a3d52; }

.eng-research { margin-bottom: 2.25rem; padding: 1.4rem 1.5rem; border-radius: 20px; background: #fff; }
.eng-research h2, .eng-media h2 { margin: 0; font: 700 1.35rem 'Bricolage Grotesque', system-ui, sans-serif; }
.eng-summary { margin: .6rem 0 0; max-width: 860px; line-height: 1.55; color: #3b2f43; }
.eng-research h3 { margin: 1.25rem 0 .6rem; font-size: .95rem; font-weight: 700; }
.eng-ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.eng-idea { display: flex; flex-direction: column; gap: .5rem; padding: .85rem 1rem; border-radius: 14px; background: #f6f2f8; }
.eng-idea p { margin: 0; font-size: .93rem; line-height: 1.45; }
.eng-idea a { margin-top: auto; font-size: .85rem; font-weight: 700; color: #b0215f; text-decoration: none; }
.eng-idea a:hover { text-decoration: underline; }
.eng-sources { margin-top: 1rem; font-size: .88rem; }
.eng-sources summary { cursor: pointer; font-weight: 600; color: #4a3d52; }
.eng-sources ul { margin: .5rem 0 0; }

.eng-media-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.eng-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: #e3dbea; }
.eng-seg button { border: 0; border-radius: 9px; padding: .45rem .85rem; background: transparent; color: #4a3d52; font: 500 .88rem 'Figtree', system-ui, sans-serif; }
.eng-seg button[aria-pressed="true"] { background: #fff; color: #1c1320; font-weight: 600; }
.eng-add-post { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; width: 100%; margin-bottom: 1rem; padding: 1rem 1.2rem; border: 1.5px dashed #c9bcd1; border-radius: 16px; background: transparent; color: #1c1320; font: 700 1rem 'Figtree', system-ui, sans-serif; text-align: left; }
.eng-add-post span { font-weight: 400; font-size: .88rem; color: #5b4a64; }
.eng-add-post:hover { border-color: #d62976; }
.eng-manual { margin-bottom: 1rem; padding: 1.2rem 1.3rem; border-radius: 18px; background: #fff; }
.eng-manual h3 { margin: 0 0 .8rem; font-size: 1rem; font-weight: 700; }
.eng-manual-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.eng-manual-grid label { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; font-weight: 600; color: #4a3d52; }
.eng-manual-grid .is-wide { grid-column: span 3; }
.eng-manual-grid .is-full { grid-column: 1 / -1; }
.eng-manual-grid input, .eng-manual-grid select, .eng-manual-grid textarea { padding: .5rem .65rem; border: 1px solid #d6cbdd; border-radius: 10px; background: #fff; color: #1c1320; font: 400 .92rem 'Figtree', system-ui, sans-serif; }

.eng-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.eng-post { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1.05rem; border-radius: 18px; background: #fff; border: 2px solid transparent; }
.eng-post.is-top { border-color: #d62976; }
.eng-post-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.eng-format { padding: .2rem .6rem; border-radius: 999px; background: #1c1320; color: #fff; font-size: .75rem; font-weight: 700; }
.eng-rank { padding: .2rem .6rem; border-radius: 999px; background: #fdf0f6; color: #9e1d57; font-size: .75rem; font-weight: 700; }
.eng-caption { margin: 0; font-size: .9rem; line-height: 1.45; color: #2b1f33; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.eng-metrics { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: auto; font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.eng-metrics > span { display: inline-flex; align-items: center; gap: .3rem; }
.eng-metrics svg { color: #b0215f; }
.eng-post-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem; font-size: .8rem; color: #6f6377; }
.eng-post-links { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .85rem; }
.eng-post-links a { font-weight: 600; color: #b0215f; text-decoration: none; }
.eng-post-links a:hover { text-decoration: underline; }
.eng :is(button, a, summary):focus-visible { outline: 2px solid #d62976; outline-offset: 2px; }
.eng .guide { margin-bottom: 1.5rem; }

@media (max-width: 992px) {
    .eng-flow, .eng-patterns { grid-template-columns: 1fr; }
    .eng-manual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eng-manual-grid .is-wide { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .eng { margin: -1rem; padding: 1.25rem 1rem 2rem; }
}

/* ---------- Identidade visual ---------- */
.vi { margin: -1.5rem -2rem; padding: 2rem 3rem 3rem; min-height: calc(100vh - 64px); box-sizing: border-box; background: #f6f1ee; }
.vi-sec { margin-bottom: 1.5rem; padding: 1.5rem; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(40,20,40,.05); }
.vi-sec-head { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.vi-sec-head h2 { margin: 0; font: 700 1.3rem 'Bricolage Grotesque', system-ui, sans-serif; }
.vi-sec-head p { margin: .15rem 0 0; color: #5b4a64; max-width: 720px; }
.vi-n { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #1c1320; color: #fff; font: 700 1rem 'Bricolage Grotesque', system-ui, sans-serif; }
.vi-hint { margin: .7rem 0; color: #5b4a64; font-size: .9rem; }
.vi-label { display: block; margin: .8rem 0 .3rem; font-weight: 600; font-size: .9rem; }
.vi-label span { font-weight: 400; color: #6b5d72; }
.vi-go { margin-top: .9rem; }
.vi-busy { display: flex; gap: .5rem; align-items: center; margin: .8rem 0 0; color: #5b4a64; font-size: .9rem; }
.vi-kicker { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a3a62; }

.vi-base { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.5rem; align-items: start; }
.vi-start .eng-seg { margin-bottom: .2rem; }
.vi-vibes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.vi-vibe { display: flex; flex-direction: column; gap: .35rem; padding: .65rem; border: 1px solid #e6dce3; border-radius: 14px; background: #fff; text-align: left; font: inherit; color: #1c1320; cursor: pointer; }
.vi-vibe:hover { border-color: #b9a6b6; }
.vi-vibe[aria-pressed="true"] { border: 2px solid #d62976; padding: calc(.65rem - 1px); }
.vi-vibe b { font-size: .95rem; }
.vi-vibe small { color: #6b5d72; font-size: .8rem; }
.vi-sw { display: flex; height: 30px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.vi-sw span { flex: 1; }
.vi-sw.is-wide { width: 180px; height: 26px; }
.vi-palette { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: .5rem 0 .9rem; font-size: .88rem; color: #5b4a64; }
.vi-palette b { color: #1c1320; }

.vi-logo-row { display: flex; gap: 1rem; align-items: center; margin-top: .7rem; }
.vi-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 14px; border: 1px solid #e6dce3; background: repeating-conic-gradient(#f4eff2 0 25%, #fff 0 50%) 0 0 / 12px 12px; }

.vi-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.vi-chip { padding: .42rem .8rem; border: 1px solid #d9ccd5; border-radius: 999px; background: #fff; color: #3a2f3e; font: 600 .85rem 'Figtree', system-ui, sans-serif; cursor: pointer; }
.vi-chip:hover { border-color: #1c1320; }
.vi-chip[aria-pressed="true"] { border-color: #1c1320; background: #1c1320; color: #fff; }

.vi-current { padding: 1.1rem; border-radius: 18px; background: #f8f4f6; }
.vi-current-head { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; }
.vi-current-head h3 { margin: .1rem 0 0; font: 700 1.15rem 'Bricolage Grotesque', system-ui, sans-serif; }
.vi-refine { display: flex; gap: .5rem; margin-top: .9rem; }
.vi-refine .eng-input { flex: 1; }

.vi-frames { display: grid; gap: .8rem; align-items: end; }
.vi-frames.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vi-frames.is-2 { grid-template-columns: repeat(2, minmax(0, 150px)); justify-content: center; }
.vi-frame { margin: 0; }
.vi-frame svg { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 4px 14px rgba(40,20,40,.14); }
.vi-frame figcaption { margin-top: .35rem; text-align: center; font-size: .78rem; font-weight: 600; color: #5b4a64; }

.vi-proposals-head { display: flex; justify-content: space-between; align-items: center; margin: 1.5rem 0 .7rem; }
.vi-proposals-head h3 { margin: 0; font: 700 1.1rem 'Bricolage Grotesque', system-ui, sans-serif; }
.vi-proposals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.vi-proposal { display: flex; flex-direction: column; gap: .4rem; padding: 1rem; border: 2px dashed #d62976; border-radius: 18px; }
.vi-proposal h4 { margin: 0; font: 700 1.05rem 'Bricolage Grotesque', system-ui, sans-serif; }
.vi-proposal p { margin: 0; color: #4f4553; font-size: .88rem; }
.vi-proposal .eng-btn { align-self: flex-start; margin-top: .6rem; }

.vi-more { margin-top: 1.2rem; }
.vi-more summary { cursor: pointer; font-weight: 600; color: #3a2f3e; }
.vi-more ul { margin: .6rem 0 0; color: #5b4a64; font-size: .88rem; }

.vi-tabs { display: flex; gap: .3rem; border-bottom: 1px solid #ece3e9; margin-bottom: 1.2rem; }
.vi-tabs button { padding: .7rem 1.1rem; border: 0; border-bottom: 3px solid transparent; background: none; color: #6b5d72; font: 700 .98rem 'Figtree', system-ui, sans-serif; cursor: pointer; }
.vi-tabs button[aria-selected="true"] { color: #1c1320; border-bottom-color: #d62976; }
.vi-format { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.vi-options { display: flex; flex-direction: column; }
.vi-opt { padding: .85rem 0; border-bottom: 1px solid #f1e9ee; }
.vi-opt:first-child { padding-top: 0; }
.vi-opt-title { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; margin-bottom: .5rem; font-weight: 600; }
.vi-opt-title small { padding: .1rem .5rem; border-radius: 6px; font-size: .72rem; font-weight: 700; }
.vi-opt-title small.is-art { background: #fbe3ee; color: #8a1d4f; }
.vi-opt-title small.is-text { background: #e4e7fb; color: #2f3a9e; }

.vi-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.vi-file-col h3 { margin: 0; font: 700 1rem 'Bricolage Grotesque', system-ui, sans-serif; }
.vi-file-col h3 span { margin-left: .3rem; color: #8a7d90; font-weight: 600; }
.vi-file-col .vi-hint { margin: .2rem 0 .6rem; }
.vi-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.vi-thumb { position: relative; }
.vi-thumb img { display: block; width: 76px; height: 76px; object-fit: cover; border-radius: 12px; border: 1px solid #e6dce3; }
.vi-thumb.is-logo img { object-fit: contain; background: repeating-conic-gradient(#f4eff2 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.vi-thumb-x { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #1c1320; color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }

@media (max-width: 1100px) {
    .vi-base, .vi-format { grid-template-columns: 1fr; }
    .vi-proposals { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .vi { margin: -1rem; padding: 1.2rem 1rem 2rem; }
    .vi-sec { padding: 1.1rem; }
    .vi-vibes, .vi-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vi-tabs { overflow-x: auto; }
}

/* ---------- Posts: pedido, etapas e estúdio ---------- */
.pst { margin: -1.5rem -2rem; padding: 2rem 3rem 3rem; min-height: calc(100vh - 64px); box-sizing: border-box; background: #f3eef4; }
.pst-ask { margin-bottom: 1.4rem; padding: 1.4rem 1.5rem; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(40,20,40,.05); }
.pst-sentence { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; margin: 0 0 1rem; font: 700 1.55rem 'Bricolage Grotesque', system-ui, sans-serif; color: #1c1320; }
.pst-pill { border: 0; border-bottom: 3px solid #d62976; border-radius: 0; background: #fbf3f7; padding: .1rem .5rem; font: inherit; color: #b0225f; }
.pst-pill:focus { outline: 2px solid #d62976; outline-offset: 2px; }
.pst-topic { flex: 1 1 280px; min-width: 0; }
.pst-topic::placeholder { color: #b98aa2; font-weight: 600; }
.pst-ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.pst-label { font-weight: 600; font-size: .9rem; color: #3a2f3e; }
.pst-hint { display: inline-flex; gap: .45rem; align-items: center; color: #5b4a64; font-size: .88rem; }
.pst-hint.is-bad { color: #8a1538; }
.pst-extra { margin-top: .9rem; }
.pst-extra summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: #3a2f3e; }
.pst-check { display: flex; gap: .5rem; align-items: center; margin-top: .7rem; font-size: .9rem; color: #3a2f3e; }
.pst-go { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.1rem; }
.pst-create { padding: .75rem 1.5rem; font-size: 1rem; }

.pst-steps { display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; margin-bottom: 1.2rem; }
.pst-step { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border: 1px solid #ddd0e2; border-radius: 16px; background: #fff; font: inherit; color: #3a2f3e; cursor: pointer; }
.pst-step:hover { border-color: #1c1320; }
.pst-step[aria-current="step"] { border-color: #1c1320; background: #1c1320; color: #fff; }
.pst-step-n { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #efe6f1; color: #1c1320; font: 700 .85rem 'Bricolage Grotesque', system-ui, sans-serif; }
.pst-step[aria-current="step"] .pst-step-n { background: #d62976; color: #fff; }
.pst-step-label { font-weight: 700; }
.pst-step-count { min-width: 1.6rem; padding: .05rem .45rem; border-radius: 999px; background: #f3ecf4; color: #3a2f3e; font-size: .8rem; font-weight: 700; text-align: center; }
.pst-step[aria-current="step"] .pst-step-count { background: rgba(255,255,255,.18); color: #fff; }
.pst-rejected { margin-left: auto; align-self: center; border: 0; background: none; color: #6b5d72; font: 600 .88rem 'Figtree', system-ui, sans-serif; text-decoration: underline; cursor: pointer; }
.pst-rejected[aria-pressed="true"] { color: #1c1320; }

.pst-empty { display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 3rem 1rem; border-radius: 22px; background: rgba(255,255,255,.6); color: #5b4a64; text-align: center; }
.pst-empty p { margin: 0; }

.pst-studio { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.pst-queue { position: sticky; top: 80px; display: flex; flex-direction: column; gap: .4rem; max-height: calc(100vh - 100px); overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.pst-item { display: flex; gap: .7rem; align-items: center; width: 100%; padding: .5rem; border: 1px solid transparent; border-radius: 14px; background: rgba(255,255,255,.65); text-align: left; font: inherit; color: #1c1320; cursor: pointer; }
.pst-item:hover { background: #fff; }
.pst-item[aria-current="true"] { border-color: #d62976; background: #fff; box-shadow: 0 2px 10px rgba(214,41,118,.12); }
.pst-thumb { flex: none; width: 52px; overflow: hidden; border-radius: 8px; }
.pst-thumb.is-tall { width: 40px; }
.pst-thumb svg { display: block; width: 100%; height: auto; }
.pst-item-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.pst-item-format { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #8a3a62; }
.pst-item-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: .9rem; line-height: 1.3; }
.pst-item-meta { font-size: .78rem; color: #5b4a64; }
.pst-stage { min-width: 0; }

/* ---------- Post no estúdio (PostCard) ---------- */
.ps { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 1.5rem; align-items: start; padding: 1.3rem; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(40,20,40,.05); }
.ps-phone { position: sticky; top: 80px; display: flex; flex-direction: column; padding: .7rem 0 .8rem; border: 1px solid #e7dde6; border-radius: 26px; background: #fff; box-shadow: 0 12px 30px rgba(40,20,40,.12); overflow: hidden; }
.ps-phone.is-tall { max-width: 300px; justify-self: center; width: 100%; }
.ps-ig-head { display: flex; align-items: center; gap: .5rem; padding: 0 .8rem .6rem; font-size: .85rem; }
.ps-ig-head span:last-child { color: #6b5d72; }
.ps-media { position: relative; overflow: hidden; background: #111; }
.ps-track { display: flex; transition: transform .25s ease; }
.ps-slide { flex: 0 0 100%; }
.ps-slide svg { display: block; width: 100%; height: auto; }
.ps-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: #1c1320; font-size: 1.4rem; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: pointer; }
.ps-nav:disabled { opacity: 0; pointer-events: none; }
.ps-nav.is-prev { left: 8px; }
.ps-nav.is-next { right: 8px; }
.ps-count { position: absolute; top: 10px; right: 10px; padding: .15rem .5rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; font-weight: 600; }
.ps-bars { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 1; display: flex; gap: 3px; }
.ps-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.4); }
.ps-bars span.is-on { background: #fff; }
.ps-ig-actions { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem .3rem; }
.ps-ig-actions svg { width: 22px; height: 22px; fill: none; stroke: #1c1320; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ps-ig-actions .ps-save { margin-left: auto; }
.ps-dots { display: flex; gap: 4px; margin: 0 auto; }
.ps-dots i { width: 6px; height: 6px; border-radius: 50%; background: #d3c8d6; }
.ps-dots i.is-on { background: #3f8ef0; }
.ps-caption { padding: 0 .8rem; font-size: .85rem; line-height: 1.4; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ps-caption.is-open { display: block; }
.ps-more { align-self: flex-start; margin: .1rem .8rem 0; border: 0; background: none; padding: 0; color: #6b5d72; font: 600 .85rem 'Figtree', system-ui, sans-serif; cursor: pointer; }
.ps-download { align-self: center; margin-top: .7rem; border: 0; background: none; color: #6b5d72; font: 600 .8rem 'Figtree', system-ui, sans-serif; text-decoration: underline; cursor: pointer; }

.ps-side { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.ps-top { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.ps-format { padding: .2rem .6rem; border-radius: 999px; background: #1c1320; color: #fff; font-size: .75rem; font-weight: 700; }
.ps-format.is-soft { background: #e4e7fb; color: #2f3a9e; }
.ps-title { margin: 0; font: 700 1.45rem/1.2 'Bricolage Grotesque', system-ui, sans-serif; }
.ps-busy { display: flex; gap: .5rem; align-items: center; margin: 0; color: #5b4a64; font-size: .9rem; }
.ps-decide { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border-radius: 16px; background: #f8f4f6; }
.ps-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ps-row .eng-input { flex: 1 1 200px; width: auto; }
.ps-big { padding: .7rem 1.3rem; font-size: .98rem; }
.eng-btn.is-danger { border-color: #a3123f; background: #a3123f; color: #fff; }
.eng-btn.is-danger-ghost { color: #a3123f; }
.eng-btn.is-danger-ghost:hover { border-color: #a3123f; color: #a3123f; }
.ps-note { margin: 0; color: #5b4a64; font-size: .85rem; }
.ps-note.is-info { color: #1d5f73; }
.ps-note.is-bad, .ps-counter.is-bad { color: #8a1538; }
.ps-counter { font-size: .8rem; color: #6b5d72; }
.ps-problems { margin: 0; padding-left: 1.1rem; color: #8a1538; font-size: .88rem; }
.ps-h { margin: 0 0 .5rem; font: 700 1rem 'Bricolage Grotesque', system-ui, sans-serif; }
.ps-block { padding: 1rem; border: 1px solid #efe6ee; border-radius: 16px; }
.ps-block p { margin: 0 0 .35rem; }
.ps-block.is-soft { background: #faf7f9; border-color: transparent; }
.ps-block.is-live { background: #e8f4f7; border-color: transparent; }
.ps-metrics { font-weight: 600; color: #1d5f73; }
.ps-facts { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.ps-facts span { padding: .3rem .6rem; border-radius: 10px; background: #f6edf2; font-size: .85rem; }
.ps-facts b { margin-right: .25rem; color: #8a1d4f; }
.ps-scenes { display: flex; flex-direction: column; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.ps-scenes li { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem .6rem; border-radius: 12px; background: #faf7f9; font-size: .88rem; }
.ps-scenes p { margin: 0 0 .15rem; }
.ps-time { flex: none; min-width: 2.2rem; padding: .15rem .45rem; border: 0; border-radius: 8px; background: #1c1320; color: #fff; font: 700 .75rem 'Figtree', system-ui, sans-serif; text-align: center; }
button.ps-time { cursor: pointer; }
.ps-slide-edit { display: flex; flex-direction: column; gap: .35rem; padding: .5rem; border: 1px solid #efe6ee; border-radius: 12px; }
textarea.ps-slide-edit { padding: .55rem .7rem; }
.ps-slide-edit.is-current { border-color: #d62976; }
.ps-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f3ecf0; color: #8a1538; font-size: 1.1rem; cursor: pointer; }
.ps-select { width: auto; flex: 0 1 220px; }
.ps-file input { display: none; }
.ps-file { cursor: pointer; }
.ps-details { margin-top: .6rem; }
.ps-details summary { cursor: pointer; font-size: .88rem; font-weight: 600; }
.ps-save-art { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .9rem; font-size: .85rem; color: #5b4a64; }
.ps-saved { display: flex; gap: .4rem; overflow-x: auto; margin-top: .7rem; }
.ps-saved a { flex: none; width: 76px; }
.ps-saved a.is-tall { width: 56px; }
.ps-saved img { display: block; width: 100%; border-radius: 8px; }
.ps-video { margin-top: .9rem; display: flex; flex-direction: column; gap: .4rem; }
.ps-video video { max-width: 200px; border-radius: 12px; }
.ps-when { flex: 0 1 220px !important; }

@media (max-width: 1200px) {
    .ps { grid-template-columns: 1fr; }
    .ps-phone { position: static; max-width: 380px; width: 100%; justify-self: center; }
}
@media (max-width: 900px) {
    .pst-studio { grid-template-columns: 1fr; }
    .pst-queue { position: static; flex-direction: row; max-height: none; overflow-x: auto; padding-bottom: .3rem; }
    .pst-queue li { flex: 0 0 230px; }
    .pst-rejected { margin-left: 0; }
}
@media (max-width: 720px) {
    .pst { margin: -1rem; padding: 1.2rem 1rem 2rem; }
    .pst-sentence { font-size: 1.2rem; }
    .ps { padding: .9rem; }
}

/* ---------- Avatar (identidade visual e posts) ---------- */
.vi-optional { margin-left: .4rem; padding: .1rem .5rem; border-radius: 999px; background: #efe6f1; color: #5b4a64; font: 600 .72rem 'Figtree', system-ui, sans-serif; vertical-align: middle; }
.vi-h3 { margin: 1rem 0 .4rem; font: 700 1rem 'Bricolage Grotesque', system-ui, sans-serif; }
.vi-h3 span { margin-left: .3rem; color: #8a7d90; font-weight: 600; font-size: .85rem; }
.vi-avatar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.5rem; align-items: start; }
.vi-avatar-setup .vi-h3:first-child, .vi-avatar-make .vi-h3:first-child { margin-top: 0; }
.vi-avatar-make { padding: 1.1rem; border-radius: 18px; background: #f8f4f6; }
.vi-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .8rem; }
.vi-scene { position: relative; margin: 0; }
.vi-scene img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 4px 12px rgba(40,20,40,.12); }
.vi-scene figcaption { margin-top: .3rem; font-size: .8rem; font-weight: 600; color: #3a2f3e; }
.vi-opt-hint { margin: .45rem 0 0; font-size: .82rem; }
.ps-avatar { display: flex; flex-direction: column; gap: .5rem; margin-top: .7rem; padding: .8rem; border-radius: 14px; background: #f8f4f6; }
@media (max-width: 1100px) { .vi-avatar { grid-template-columns: 1fr; } }
.vi-avatar-mode { margin-bottom: 1rem; width: fit-content; }
.vi-ready { margin-top: 1.2rem; padding: 1rem 1.1rem; border: 1px dashed #d9c6d1; border-radius: 16px; }
.vi-ready .vi-h3 { margin-top: 0; }
.vi-ready .vi-hint { margin-top: 0; }
.vi-inline-alert { margin: .8rem 0 0; }

/* ---------- Identidade visual: opções em cartões + modais ---------- */
.vi-hub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.vi-hub-preview { padding: 1.3rem; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(40,20,40,.05); }
.vi-hub-preview h2 { margin: .1rem 0 1rem; font: 700 1.25rem 'Bricolage Grotesque', system-ui, sans-serif; }
.vi-hub-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.vi-card { display: flex; flex-direction: column; gap: .6rem; min-height: 150px; padding: 1.2rem; border: 1px solid #e6dce3; border-radius: 20px; background: #fff; text-align: left; font: inherit; color: #1c1320; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.vi-card:hover, .vi-card:focus-visible { border-color: #d62976; box-shadow: 0 6px 18px rgba(214,41,118,.12); transform: translateY(-1px); }
.vi-card-top { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.vi-card-top b { font: 700 1.1rem 'Bricolage Grotesque', system-ui, sans-serif; }
.vi-card small { color: #5b4a64; font-size: .88rem; line-height: 1.4; }
.vi-card .vi-sw { width: 140px; height: 24px; }
.vi-card-badge { padding: .15rem .55rem; border-radius: 999px; background: #d62976; color: #fff; font-size: .75rem; font-weight: 700; }

.vi-modal-wrap { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; background: rgba(28,19,32,.55); overflow-y: auto; }
.vi-modal { width: min(1120px, 100%); max-height: 92vh; display: flex; flex-direction: column; border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(20,10,25,.35); }
.vi-modal-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.5rem; border-bottom: 1px solid #f0e8ee; }
.vi-modal-head h2 { margin: 0; font: 700 1.35rem 'Bricolage Grotesque', system-ui, sans-serif; }
.vi-modal-head p { margin: .2rem 0 0; color: #5b4a64; font-size: .92rem; }
.vi-modal-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f3ecf0; color: #1c1320; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.vi-modal-x:hover { background: #e9dde5; }
.vi-modal-body { padding: 1.3rem 1.5rem 1.6rem; overflow-y: auto; }

@media (max-width: 1100px) { .vi-hub { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .vi-hub-cards { grid-template-columns: 1fr; } .vi-modal-wrap { padding: 0; } .vi-modal { max-height: 100vh; border-radius: 0; } }

/* ---------- Publicar: passo a passo ---------- */
.ps-checklist { display: flex; flex-direction: column; gap: .5rem; margin: 0 0 .4rem; padding: 0; list-style: none; }
.ps-checklist li { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 14px; background: #fff; border: 1px solid #ece2ea; }
.ps-checklist li > div { display: flex; flex-direction: column; gap: .35rem; min-width: 0; font-size: .9rem; color: #4f4553; }
.ps-checklist li b { color: #1c1320; font-size: .95rem; }
.ps-checklist li .eng-btn { align-self: flex-start; }
.ps-checklist li.is-done { background: #eef7f1; border-color: #cfe8d8; }
.ps-check { flex: none; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #1c1320; color: #fff; font: 700 .85rem 'Figtree', system-ui, sans-serif; }
.ps-checklist li.is-done .ps-check { background: #1e7a4a; }
.ps-link { border: 0; background: none; padding: 0; color: #b0225f; font: 600 .9rem 'Figtree', system-ui, sans-serif; text-decoration: underline; cursor: pointer; }

/* ---------- Barra de etapas da conta (abaixo do topo) ---------- */
.stepnav { position: sticky; top: 64px; z-index: 1020; padding: .5rem 1.25rem .6rem; background: rgba(255,255,255,.96); border-bottom: 1px solid #ece6ef; backdrop-filter: blur(6px); }
.stepnav ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 1100px; margin: 0 auto; padding: 0; list-style: none; }
.stepnav a { display: flex; flex-direction: column; gap: 6px; padding: .1rem 0; color: #6f6377; text-decoration: none; font: 600 .82rem 'Figtree', system-ui, sans-serif; border-radius: 8px; }
.stepnav a:hover { color: #1c1320; }
.stepnav a:focus-visible { outline: 2px solid #d62976; outline-offset: 3px; }
.stepnav-bar { height: 4px; border-radius: 2px; background: #e6dcec; transition: background .2s; }
.stepnav .is-done .stepnav-bar { background: #e7a3c1; }
.stepnav .is-current .stepnav-bar { background: #d62976; }
.stepnav-label { display: flex; align-items: center; gap: .4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepnav-n { flex: none; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #efe6f1; color: #5b4a64; font-size: .7rem; font-weight: 700; }
.stepnav .is-done .stepnav-n { background: #1e7a4a; color: #fff; }
.stepnav .is-current a { color: #1c1320; font-weight: 700; }
.stepnav .is-current .stepnav-n { background: #d62976; color: #fff; }
.pst-queue, .ps-phone { top: 132px; }
.pst-queue { max-height: calc(100vh - 150px); }
@media (max-width: 720px) {
    .stepnav { padding: .45rem .75rem .5rem; }
    .stepnav-label { font-size: 0; justify-content: center; }
    .stepnav-label .stepnav-n { font-size: .7rem; }
    .stepnav .is-current .stepnav-label { font-size: .78rem; }
}

/* ---------- Posts: modos do pedido ---------- */
.pst-modes { margin-bottom: 1.1rem; width: fit-content; max-width: 100%; }
.pst-mode-hint { display: block; margin: 0 0 .9rem; max-width: 760px; }
.pst-sentence.is-small { margin: 1rem 0 0; font-size: 1.15rem; }
.pst-ask .vi-thumbs { margin-top: .2rem; }
.pst-ref-link { margin-bottom: 1rem; padding: 1rem 1.1rem; border-radius: 16px; background: #f8f4f6; }
.pst-ref-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .8rem; margin-bottom: .7rem; }
.pst-ref-fields .vi-label { margin-top: 0; }
.pst-ref-found { color: #1e7a4a; font-size: .88rem; font-weight: 600; }
.pst-disclaimer { margin: .7rem 0 0; padding: .55rem .75rem; border-left: 3px solid #d62976; border-radius: 0 8px 8px 0; background: #fff; color: #4f4553; font-size: .82rem; line-height: 1.45; }
@media (max-width: 720px) { .pst-ref-fields { grid-template-columns: 1fr; } }

/* ---------- Telas de conta (entrar, criar conta, senha): moldura "auth" ---------- */
.auth-body { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow-x: hidden;
  background: radial-gradient(1100px 600px at 8% -10%, #4a1b4f 0%, transparent 60%), linear-gradient(150deg, #140b1b 0%, #1d1026 55%, #2a1230 100%);
  color: #f6eff9; font-family: 'Figtree', system-ui, sans-serif; }
.auth-body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .45;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.auth-glow { position: fixed; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.auth-glow-a { width: 560px; height: 560px; right: -170px; top: -190px; background: radial-gradient(circle, rgba(214,41,118,.30), transparent 65%); }
.auth-glow-b { width: 500px; height: 500px; left: -210px; bottom: -230px; background: radial-gradient(circle, rgba(250,126,30,.22), transparent 65%); }
.auth-top, .auth-main, .auth-footer, .auth-testmode { position: relative; z-index: 1; }
.auth-top { display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(16px, 4vw, 48px); }
.auth-brand { display: flex; align-items: center; gap: 10px; color: #fff; font: 700 1.2rem 'Bricolage Grotesque', system-ui, sans-serif; text-decoration: none; }
.auth-brand:hover { color: #fff; }
.auth-back { color: rgba(255,255,255,.75); font-size: .9rem; text-decoration: none; }
.auth-back:hover { color: #fff; }
.auth-testmode { margin: 0 auto; max-width: 720px; text-align: center; font-size: .82rem; color: #3b2a00; background: #feda75; border-radius: 999px; padding: 4px 14px; }
.auth-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 96px);
  align-items: center; width: 100%; max-width: 1120px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 48px; box-sizing: border-box; }
.auth-kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #f7a8cb; background: rgba(214,41,118,.14); border: 1px solid rgba(214,41,118,.4); border-radius: 999px; padding: 4px 12px; }
.auth-pitch h2 { margin: 18px 0 22px; font: 700 clamp(1.9rem, 3.4vw, 2.8rem)/1.1 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.02em; }
.auth-pitch h2 span { color: #f7a8cb; }
.auth-points { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; max-width: 520px; }
.auth-points li { position: relative; padding-left: 34px; color: #d5c6dd; line-height: 1.45; }
.auth-points li b { color: #fff; }
.auth-points li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #fa7e1e, #d62976 55%, #962fbf); }
.auth-phone { transform: rotate(-3deg); width: fit-content; }
.auth-phone .phone { width: 280px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.auth-phone .phone-art strong { font-size: 1.5rem; }
.auth-phone .phone-actions { color: #4f4553; font-weight: 600; }
.auth-panel { color: #1c1320; }
.auth-panel .card { border: 0; border-radius: 24px; box-shadow: 0 30px 70px rgba(0,0,0,.4) !important; max-width: 440px !important; margin: 0 auto; }
.auth-panel .card-body { padding: 2.25rem !important; }
.auth-panel h1 { margin-bottom: .35rem !important; font: 700 1.7rem 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.01em; }
.auth-sub { color: #5b4a64; font-size: .95rem; margin-bottom: 1.5rem; }
.auth-panel .form-control { padding: .75rem .9rem; border-radius: 12px; }
.auth-panel .form-control:focus { border-color: #d62976; box-shadow: 0 0 0 .2rem rgba(214,41,118,.18); }
.auth-panel .btn-primary { padding-top: .8rem; padding-bottom: .8rem; border-radius: 12px; font-size: 1rem; font-weight: 700; }
.auth-panel a { color: #b0225f; }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.auth-label-row a { font-size: .82rem; font-weight: 600; text-decoration: none; }
.auth-alt { border-top: 1px solid #eee5ec; margin-top: 1.5rem; padding-top: 1.1rem; text-align: center; font-size: .9rem; color: #5b4a64; }
.auth-alt a { font-weight: 700; text-decoration: none; }
.auth-minor { display: block; text-align: center; margin-top: .75rem; font-size: .82rem; color: #6b5d72 !important; }
.auth-footer { text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); padding: 0 16px 28px; }
@media (max-width: 900px) {
  .auth-main { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 12px; }
  .auth-pitch { text-align: center; }
  .auth-pitch h2 { margin-bottom: 0; }
  .auth-points, .auth-phone { display: none; }
  .auth-testmode { margin: 0 16px; border-radius: 12px; }
}

/* ---------- Cobrança, administração e suporte (portado do linkedin-post-agent, nas cores da Vitrine IA) ---------- */
.section-tabs { margin-bottom: 1.25rem; }
/* ---------- Área administrativa ---------- */
.kpi .kpi-value { font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.kpi .kpi-label { font-size: .8rem; color: #6c757d; }
.kpi .kpi-sub { font-size: .8rem; color: #6c757d; }
.admin-table th { white-space: nowrap; font-size: .8rem; }
.admin-table td { font-size: .875rem; vertical-align: middle; }
.admin-table th.sortable { cursor: pointer; user-select: none; }
.admin-table th.sortable:hover { text-decoration: underline; }
.pricing { max-width: 920px; margin: 0 auto; }
.cycle-toggle { display: inline-flex; background: #efe6f1; border-radius: 999px; padding: 4px; gap: 4px; }
.cycle-toggle button { border: 0; background: transparent; border-radius: 999px; padding: .4rem 1.1rem; font-weight: 600; font-size: .9rem; color: #14212e; display: inline-flex; align-items: center; gap: .4rem; }
.cycle-toggle button.active { background: #1c1320; color: #fff; box-shadow: 0 2px 6px rgba(28,19,32,.25); }
.save-tag { background: #feda75; color: #1b1b1b; border-radius: 999px; font-size: .7rem; padding: .1rem .5rem; font-weight: 700; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; padding: 1.75rem 1.5rem 1.5rem; color: #fff;
    background: linear-gradient(160deg, #3a2442 0%, #1c1320 100%); box-shadow: 0 12px 30px rgba(28,19,32,.18); }
.price-card.featured { background: linear-gradient(160deg, #d62976 0%, #1c1320 100%); box-shadow: 0 16px 40px rgba(28,19,32,.35); outline: 2px solid #feda75; }
.price-card.current { outline: 2px solid #3ddc84; }
.price-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #feda75; color: #1b1b1b; font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; padding: .25rem .8rem; border-radius: 999px; white-space: nowrap; }
.price-name { text-align: center; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 700; color: #feda75; }
.price-desc { text-align: center; font-size: .85rem; opacity: .8; margin: .25rem 0 .75rem; }
.price-value { text-align: center; font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.price-value small { font-size: .95rem; font-weight: 600; opacity: .85; margin-left: .2rem; }
.price-note { text-align: center; font-size: .75rem; opacity: .75; margin-top: .25rem; min-height: 1.1rem; }
.price-save { display: table; margin: .5rem auto 0; background: rgba(61,220,132,.18); color: #7ff0b0; border-radius: 999px; font-size: .78rem; font-weight: 700; padding: .2rem .7rem; }
.price-group { font-size: .78rem; font-weight: 700; margin: 1.1rem 0 .35rem; opacity: .9; }
.price-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.price-list li { position: relative; padding-left: 1.6rem; margin-bottom: .35rem; }
.price-list li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1rem; height: 1rem;
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ddc84' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.price-cta { margin-top: auto; padding-top: 1.5rem; text-align: center; }
.price-btn { width: 100%; padding: .7rem 1rem; font-weight: 700; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.7); color: #fff; background: transparent; }
.price-btn:hover:not(:disabled) { background: rgba(255,255,255,.1); color: #fff; }
.price-card.featured .price-btn { background: #feda75; border-color: #feda75; color: #1b1b1b; }
.price-card.featured .price-btn:hover:not(:disabled) { background: #ffe39a; color: #1b1b1b; }
.price-btn:disabled { opacity: .7; color: #fff; }
.price-foot { font-size: .72rem; font-weight: 700; color: #feda75; text-transform: uppercase; letter-spacing: .05em; margin-top: .5rem; }
.checkout-card { max-width: 920px; margin-left: auto; margin-right: auto; scroll-margin-top: 1rem; }
.method-tile { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid #dee2e6; border-radius: .6rem; padding: .75rem; cursor: pointer; height: 100%; }
.method-tile.active { border-color: #1c1320; box-shadow: 0 0 0 2px rgba(214,41,118,.15); background: #f6f9fc; }
.method-tile .form-check-input { margin-top: .2rem; flex-shrink: 0; }
/* O Blazor foca o <h1> ao navegar (FocusOnNavigate); sem moldura visível. */
h1:focus, h1:focus-visible { outline: none; }
/* Selo de preço de fundador (Plano e pagamento) */
.founder-banner { display: inline-flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: center; background: #fff7e6; border: 1px solid #f6d58a;
    color: #5a4300; border-radius: .75rem; padding: .55rem 1rem; font-size: .88rem; margin-bottom: 1rem; }
.founder-tag { background: #feda75; color: #1b1b1b; font-weight: 800; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .6rem; border-radius: 999px; }
/* Métricas do LinkedIn nos posts publicados */
.post-metrics { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .8rem; color: #2b3a48; }
.post-metrics b { color: #1c1320; }
/* Ofertas */
.founder-banner + .founder-banner { margin-top: .4rem; }
.offer-until { opacity: .8; }
.price-old { font-size: 1.1rem; font-weight: 600; opacity: .6; margin-right: .3rem; }
.price-offer { text-align: center; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #feda75; margin-bottom: .2rem; }
.admin-subtitle { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6c757d; border-bottom: 1px solid #e9ecef; padding-bottom: .25rem; margin-top: .5rem; }
/* Suporte: transcrição no admin */
.support-transcript { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; }
.support-line { border-radius: .5rem; padding: .5rem .7rem; font-size: .875rem; }
.support-line.from-user { background: #fbe9f1; }
.support-line.from-bot { background: #f6f7f9; }
.support-who { font-size: .7rem; color: #6c757d; margin-bottom: .15rem; }
.support-text { white-space: pre-wrap; }
/* Assistente de suporte (widget) */
.sc { position: fixed; right: 20px; bottom: 20px; z-index: 1050; display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
      font-family: inherit; }
.sc-fab { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 16px 10px 10px;
          background: #d62976; color: #fff; font-weight: 700; box-shadow: 0 6px 20px rgba(28,19,32, .25); cursor: pointer; }
.sc-fab:hover { background: #1c1320; }
.sc-fab-icon { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: inline-flex;
               align-items: center; justify-content: center; font-size: 16px; }
.sc-fab-open { padding: 6px 14px; font-size: 22px; line-height: 1; }
.sc-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 14px;
            box-shadow: 0 12px 40px rgba(28,19,32, .28); display: flex; flex-direction: column; overflow: hidden; color: #1d2733; }
.sc-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: #1c1320; color: #fff; }
.sc-title { font-weight: 700; }
.sc-sub { font-size: 11px; opacity: .75; }
.sc-x { border: 0; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.sc-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f6f8fb; }
.sc-msg { max-width: 85%; padding: 8px 11px; border-radius: 12px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; }
.sc-bot { align-self: flex-start; background: #fff; border: 1px solid #e3e8ef; border-bottom-left-radius: 4px; }
.sc-user { align-self: flex-end; background: #d62976; color: #fff; border-bottom-right-radius: 4px; }
.sc-typing { opacity: .7; font-style: italic; }
.sc-human { align-self: flex-start; border: 1px solid #d62976; background: #fff; color: #d62976; border-radius: 999px;
            padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.sc-handoff { background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 10px; }
.sc-note { background: #e9f7ef; border: 1px solid #b7e4c7; border-radius: 12px; padding: 8px 11px; font-size: 13px; }
.sc-error { background: #fdecea; color: #a61b1b; font-size: 12px; padding: 6px 12px; }
.sc-input { display: flex; gap: 6px; padding: 10px; border-top: 1px solid #e3e8ef; margin: 0; }
.sc-input input { flex: 1; border: 1px solid #ced4da; border-radius: 999px; padding: 7px 12px; font-size: 14px; min-width: 0; }
.sc-input input:focus { outline: none; border-color: #d62976; box-shadow: 0 0 0 2px rgba(214,41,118, .15); }
.sc-input button { border: 0; border-radius: 50%; width: 36px; height: 36px; background: #d62976; color: #fff; cursor: pointer; flex: none; }
.sc-input button:disabled { background: #adb5bd; cursor: default; }
.sc-foot { text-align: center; padding: 0 0 8px; }
.sc-link { border: 0; background: transparent; color: #d62976; font-size: 12px; text-decoration: underline; cursor: pointer; }
@media (max-width: 768px) {
    /* Acima da barra inferior para não cobrir a navegação nem a ação principal. */
    .sc { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 576px) {
    .sc-fab-label { display: none; }
    .sc-fab { padding: 8px; }
}
/* Voucher em Plano e pagamento */
.voucher-box { margin: .6rem 0 .9rem; font-size: .9rem; }
.voucher-applied { background: #e9f7ef; border: 1px dashed #52b788; color: #1b4332; border-radius: 999px; padding: .3rem .9rem; display: inline-block; }
/* Painel de usuários */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
.kpi-grid .kpi { background: #fff; border: 1px solid #e3e8ef; border-radius: .6rem; padding: .75rem .9rem; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .75rem; }
.mbc { margin: 0; }
.mbc-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .5rem; }
.mbc-title { font-weight: 600; font-size: .9rem; color: #1d2733; }
.mbc-current { font-weight: 700; color: #1d2733; }
.mbc-current small { font-weight: 400; color: #6c757d; margin-left: .2rem; }
.mbc-plot { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid #dee2e6; }
.mbc-col { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; outline: none; }
.mbc-bar { width: 100%; background: #d62976; border-radius: 4px 4px 0 0; min-height: 2px; }
.mbc-bar.is-zero { background: #e9ecef; }
.mbc-col:hover .mbc-bar, .mbc-col:focus .mbc-bar { background: #1c1320; }
.mbc-tip { display: none; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap;
    background: #1d2733; color: #fff; font-size: .75rem; padding: .2rem .45rem; border-radius: .3rem; z-index: 5; pointer-events: none; }
.mbc-col:hover .mbc-tip, .mbc-col:focus .mbc-tip { display: block; }
.mbc-plot .mbc-col:first-child .mbc-tip { left: 0; transform: none; }
.mbc-plot .mbc-col:last-child .mbc-tip { left: auto; right: 0; transform: none; }
.mbc-axis { display: flex; gap: 2px; margin-top: .2rem; }
.mbc-axis span { flex: 1; text-align: center; font-size: .68rem; color: #6c757d; white-space: nowrap; overflow: visible; }
.mbc-empty { height: 140px; display: grid; place-items: center; color: #6c757d; font-size: .85rem; background: #f8f9fa; border-radius: .4rem; }
.mbc-note { font-size: .72rem; color: #6c757d; margin-top: .35rem; }
.mbc-data { font-size: .78rem; margin-top: .3rem; }
.mbc-data summary { color: #6c757d; cursor: pointer; }
.hbar-row { display: grid; grid-template-columns: minmax(120px, 1.4fr) 2fr 2.5rem; gap: .6rem; align-items: center; margin-bottom: .5rem; font-size: .85rem; }
.hbar-track { background: #eef1f5; border-radius: 999px; height: 10px; overflow: hidden; }
.hbar-fill { background: #d62976; height: 100%; border-radius: 999px; min-width: 2px; }
.hbar-value { text-align: right; font-weight: 600; }

/* ---------- Assinatura na Vitrine IA ---------- */
.pay { margin: -1.5rem -2rem; padding: 2rem 3rem 3rem; min-height: calc(100vh - 64px); box-sizing: border-box; background: #f3eef4; }
.pay-title { margin: 0 0 .75rem; font: 700 1.9rem 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.01em; }
.pay .card { border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(40,20,40,.05); }
.pay .section-tabs .nav-link { border-radius: 999px; color: #3a2f3e; font-weight: 600; }
.pay .section-tabs .nav-link.active { background: #1c1320; color: #fff; }
.pricing h2 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; }
.price-name { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 1rem; letter-spacing: .06em; }
.price-list li.off { opacity: .45; text-decoration: line-through; }
.price-list li.off::before { background: rgba(255,255,255,.15) !important; }
.contact-box { margin-top: .5rem; padding: .9rem 1rem; border-radius: 14px; background: #f8f4f6; }
.method-tile { cursor: pointer; }
@media (max-width: 720px) { .pay { margin: -1rem; padding: 1.2rem 1rem 2rem; } }

/* ---------- Admin: planos ---------- */
.feature-tile { display: flex; gap: .6rem; align-items: flex-start; height: 100%; padding: .7rem .8rem; border: 1px solid #e6dce3; border-radius: 12px; background: #fff; cursor: pointer; }
.feature-tile.on { border-color: #d62976; background: #fdf3f8; }
.feature-tile .form-check-input { margin-top: .2rem; flex: none; }

/* ---------- Plano no menu de 3 barras ---------- */
.drawer .plan-card { display: flex; flex-direction: column; gap: .3rem; margin: .5rem .25rem 0; padding: .8rem .9rem; border-radius: 14px; background: #f8f4f6; color: #1c1320; text-decoration: none; font-size: .85rem; }
.drawer .plan-card:hover { background: #f3e8ef; color: #1c1320; }
.drawer .plan-card-head { display: flex; justify-content: space-between; gap: .5rem; }
.drawer .plan-card-tag { color: #b0225f; font-weight: 700; white-space: nowrap; }
.drawer .plan-card-usage { color: #5b4a64; margin: 0; }
.drawer .plan-card-bar { display: block; height: 6px; border-radius: 999px; background: #e6dcec; overflow: hidden; }
.drawer .plan-card-bar > span { display: block; height: 100%; background: #d62976; }
.drawer .plan-card-link { color: #b0225f; font-weight: 700; }

/* ---------- Páginas legais ---------- */
.legal { margin: -1.5rem -2rem; padding: 2.5rem 1.25rem 3rem; background: #fbf8f6; min-height: calc(100vh - 64px); box-sizing: border-box; }
.legal-body { max-width: 780px; margin: 0 auto; padding: 2.25rem 2.5rem; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(40,20,40,.05); line-height: 1.6; color: #2b2230; }
.legal-body h1 { font: 700 2rem 'Bricolage Grotesque', system-ui, sans-serif; margin: 0 0 .25rem; }
.legal-body h2 { font: 700 1.15rem 'Bricolage Grotesque', system-ui, sans-serif; margin: 1.75rem 0 .5rem; }
.legal-meta { color: #6b5d72; font-size: .9rem; }
.legal-body a { color: #b0225f; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .5rem 0 1rem; }
.legal-table th, .legal-table td { border-bottom: 1px solid #eee5ec; padding: .5rem .4rem; text-align: left; vertical-align: top; }
.legal-foot { max-width: 780px; margin: 1.25rem auto 0; text-align: center; font-size: .85rem; color: #6b5d72; }
.legal-foot a { color: #6b5d72; }
.auth-footer a { color: rgba(255,255,255,.75); }
@media (max-width: 720px) { .legal { margin: -1rem; } .legal-body { padding: 1.4rem 1.1rem; } }
