:root {
    /* Paleta VoeChat: roxo + laranja do aviãozinho */
    --bg: #f6f4fb;
    --surface: #ffffff;
    --text: #17122b;
    --muted: #5f5a72;
    --primary: #6c3ce9;
    --primary-dark: #4a22b8;
    --lima: #ffb020;
    --verde: #ff8a1f;
    --floresta: #1e1145;
    --degrade: linear-gradient(120deg, #ffb020 0%, #ff8a1f 60%, #f26b1d 100%);
    --border: #e4dff2;
    --danger: #b42318;
    --shadow: 0 18px 45px rgba(30, 17, 69, .10);
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; color: var(--text); background: var(--bg); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
img, video, canvas { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, p { margin-top: 0; }

.auth-page { min-height: 100vh; background: radial-gradient(circle at 10% 15%, #e1d8f4, transparent 36%), var(--bg); }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 430px); padding: 38px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
.auth-card h1 { margin-bottom: 8px; font-size: 29px; }
.signup-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; }
.signup-card { width: min(100%, 820px); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-weight: 800; color: var(--text); }
.auth-brand .brand-mark { width: 42px; height: 42px; margin: 0; border-radius: 12px; font-size: 12px; }
.auth-foot { margin: 22px 0 0; text-align: center; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.check-row input { width: auto; margin-top: 5px; }
.compact-stats { margin-top: 20px; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; color: #fff; background: var(--primary); border-radius: 16px; font-weight: 800; }
.brand-mark.small { width: 34px; height: 34px; margin: 0; border-radius: 10px; font-size: 12px; }
.eyebrow { margin-bottom: 7px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.text-character-limit { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--muted); font-size: 13px; }
.text-character-limit strong { color: var(--primary); }
label { display: block; margin: 18px 0 7px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 12px 13px; border: 1px solid #cecbd7; border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(108, 60, 233, .14); border-color: var(--primary); }
.alert { margin: 18px 0; padding: 12px 14px; border-radius: 10px; }
.alert-error { color: #8d1b12; background: #fff0ee; border: 1px solid #f5c4bf; }
.alert-success { color: #4a22b8; background: #f3effe; border: 1px solid #c5b8e4; }
.alert-info { color: #28536b; background: #edf7fc; border: 1px solid #d0c2f0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 17px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 750; }
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { color: var(--primary); background: #ece6fd; }
.button-ghost { padding: 8px 12px; color: var(--muted); background: transparent; }
.button-block { width: 100%; margin-top: 24px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 245px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px; color: #e0dceb; background: var(--floresta); }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; color: #fff; font-weight: 800; }
.sidebar-company { margin: -16px 12px 18px; color: #ab9ec8; font-size: 12px; font-weight: 700; }
.nav-link { display: block; margin: 5px 0; padding: 10px 12px; border-radius: 9px; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.10); }
.nav-link { display: flex; align-items: center; gap: 9px; }
.nav-link span { width: 20px; text-align: center; }
.nav-section { margin: 22px 12px 7px; color: #8675ae; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.main-content { min-width: 0; max-width: 100%; padding: 28px clamp(18px, 4vw, 52px); overflow-x: hidden; }
.main-content > *, .topbar > *, .content-card, .form-grid > * { min-width: 0; }
.app-shell.media-embedded { grid-template-columns: 220px minmax(0, 1fr); }
.app-shell.media-embedded .sidebar { padding-inline: 12px; }
.app-shell.media-embedded .main-content { overflow-x: hidden; padding: 22px clamp(16px, 2.4vw, 34px); }
.page-help-button { position: fixed; right: 18px; bottom: 16px; z-index: 35; width: auto; min-height: 36px; padding: 7px 11px; color: #fff; background: #6c3ce9; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; box-shadow: 0 8px 22px rgba(22,11,48,.22); cursor: pointer; font-size: 13px; font-weight: 800; }
.help-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(17,12,28,.48); }
.help-drawer { position: fixed; top: 0; right: 0; z-index: 90; width: min(420px, 94vw); height: 100vh; overflow-y: auto; color: #181127; background: #f8f7f9; box-shadow: -18px 0 50px rgba(17,12,28,.22); transform: translateX(105%); transition: transform .2s ease; }
.help-drawer.open { transform: translateX(0); }
.help-drawer > header { display: flex; align-items: center; justify-content: space-between; padding: 20px; background: #fff; border-bottom: 1px solid var(--border); }
.help-drawer header strong, .help-drawer header small { display: block; }
.help-drawer header strong { color: #181127; }.help-drawer header small { color: #52625b; }
.help-drawer header button { width: 38px; height: 38px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; font-size: 25px; }
.help-content { padding: 20px; }
.help-hero { padding: 20px; color: #fff; background: linear-gradient(140deg, #200c4f, #331578); border-radius: 18px; }
.help-hero > span { font-size: 30px; font-weight: 900; }.help-hero h2 { margin: 4px 0; }.help-hero p { margin: 0; color: #dfd8ef; }
.help-content details { margin-top: 12px; padding: 15px; background: #fff; border: 1px solid var(--border); border-radius: 13px; }
.help-content summary { color: #22153f; cursor: pointer; font-weight: 800; }.help-content details p { margin: 12px 0 0; color: #4d5b55; }
.typed-confirm { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; box-shadow: var(--shadow); }
.typed-confirm::backdrop { background: rgba(17,12,28,.55); }.typed-confirm form { padding: 24px; }.typed-confirm footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.advanced-panel { margin-top: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; }.advanced-panel summary { cursor: pointer; font-weight: 800; }
@media (max-width: 760px) { .page-help-button { right: 12px; bottom: 12px; } }
@media (max-width: 760px) { .billing-actions { grid-template-columns: 1fr; } .row-menu-panel { position: fixed; inset: 10vh 5vw auto; width: 90vw; max-height: 80vh; overflow-y: auto; } }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.topbar h1 { margin: 0; font-size: 28px; }
.user-menu { display: flex; align-items: center; gap: 12px; }
.hero-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 30px; color: #fff; background: linear-gradient(125deg, #6c3ce9, #200e49); border-radius: 20px; box-shadow: var(--shadow); }
.hero-panel h2 { margin-bottom: 8px; font-size: clamp(24px, 3vw, 36px); }
.hero-panel p { margin-bottom: 0; color: #e1dcee; }
.hero-panel .eyebrow { color: #c8bbe7; }
.hero-panel .button { color: var(--primary); background: #fff; white-space: nowrap; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 22px 0; }
.stat-card { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid #6c8cff; border-radius: 14px; }
.stat-card span { display: block; color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; margin-top: 8px; font-size: 28px; }
.tone-green { border-top-color: #461da6; }.tone-red { border-top-color: #d64545; }.tone-amber { border-top-color: #d99b2b; }.tone-purple { border-top-color: #875bd1; }
.content-card { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.content-card.spaced { margin-top: 20px; }
.spaced { margin-top: 20px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.empty-state { text-align: center; padding-block: 54px; }
.empty-state p { color: var(--muted); }
.two-column { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 20px; align-items: start; }
.copy-row { display: flex; gap: 10px; }
.copy-row input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.billing-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.billing-actions > div { padding: 18px; background: #f6f5f8; border: 1px solid var(--border); border-radius: 13px; }
.access-card { display: grid; gap: 18px; margin-bottom: 20px; }
.access-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.access-heading h2 { margin-bottom: 6px; }
.access-heading .status-pill { white-space: nowrap; }
.button-danger { color: #fff; background: var(--danger); }
.button-danger:hover { background: #8f1d14; }
.table-wrap { overflow-x: auto; }
.table-subtitle { display: block; margin-top: 3px; color: var(--muted); }
.row-menu { position: relative; }
.row-menu > summary { padding: 10px 12px; color: var(--primary); background: #f3effe; border-radius: 10px; cursor: pointer; font-weight: 750; list-style: none; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu-panel { position: absolute; top: 48px; right: 0; z-index: 20; width: min(390px, 88vw); padding: 18px; white-space: normal; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.row-menu-panel label { margin-top: 10px; }
.row-menu-panel hr { margin: 20px 0; border: 0; border-top: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.status-pill { display: inline-block; padding: 4px 8px; color: #4a22b8; background: #f3effe; border-radius: 999px; font-size: 12px; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
fieldset { margin: 24px 0; padding: 18px; border: 1px solid var(--border); border-radius: 12px; }
legend { padding: 0 8px; font-weight: 800; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check-card { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.check-card input, .radio-line input { width: auto; }
.check-card small { display: block; color: var(--muted); }
.connection-choice-grid { align-items: stretch; }
.connection-choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.connection-choice.is-connected { border-color: #c5b8e4; background: #f8f7fc; }
.connection-choice.is-disconnected { border-color: #f2c2bd; background: #fff8f7; }
.connection-check-card { padding: 3px; border: 0; background: transparent; }
.connection-summary { display: grid; gap: 3px; min-width: 0; }
.connection-number { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-state { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: 12px; font-weight: 800; }
.connection-state i { width: 8px; height: 8px; border-radius: 50%; }
.connection-state.connected { color: #301375; }.connection-state.connected i { background: #481fa9; box-shadow: 0 0 0 3px #e5def5; }
.connection-state.disconnected { color: var(--danger); }.connection-state.disconnected i { background: #d64545; box-shadow: 0 0 0 3px #fde3e0; }
.report-problem-button { min-height: 34px; padding: 7px 11px; color: #7a321f; background: #fff0ec; border: 1px solid #efc6ba; font-size: 12px; white-space: nowrap; }
.report-problem-button:hover { background: #ffe4dd; }
.problem-report-dialog { width: min(92vw, 560px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 28px 80px rgba(18,9,37, .28); }
.problem-report-dialog::backdrop { background: rgba(13,8,25, .58); backdrop-filter: blur(2px); }
.problem-report-dialog form { padding: 24px; }
.problem-report-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.problem-report-dialog h2 { margin-bottom: 0; }
.problem-connection-context { margin: 16px 0; padding: 12px 14px; color: #3d3453; background: #f3effe; border: 1px solid #d8d2e5; border-radius: 10px; font-size: 13px; }
.radio-line { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 18px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; overflow-x: auto; }
.calendar-day { min-height: 130px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.calendar-day-link { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 7px; color: var(--primary); border-bottom: 1px solid var(--border); }
.calendar-day-link:hover { color: var(--primary-dark); }
.calendar-item { display: grid; gap: 2px; margin-top: 8px; padding: 7px; background: #f3effe; border-radius: 7px; font-size: 12px; }
.calendar-item small { color: var(--muted); }
.filter-line { display: flex; gap: 8px; }
.text-link { color: var(--primary); text-decoration: underline; }
.upload-line { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr) auto; align-items: center; gap: 14px; min-width: 0; }
.upload-line > .button { justify-self: start; white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.media-upload-picker { display: grid; grid-template-columns: 64px minmax(170px, auto); grid-template-rows: auto auto; align-items: center; column-gap: 14px; min-width: 290px; margin: 0; padding: 10px 14px 10px 10px; background: #fff; border: 2px dashed #cdc9d7; border-radius: 12px; cursor: pointer; }
.media-upload-picker:hover { border-color: var(--primary); background: #f9f7fe; }
.media-upload-picker > span { grid-row: 1 / 3; display: grid; place-items: center; width: 64px; height: 64px; color: #3c09b3; background: #f1f3f2; border-radius: 8px; font-size: 48px; font-weight: 300; line-height: 1; }
.media-upload-picker strong { align-self: end; }
.media-upload-picker small { align-self: start; max-width: 240px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.media-upload-previews { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.media-upload-previews[hidden] { display: none; }
.media-upload-preview { position: relative; width: 86px; }
.media-upload-preview img { display: block; width: 86px; height: 72px; object-fit: cover; border: 1px solid var(--border); border-radius: 9px; }
.media-upload-preview small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.media-upload-preview button { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: #fff; background: #2a233b; border: 2px solid #fff; border-radius: 50%; cursor: pointer; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 240px)); justify-content: start; align-items: start; gap: 18px; }
.media-card { width: 100%; min-width: 0; overflow: visible; background: var(--surface); border: 1px solid var(--border); border-radius: 15px; box-shadow: 0 8px 24px rgba(30,17,69,.07); }
.media-card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,60,233,.16), 0 8px 24px rgba(30,17,69,.07); }
.media-preview { position: relative; width: 100%; height: 180px; background: #eae8ef; border-radius: 15px 15px 0 0; }
.media-preview img { display: block; width: 100%; height: 180px; object-fit: cover; object-position: center; border-radius: inherit; }
.media-select { position: absolute; top: 10px; left: 10px; z-index: 2; display: none; place-items: center; width: 38px; height: 38px; margin: 0; background: rgba(255,255,255,.94); border-radius: 50%; box-shadow: 0 3px 12px rgba(0,0,0,.18); cursor: pointer; }
.media-bulk-form.bulk-mode .media-select { display: grid; }
.media-select input, .media-bulk-select input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.media-actions { position: absolute; top: 10px; right: 10px; z-index: 2; }
.media-actions summary { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: rgba(0,0,0,.68); border-radius: 50%; cursor: pointer; list-style: none; font-weight: 900; }
.media-actions summary::-webkit-details-marker { display: none; }
.media-menu { position: absolute; top: 44px; right: 0; width: 190px; padding: 7px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.media-menu a, .media-menu button { display: block; width: 100%; padding: 9px 10px; color: var(--text); background: transparent; border: 0; border-radius: 7px; text-align: left; cursor: pointer; }
.media-menu a:hover, .media-menu button:hover { background: #f3effe; }
.media-menu .media-delete-action { margin-top: 5px; padding-top: 11px; color: var(--danger); border-top: 1px solid var(--border); }
.media-menu .media-delete-action:hover { background: #fff0f0; }
.media-bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.media-bulk-toggle { min-height: 34px; padding: 7px 12px; color: var(--primary); background: #ebe8f3; border: 1px solid #d6cdf0; border-radius: 8px; font-size: 14px; }
.media-bulk-toggle:hover { background: #e1dcec; }
.media-bulk-toolbar > [data-media-bulk-toggle][hidden] { display: none !important; }
.media-bulk-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; }
.media-bulk-controls[hidden] { display: none; }
.media-bulk-select { display: inline-flex; align-items: center; gap: 9px; margin: 0; cursor: pointer; }
.media-bulk-actions { display: flex; align-items: center; gap: 12px; }
.media-selected-count { color: var(--muted); font-weight: 700; }
.media-meta { display: grid; gap: 9px; padding: 14px; }
.media-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-meta small { color: var(--muted); }
.selected-media { display: flex; align-items: center; gap: 16px; margin: 12px 0; padding: 12px; background: #f3effe; border: 1px solid var(--border); border-radius: 12px; }
.selected-media img { width: 78px; height: 112px; object-fit: cover; border-radius: 8px; }
.quick-publish-dialog { width: min(92vw, 620px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 28px 80px rgba(18,9,37, .28); }
.quick-publish-dialog::backdrop { background: rgba(13,8,25, .58); backdrop-filter: blur(2px); }
.quick-publish-dialog form { padding: 24px; }
.quick-publish-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.quick-publish-dialog h2 { margin-bottom: 0; }
.dialog-close { width: 38px; height: 38px; color: var(--muted); background: #efeef3; border: 0; border-radius: 50%; cursor: pointer; font-size: 24px; line-height: 1; }
.quick-media-summary { display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 12px; background: #f3effe; border-radius: 12px; }
.quick-media-summary img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.quick-media-summary strong, .quick-media-summary small { display: block; }
.quick-media-summary small { margin-top: 4px; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.temporary-code { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; padding: 14px 18px; background: #fff; border: 1px dashed var(--primary); border-radius: 10px; }
.temporary-code strong { font: 800 28px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; }
.qr-card { max-width: 520px; margin-inline: auto; padding: 22px; text-align: center; }
.qr-card h2, .qr-card p { text-align: left; }
.qr-image { display: flex; justify-content: center; padding: 8px 16px 12px; }
.qr-image img { width: 250px; max-width: 100%; height: auto; border-radius: 12px; }
.qr-expiration { margin: 0 0 12px; padding: 10px 12px; text-align: center; }
.qr-card form { display: flex; justify-content: center; }
.qr-note { margin: 12px 0 0; }
.pix-payment-qr { width: fit-content; margin: 16px auto; padding: 14px; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.pix-payment-qr p { margin-bottom: 10px; text-align: center; }
.pix-payment-qr img { display: block; width: 220px; max-width: 100%; height: auto; }
.payment-refresh { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 12px 14px; background: #f4f3f8; border: 1px solid var(--border); border-radius: 12px; }
.payment-refresh span { color: var(--muted); }
.payment-details > summary { width: fit-content; list-style: none; }
.payment-details > summary::-webkit-details-marker { display: none; }
.payment-details-body { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--border); }
.button:disabled { cursor: not-allowed; opacity: .62; }
hr { margin: 24px 0; border: 0; border-top: 1px solid var(--border); }
.sidebar-admin-return { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-admin-return button { width: 100%; padding: 10px 12px; color: #e0dceb; background: transparent; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; cursor: pointer; text-align: left; }
.table-actions { display: flex; align-items: center; gap: 8px; }
.connected-label { color: var(--primary); font-size: 13px; font-weight: 750; }
.danger-text { color: var(--danger); }
.connection-plan-note { margin-top: 20px; }
.status-style-layout, .image-status-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.color-options { display: flex; flex-wrap: wrap; gap: 9px; }
.color-options.compact { gap: 18px; }
.color-choice, .text-color-choice { display: inline-flex; align-items: center; gap: 7px; margin: 0; cursor: pointer; font-weight: 600; }
.color-choice input, .text-color-choice input, .font-choice input { position: absolute; opacity: 0; pointer-events: none; }
.color-choice span, .text-color-choice span { display: block; width: 34px; height: 34px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #aab7b1; }
.color-choice input:checked + span, .text-color-choice input:checked + span { box-shadow: 0 0 0 3px var(--primary); }
.bg-choice-0 span, .text-status-preview.preview-bg-0 { background-color: #f7b928; }
.bg-choice-1 span, .text-status-preview.preview-bg-1 { background-color: #d4a72c; }
.bg-choice-2 span, .text-status-preview.preview-bg-2 { background-color: #ff7a88; }
.bg-choice-3 span, .text-status-preview.preview-bg-3 { background-color: #f94a64; }
.bg-choice-4 span, .text-status-preview.preview-bg-4 { background-color: #b62978; }
.bg-choice-5 span, .text-status-preview.preview-bg-5 { background-color: #8a214f; }
.bg-choice-6 span, .text-status-preview.preview-bg-6 { background-color: #6d267b; }
.bg-choice-7 span, .text-status-preview.preview-bg-7 { background-color: #8d6b91; }
.bg-choice-8 span, .text-status-preview.preview-bg-8 { background-color: #5b28d3; }
.bg-choice-9 span, .text-status-preview.preview-bg-9 { background-color: #7a46f3; }
.bg-choice-10 span, .text-status-preview.preview-bg-10 { background-color: #4f86ed; }
.bg-choice-11 span, .text-status-preview.preview-bg-11 { background-color: #8b70c9; }
.bg-choice-12 span, .text-status-preview.preview-bg-12 { background-color: #511bcf; }
.bg-choice-13 span, .text-status-preview.preview-bg-13 { background-color: #8baa3c; }
.bg-choice-14 span, .text-status-preview.preview-bg-14 { background-color: #a8b722; }
.bg-choice-15 span, .text-status-preview.preview-bg-15 { background-color: #be8d76; }
.bg-choice-16 span, .text-status-preview.preview-bg-16 { background-color: #71666b; }
.bg-choice-17 span, .text-status-preview.preview-bg-17 { background-color: #281f3e; }
.bg-choice-18 span, .text-status-preview.preview-bg-18 { background-color: #6c3ce9; }
.text-choice-white span { background-color: #fff; }
.text-choice-black span { background-color: #111; }
.text-status-preview.preview-text-white { color: #fff; }
.text-status-preview.preview-text-black { color: #111; }
.font-options { display: grid; grid-template-columns: repeat(4, minmax(74px, 1fr)); gap: 9px; }
.font-choice { display: grid; place-items: center; gap: 2px; min-height: 68px; margin: 0; padding: 8px; background: #f4f3f6; border: 2px solid transparent; border-radius: 10px; cursor: pointer; }
.font-choice:has(input:checked) { color: var(--primary); background: #ebe7f4; border-color: var(--primary); }
.font-choice span { font-size: 23px; line-height: 1; }.font-choice small { font-size: 10px; font-family: system-ui, sans-serif; }
.font-sample-1 span, [data-font="1"] { font-family: Georgia, serif; }.font-sample-2 span, [data-font="2"] { font-family: "Segoe Script", cursive; font-style: italic; }.font-sample-3 span, [data-font="3"] { font-family: "Comic Sans MS", cursive; }.font-sample-4 span, [data-font="4"] { font-weight: 900; }.font-sample-5 span, [data-font="5"] { font-family: Impact, sans-serif; letter-spacing: .02em; }.font-sample-6 span, [data-font="6"] { font-family: Georgia, serif; font-style: italic; }.font-sample-7 span, [data-font="7"] { font-family: ui-rounded, system-ui, sans-serif; font-weight: 700; }
.text-status-preview, .image-status-preview { position: relative; width: min(100%, 300px); aspect-ratio: 9 / 16; justify-self: center; overflow: hidden; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 14px 35px rgba(19,9,41,.14); }
.text-status-preview { display: grid; place-items: center; padding: 26px 22px; color: #fff; background: #6c3ce9; text-align: center; word-break: break-word; }
.text-status-preview span { display: block; width: 100%; max-height: 100%; overflow: hidden; font-size: 28px; line-height: 1.28; white-space: pre-wrap; }
.text-status-preview.preview-size-1 span { font-size: 23px; }
.text-status-preview.preview-size-2 span { font-size: 19px; }
.text-status-preview.preview-size-3 span { font-size: 16px; line-height: 1.24; }
.text-status-preview.preview-size-4 span { font-size: 13px; line-height: 1.2; }
.text-status-preview.preview-size-5 span { font-size: 11px; line-height: 1.16; }
.image-status-preview { display: grid; place-items: center; color: #dcd7e7; background: #22173d; }
.image-status-preview > img { width: 100%; height: 100%; object-fit: contain; background: #111; }
.image-status-preview:not(.has-image) > img { display: none; }
.image-status-preview > span { padding: 24px; text-align: center; }
.image-status-preview > p { position: absolute; right: 12px; bottom: 12px; left: 12px; max-height: 34%; margin: 0; padding: 10px 12px; overflow: hidden; color: #fff; background: rgba(0,0,0,.58); border-radius: 10px; font-size: 13px; line-height: 1.3; white-space: pre-wrap; word-break: break-word; }
.status-image-picker { width: min(100%, 390px); min-width: 0; margin-top: 7px; }
.billing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }.plan-price strong { color: var(--primary); font-size: 36px; }.plan-price span { color: var(--muted); }
.feature-list { display: grid; gap: 8px; padding-left: 20px; }
.billing-warning { display: grid; gap: 5px; margin-top: 18px; padding: 12px; color: #ffe9bf; background: #76500d; border-radius: 10px; font-size: 12px; }
.billing-warning.critical { color: #ffe5e2; background: #7c2018; }.billing-warning a { color: #fff; font-weight: 800; text-decoration: underline; }
.plan-admin-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
.public-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.plan-admin-card { padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: #fbfbfc; }
.plan-card-head { display: flex; justify-content: space-between; gap: 15px; }.plan-card-head h3 { margin: 0 0 7px; }.plan-card-head > strong { color: var(--primary); font-size: 22px; white-space: nowrap; }
.plan-editor { margin-top: 18px; background: #fff; }
.plan-editor > summary { color: var(--primary); list-style-position: inside; }
.plan-editor[open] { padding: 20px; border-color: #b3a8ce; box-shadow: 0 10px 26px rgba(30,17,69,.07); }
.plan-editor[open] > summary { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.plan-editor form { display: block; }
.plan-editor-actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.plan-editor-actions .button { min-width: 190px; }
.plan-status-form { margin-top: 12px; }
.new-plan-card { scroll-margin-top: 24px; }
.muted-pill { color: #59645f; background: #e8ecea; }
.public-plan-card { position: relative; display: block; margin: 0; cursor: pointer; }.public-plan-card input { position: absolute; opacity: 0; }.public-plan-card span { display: grid; gap: 7px; min-height: 190px; padding: 20px; border: 2px solid var(--border); border-radius: 15px; background: #fff; }.public-plan-card input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,60,233,.12); }.public-plan-card b { color: var(--primary); font-size: 26px; }.public-plan-card small { color: var(--muted); }.public-plan-card em { color: var(--text); font-style: normal; }
.small-stat { font-size: 20px !important; }

.partner-public-page { min-height: 100vh; background: #f5f4f8; }
.partner-public-page main { overflow: hidden; }
.partner-landing-hero { min-height: 720px; padding: 28px clamp(22px, 7vw, 110px) 80px; color: #fff; background: radial-gradient(circle at 82% 18%, rgba(124,81,225,.28), transparent 31%), linear-gradient(135deg,#140830,#2a1261 62%,#36187b); }
.partner-public-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.partner-public-nav .auth-brand { margin: 0; }.partner-public-nav a { font-weight: 800; }
.partner-hero-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.65fr); align-items: center; gap: clamp(36px,7vw,100px); padding-top: clamp(62px,9vw,116px); }.partner-hero-copy { width: min(780px,100%); padding: 0; }.partner-hero-copy .eyebrow { color: #b39de5; }.partner-hero-copy h1 { margin-bottom: 22px; font-size: clamp(42px,6.3vw,76px); line-height: 1.02; letter-spacing: -.04em; }.partner-hero-copy > p:not(.eyebrow) { max-width: 700px; color: #ded6ef; font-size: clamp(18px,2vw,23px); }
.partner-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }.partner-hero-actions .button-primary { color: #240f55; background: #fff; }.partner-hero-actions .button-secondary { color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.3); }
.partner-hero-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; color: #cabcea; font-size: 13px; font-weight: 800; }.partner-app-preview { padding: 28px; color: var(--text); background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.5); border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.23); transform: rotate(1deg); }.partner-preview-kicker { color: var(--primary); font-size: 11px; font-weight: 900; letter-spacing: .12em; }.partner-app-preview h2 { margin: 10px 0 20px; font-size: clamp(24px,3vw,34px); line-height: 1.12; }.partner-app-preview ul { display: grid; gap: 10px; padding: 0; list-style: none; }.partner-app-preview li { display: grid; gap: 2px; padding: 13px 15px; background: #f0eef6; border-radius: 13px; }.partner-app-preview small { color: var(--muted); }
.partner-public-section, .partner-growth-section, .partner-final-cta { width: min(1180px,calc(100% - 36px)); margin: 0 auto; padding: 88px 0; }.partner-public-section > h2 { max-width: 720px; font-size: clamp(30px,4vw,48px); }
.partner-intro-section { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(28px,7vw,90px); }.partner-intro-section h2,.partner-how-section h2 { font-size: clamp(30px,4vw,48px); }.partner-intro-section > p { color: var(--muted); font-size: 19px; line-height: 1.75; }
.partner-benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 42px; }.partner-benefit-grid article { padding: 30px; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 15px 40px rgba(33,19,66,.07); }.partner-benefit-grid article > strong { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; background: var(--primary); border-radius: 14px; }.partner-benefit-grid h3 { margin: 22px 0 8px; font-size: 22px; }.partner-benefit-grid p { color: var(--muted); }
.partner-growth-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }.partner-growth-section h2 { font-size: clamp(30px,4vw,48px); }.partner-growth-visual { display: grid; gap: 10px; padding: 34px; background: #fff; border-radius: 24px; box-shadow: var(--shadow); }.partner-growth-visual span,.partner-growth-visual strong { padding: 15px 18px; border-radius: 10px; }.partner-growth-visual span { background: #efedf5; }.partner-growth-visual strong { color: #fff; background: var(--primary); font-size: 20px; }
.partner-final-cta { margin-bottom: 80px; padding: 58px; color: #fff; background: #1e1538; border-radius: 28px; text-align: center; }.partner-final-cta h2 { font-size: clamp(30px,4vw,48px); }.partner-final-cta p { color: #d4cce7; }.partner-final-cta .button { margin-top: 12px; color: var(--primary); background: #fff; }
.partner-earnings-section { padding: 94px max(18px,calc((100% - 1180px)/2)); color: #fff; background: #1e1538; }.partner-earnings-copy { max-width: 820px; }.partner-earnings-copy .eyebrow { color: #9e84da; }.partner-earnings-copy h2 { font-size: clamp(32px,4.4vw,52px); }.partner-earnings-copy > p:not(.eyebrow) { color: #d3cbe5; font-size: 18px; }.partner-earnings-note { padding-left: 14px; border-left: 3px solid #8060cb; font-size: 14px !important; }.partner-earnings-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 38px; }.partner-earnings-grid article { display: grid; gap: 5px; padding: 24px; color: var(--text); background: #fff; border-radius: 18px; }.partner-earnings-grid article.featured { color: #fff; background: linear-gradient(145deg,#3c1793,#6c3ce9); box-shadow: 0 18px 42px rgba(0,0,0,.24); transform: translateY(-8px); }.partner-earnings-grid span { font-weight: 800; }.partner-earnings-grid strong { color: var(--primary); font-size: 38px; }.partner-earnings-grid .featured strong { color: #fff; }.partner-earnings-grid small { color: var(--muted); }.partner-earnings-grid .featured small { color: #d4cbe9; }.partner-earnings-grid em { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(109,99,131,.25); font-style: normal; }.partner-dashboard-showcase { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(36px,7vw,90px); width: min(1180px,calc(100% - 36px)); margin: 0 auto; padding: 96px 0; }.partner-dashboard-showcase h2 { font-size: clamp(30px,4vw,48px); }.partner-dashboard-showcase p { color: var(--muted); }.partner-dashboard-mock { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; padding: 20px; background: #ebe8f2; border: 1px solid #d7d2e3; border-radius: 24px; }.partner-dashboard-mock article { padding: 24px; background: #fff; border-radius: 16px; }.partner-dashboard-mock span,.partner-dashboard-mock strong { display: block; }.partner-dashboard-mock span { color: var(--muted); }.partner-dashboard-mock strong { margin-top: 6px; font-size: 30px; }.partner-dashboard-mock .accent { color: #fff; background: var(--primary); }.partner-dashboard-mock .accent span { color: #d5ccea; }
.partner-share-card { display: grid; grid-template-columns: minmax(260px,.65fr) minmax(0,1.35fr); gap: 28px; margin-bottom: 20px; background: linear-gradient(135deg,#f9f7fe,#f0edf7); }.partner-share-card h2 { margin-bottom: 8px; }.partner-share-links { min-width: 0; }.partner-share-links label:first-child { margin-top: 0; }.partner-share-links .copy-row { margin-bottom: 14px; }.partner-share-links .button { white-space: nowrap; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }.partner-referral-badge { margin: 18px 0; padding: 12px 15px; color: #4a22b8; background: #f3effe; border: 1px solid #c5b8e4; border-radius: 10px; }
.partner-portal-shell { width: min(1440px,100%); margin: 0 auto; padding: 32px clamp(18px,4vw,60px) 70px; }.partner-portal-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }.partner-portal-header h1 { margin-bottom: 4px; }.partner-link-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; color: #fff; background: linear-gradient(120deg,#28125a,#371585); border-radius: 16px; }.partner-link-card span,.partner-link-card strong { display: block; }.partner-link-card span { color: #d4cbea; font-size: 12px; }.partner-link-card strong { margin-top: 4px; overflow-wrap: anywhere; }.partner-link-card .button { color: var(--primary); background: #fff; white-space: nowrap; }
.partner-current-rate { align-self: center; color: var(--primary); font-size: 20px; }.partner-tier-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 22px; }.partner-tier-grid article { padding: 17px; background: #f3f1f7; border-radius: 12px; }.partner-tier-grid span,.partner-tier-grid strong,.partner-tier-grid small { display: block; }.partner-tier-grid strong { margin: 5px 0; color: var(--primary); font-size: 20px; }.partner-tier-grid small { color: var(--muted); }
.partner-payout-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }.partner-payout-row strong,.partner-payout-row small { display: block; }.partner-payout-row small { color: var(--muted); }.partner-admin-payment { display: grid; grid-template-columns: 1fr minmax(320px, .7fr); align-items: end; gap: 24px; }.partner-admin-payment form { display: grid; gap: 10px; }.partner-admin-payment input { margin: 0; }.partner-tier-form label { margin-top: 0; }
.partner-phone-field, .partner-schedule-field { grid-column: 1 / -1; }
.currency-input { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; }
.currency-input span { display: grid; place-items: center; min-width: 48px; padding: 0 12px; color: #3f3751; background: #efedf3; border: 1px solid #cecbd7; border-right: 0; border-radius: 10px 0 0 10px; font-weight: 800; }
.currency-input input { min-width: 0; border-radius: 0 10px 10px 0; }

@media (max-width: 980px) {
    .app-shell, .app-shell.media-embedded { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; overflow: visible; }
    .sidebar nav { display: flex; gap: 4px; overflow-x: auto; }
    .nav-link { white-space: nowrap; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .two-column { grid-template-columns: 1fr; }
    .form-grid, .checkbox-grid { grid-template-columns: 1fr; }
    .access-heading { flex-direction: column; }
    .upload-line { grid-template-columns: 1fr; }
    .status-style-layout, .image-status-layout { grid-template-columns: 1fr; }
    .billing-grid { grid-template-columns: 1fr; }
    .text-status-preview, .image-status-preview { width: min(100%, 280px); }
    .connection-choice { grid-template-columns: 1fr; }
    .report-problem-button { justify-self: start; }
    .partner-benefit-grid,.partner-tier-grid { grid-template-columns: repeat(2,1fr); }
    .partner-growth-section,.partner-admin-payment,.partner-hero-layout,.partner-intro-section,.partner-dashboard-showcase,.partner-share-card { grid-template-columns: 1fr; }
    .partner-hero-layout { padding-top: 70px; }
    .partner-app-preview { transform: none; }
    .partner-earnings-grid { grid-template-columns: repeat(2,1fr); }
}

@media (min-width: 981px) and (max-width: 1320px) {
    .app-shell.media-embedded { grid-template-columns: 195px minmax(0, 1fr); }
    .app-shell.media-embedded .main-content { padding: 18px; }
    .app-shell.media-embedded .content-card { padding: 20px; }
    .app-shell.media-embedded .upload-line { grid-template-columns: minmax(230px, 280px) minmax(0, 1fr); }
    .app-shell.media-embedded .upload-line > .button { justify-self: start; }
}

@media (max-width: 620px) {
    .auth-card { padding: 28px 22px; }
    .signup-wrap { padding: 16px 10px; }
    .partner-application-card { padding: 24px 16px; border-radius: 16px; }
    .topbar, .hero-panel { align-items: stretch; flex-direction: column; }
    .app-shell .main-content { width: 100%; padding: 18px 12px 72px; }
    .app-shell .sidebar { width: 100%; padding: 16px 12px; }
    .app-shell .sidebar .brand { margin-bottom: 14px; }
    .app-shell .sidebar-company { margin-bottom: 12px; }
    .app-shell .sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 6px; }
    .app-shell .nav-section { grid-column: 1 / -1; margin: 12px 4px 2px; }
    .app-shell .nav-link { min-width: 0; margin: 0; padding: 9px; white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
    .app-shell .topbar .button { width: 100%; }
    .app-shell .content-card { padding: 18px 14px; }
    .app-shell h1 { font-size: clamp(26px, 8vw, 34px); overflow-wrap: anywhere; }
    .app-shell h2 { font-size: clamp(22px, 7vw, 28px); overflow-wrap: anywhere; }
    .app-shell p { overflow-wrap: anywhere; }
    .partner-admin-shell fieldset { padding: 14px 10px; }
    .partner-admin-shell .partner-tier-form { gap: 12px; }
    .partner-admin-table thead { display: none; }
    .partner-admin-table, .partner-admin-table tbody, .partner-admin-table tr, .partner-admin-table td { display: block; width: 100%; }
    .partner-admin-table tr { margin-bottom: 14px; padding: 10px 12px; background: #f9f8fb; border: 1px solid var(--border); border-radius: 12px; }
    .partner-admin-table td { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border); white-space: normal; overflow-wrap: anywhere; text-align: right; }
    .partner-admin-table td::before { content: attr(data-label); flex: 0 0 92px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
    .partner-admin-table td:last-child { border-bottom: 0; }
    .partner-admin-table .partner-row-action { display: block; padding-top: 12px; }
    .partner-admin-table .partner-row-action::before { display: none; }
    .partner-admin-table .partner-row-action .button { width: 100%; }
    .partner-admin-table .partner-empty-row { margin: 0; }
    .partner-admin-table .partner-empty-row td { display: block; border: 0; text-align: center; }
    .partner-admin-table .partner-empty-row td::before { display: none; }
    .mobile-card-table thead { display: none; }
    .mobile-card-table, .mobile-card-table tbody, .mobile-card-table tr, .mobile-card-table td { display: block; width: 100%; }
    .mobile-card-table tr { margin-bottom: 14px; padding: 10px 12px; background: #f9f8fb; border: 1px solid var(--border); border-radius: 12px; }
    .mobile-card-table td { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); white-space: normal; overflow-wrap: anywhere; text-align: right; }
    .mobile-card-table td::before { content: attr(data-label); flex: 0 0 84px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
    .mobile-card-table td:last-child { border-bottom: 0; }
    .mobile-card-table .table-actions { width: 100%; align-items: stretch; flex-direction: column; }
    .mobile-card-table .table-actions form, .mobile-card-table .table-actions .button { width: 100%; }
    .mobile-card-table .mobile-card-actions { display: block; text-align: left; }
    .mobile-card-table .mobile-card-actions::before { display: none; }
    .user-menu { justify-content: space-between; }
    .stats-grid { grid-template-columns: 1fr; }
    .copy-row { align-items: stretch; flex-direction: column; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .media-preview, .media-preview img { height: 150px; }
    .media-bulk-toolbar { align-items: stretch; flex-direction: column; }
    .media-bulk-controls { align-items: stretch; flex-direction: column; }
    .media-bulk-actions { justify-content: space-between; }
    .upload-line { align-items: stretch; flex-direction: column; }
    .media-upload-picker { min-width: 0; width: 100%; }
    .partner-portal-header,.partner-link-card { align-items: stretch; flex-direction: column; }
    .partner-benefit-grid,.partner-tier-grid { grid-template-columns: 1fr; }
    .partner-final-cta { padding: 38px 22px; }
    .partner-landing-hero { min-height: 0; padding: 20px 18px 58px; }
    .partner-public-nav { align-items: flex-start; }
    .partner-public-nav .auth-brand { flex: 1; }
    .partner-public-nav a { font-size: 12px; text-align: right; }
    .partner-hero-layout { gap: 34px; padding-top: 54px; }
    .partner-hero-copy h1 { font-size: clamp(38px,13vw,56px); }
    .partner-hero-actions { align-items: stretch; flex-direction: column; }
    .partner-hero-actions .button { width: 100%; }
    .partner-hero-trust { align-items: flex-start; flex-direction: column; }
    .partner-app-preview { padding: 22px 18px; border-radius: 20px; }
    .partner-public-section,.partner-dashboard-showcase { width: min(100% - 28px,1180px); padding: 62px 0; }
    .partner-intro-section > p { font-size: 16px; }
    .partner-earnings-section { padding: 64px 14px; }
    .partner-earnings-grid { grid-template-columns: 1fr; }
    .partner-earnings-grid article.featured { transform: none; }
    .partner-dashboard-mock { grid-template-columns: 1fr; padding: 12px; }
    .partner-final-cta { width: calc(100% - 28px); margin-bottom: 28px; }
    .partner-share-card { gap: 18px; }
    .partner-share-links .copy-row { flex-direction: column; }
    .partner-share-links .button { width: 100%; }
}


/* ===== Central Inteligente ===== */
.module-showcase { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; padding: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); }
.module-showcase-text { display: grid; gap: 14px; min-width: 0; }
.module-showcase-text h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.module-showcase-text > p { margin: 0; color: var(--muted); font-size: 17px; }
.module-badge { width: fit-content; padding: 6px 12px; border-radius: 999px; background: #e9e3f6; color: var(--primary); font-size: 13px; font-weight: 800; }
.module-list { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.module-list li { display: flex; gap: 10px; font-size: 16px; }
.module-list li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--floresta); color: var(--lima); font-size: 13px; font-weight: 800; }
.module-cta { width: fit-content; min-height: 50px; padding: 12px 24px; font-size: 16px; margin-top: 6px; }
.module-cta-note { margin: 0; font-size: 13px; }
.module-showcase-art { display: grid; place-items: center; min-width: 0; }
.module-art { position: relative; width: min(100%, 320px); aspect-ratio: 4 / 5; border-radius: 24px; background: var(--floresta); display: grid; align-content: center; justify-items: center; gap: 14px; padding: 28px; overflow: hidden; }
.module-art::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(72,11,213, .45), transparent 65%); }
.module-art-icon { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 26px; background: var(--degrade); font-size: 44px; animation: module-float 5s ease-in-out infinite; }
.module-art-line { position: relative; width: 80%; height: 12px; border-radius: 8px; background: rgba(255, 255, 255, .12); }
.module-art-line.short { width: 55%; }
@keyframes module-float { 50% { transform: translateY(-8px); } }
@media (max-width: 860px) { .module-showcase { grid-template-columns: 1fr; padding: 24px; } .module-showcase-art { order: -1; } }
@media (prefers-reduced-motion: reduce) { .module-art-icon { animation: none; } }

.module-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.module-toggles form { margin: 0; }
.module-chip { padding: 5px 10px; border: 1px dashed #d3c8f2; border-radius: 999px; background: #fff; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.module-chip.on { border-style: solid; border-color: transparent; background: var(--degrade); color: var(--floresta); }


/* ===== Visual v2 — estilo do painel da Sua Loja Já, cores ChatSolution ===== */
:root { --bg: #f6f4fb; --border: #e4dff2; --primary: #6c3ce9; --primary-dark: #4a22b8; --text: #17122b; --muted: #5f5a72; --ativo-bg: #efe9fe; --ativo-txt: #6c3ce9; }
body { background: var(--bg); color: var(--text); }
.app-shell { grid-template-columns: 252px minmax(0, 1fr); }
.app-shell .sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding: 20px 14px 14px; color: var(--text); background: linear-gradient(180deg, #f3effe 0, #fcfbff 170px, #fff 100%); border-right: 1px solid var(--border); box-shadow: 4px 0 22px rgba(19,9,41, .04); z-index: 60; }
.app-shell .sidebar .brand { flex-direction: row; align-items: center; gap: 11px; margin: 0 0 8px; padding: 4px 8px 14px; color: var(--text); }
.brand-tile { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.brand-tile img { width: 32px; height: 32px; object-fit: contain; }
.app-shell .sidebar .brand b { display: block; min-width: 0; font-size: 16px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.app-shell .sidebar .brand small { display: block; margin-top: 2px; color: #7c8a83; font-size: 11.5px; font-weight: 600; }
.app-shell .sidebar nav { flex: 1; display: block; overflow-y: auto; padding: 0 2px 14px 0; scrollbar-width: thin; scrollbar-color: #e2dfe8 transparent; }
.app-shell .sidebar .nav-section { display: block; margin: 16px 10px 6px; color: #94a39b; font-size: 10.5px; font-style: normal; font-weight: 800; letter-spacing: .12em; }
.app-shell .sidebar .nav-link { position: relative; display: flex; align-items: center; gap: 11px; min-height: 42px; margin: 2px 0; padding: 0 10px; border-radius: 11px; color: #26302b; font-size: 14px; font-weight: 600; box-shadow: none; transition: background .15s; }
.app-shell .sidebar .nav-link:hover { background: #f2f1f6; color: #26302b; }
.app-shell .sidebar .nav-link.active { background: var(--ativo-bg); color: var(--ativo-txt); font-weight: 800; box-shadow: inset 0 0 0 1px #d7ccef; }
.app-shell .sidebar nav .nav-link.active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: #ff8a1f; }
.app-shell .sidebar .nav-link span { width: auto; text-align: left; }
i.ni { display: grid; flex: none; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--ni-bg); color: var(--ni-fg); font-style: normal; }
i.ni svg { width: 17px; height: 17px; display: block; }
.app-shell .sidebar .nav-link.active i.ni { background: #fff; box-shadow: 0 2px 6px rgba(45,4,141, .16); }
.app-shell .sidebar .nav-lock { display: grid; place-items: center; margin-left: auto; color: #9aa8a1; opacity: 1; }
.sidebar-bottom { padding-top: 10px; border-top: 1px solid var(--border); }
.sidebar-bottom form { margin: 6px 0 0; }
.sidebar-logout { width: 100%; min-height: 38px; border: 1px solid #e1dfe7; border-radius: 11px; background: #fff; color: #4f5d56; font-weight: 700; cursor: pointer; }
.sidebar-logout:hover { background: #f7f6f9; }
.app-shell .sidebar .billing-warning { margin-top: 10px; }
.app-shell .sidebar-admin-return { border-top-color: var(--border); }
.app-shell .sidebar-admin-return button { color: var(--text); border-color: var(--border); }
.sidebar-toggle, .sidebar-overlay { display: none; }

.main-content { padding: 26px clamp(18px, 3.4vw, 48px) 80px; }
.topbar { margin-bottom: 22px; }
.topbar .eyebrow { color: #c2410c; color: var(--primary); letter-spacing: .12em; font-size: 11.5px; }
.topbar h1 { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.topbar .user-menu .button-ghost { border: 1px solid var(--border); background: #fff; }
.content-card, .hero-panel, .stat-card, .stats-grid > * { border-radius: 16px; }
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { background: var(--primary-dark); filter: none; }
.page-help-button { left: calc(252px + 20px); right: auto; bottom: 18px; background: #161026; border: 0; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.page-help-button::before { content: "?"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 5px; background: #fff; color: #161026; font-size: 12px; }

@media (max-width: 900px) {
    .app-shell, .app-shell.media-embedded { grid-template-columns: 1fr; }
    .app-shell .sidebar { position: fixed; top: 0; bottom: 0; left: -290px; width: 272px; height: 100vh; transition: left .22s ease; box-shadow: 10px 0 40px rgba(0, 0, 0, .18); }
    body.menu-aberto .app-shell .sidebar { left: 0; }
    .app-shell .sidebar nav { display: block; overflow-y: auto; }
    .app-shell .sidebar .nav-link { min-width: 0; padding: 0 10px; white-space: nowrap; font-size: 14px; }
    .sidebar-toggle { position: fixed; top: 12px; left: 12px; z-index: 55; display: grid; gap: 4px; align-content: center; justify-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); cursor: pointer; }
    .sidebar-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); }
    .sidebar-overlay:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 58; background: rgba(13,10,20, .35); }
    .main-content, .app-shell .main-content { padding: 70px 14px 80px; }
    .page-help-button { left: 14px; }
}

/* cores dos ícones (gerado de App\Helpers\Icon::css) */
.ni-chart{--ni-bg:#eef0ff;--ni-fg:#5b5bd6}.ni-megaphone{--ni-bg:#ffeaf3;--ni-fg:#db2777}.ni-pen{--ni-bg:#fff1e6;--ni-fg:#ea580c}.ni-calendar{--ni-bg:#e8f1ff;--ni-fg:#2563eb}.ni-image{--ni-bg:#ebe6f7;--ni-fg:#340a97}.ni-palette{--ni-bg:#fdf2f8;--ni-fg:#db2777}.ni-search{--ni-bg:#ece7f8;--ni-fg:#3f12a7}.ni-sparkles{--ni-bg:#f4ecff;--ni-fg:#9333ea}.ni-whats{--ni-bg:#e4dbf9;--ni-fg:#350f8f}.ni-report{--ni-bg:#fff6dd;--ni-fg:#d97706}.ni-key{--ni-bg:#fff8db;--ni-fg:#ca8a04}.ni-users{--ni-bg:#e8f4ff;--ni-fg:#0284c7}.ni-wallet{--ni-bg:#ede8f8;--ni-fg:#341283}.ni-handshake{--ni-bg:#ffecef;--ni-fg:#e11d48}.ni-building{--ni-bg:#eef0ff;--ni-fg:#4f46e5}.ni-rocket{--ni-bg:#fff3e0;--ni-fg:#ea7a00}.ni-pulse{--ni-bg:#ece5fc;--ni-fg:#3904b6}.ni-help{--ni-bg:#ece5fc;--ni-fg:#3904b6}.ni-bag{--ni-bg:#fff1e6;--ni-fg:#ea580c}.ni-lock{--ni-bg:#f0f2f4;--ni-fg:#64748b}.ni-logout{--ni-bg:#f0f2f4;--ni-fg:#475569}.ni-gear{--ni-bg:#f0f2f4;--ni-fg:#475569}.ni-bolt{--ni-bg:#fff8db;--ni-fg:#ca8a04}.ni-target{--ni-bg:#ffecee;--ni-fg:#e5484d}.ni-box{--ni-bg:#f2ecff;--ni-fg:#7c3aed}

/* Visão geral v2 */
.page-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.hero-panel { background: linear-gradient(120deg, #1e1145, #130533); border-radius: 18px; }
.hero-panel .eyebrow { color: #ffb020; }
.hero-panel .button-primary { color: #1e1145; background: linear-gradient(120deg, #ffb020, #ff8a1f); }
.app-shell .stat-card { position: relative; display: grid; gap: 4px; align-content: start; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--border); border-top: 1px solid var(--border); border-radius: 16px; box-shadow: none; }
.app-shell .stat-card::before { display: none; }
.app-shell .stat-card i.ni { position: absolute; top: 14px; right: 14px; }
.app-shell .stat-card span { color: var(--muted); font-size: 13px; font-weight: 600; padding-right: 36px; }
.app-shell .stat-card strong { font-size: 28px; line-height: 1.15; }
.app-shell .stat-card small { color: #8a978f; font-size: 12px; }
.section-title { display: flex; align-items: center; gap: 8px; margin: 28px 0 12px; font-size: 18px; }
.section-title svg { color: var(--primary); }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.todo-card { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-content: start; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.todo-card strong { display: block; font-size: 15px; }
.todo-card p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.todo-card .button { grid-column: 1 / -1; justify-self: start; min-height: 34px; padding: 6px 14px; font-size: 13px; }
.button-dark { color: #fff; background: #161026; }
.button-dark:hover { background: #000; }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.module-card { position: relative; display: grid; gap: 6px; align-content: start; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 16px; transition: transform .15s, box-shadow .15s; }
.module-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(30, 17, 69, .4); }
.module-card i.ni { margin-bottom: 4px; }
.module-card strong { font-size: 15.5px; }
.module-card span { color: var(--muted); font-size: 13.5px; }
.module-card em { position: absolute; top: 16px; right: 16px; padding: 3px 9px; border-radius: 999px; background: #f2f1f4; color: #66746d; font-size: 11.5px; font-style: normal; font-weight: 800; }
.module-card.on em { background: var(--ativo-bg); color: var(--ativo-txt); }

/* Novidades */
.main-content.narrow > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.news-list { display: grid; gap: 12px; }
.news-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.news-card h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; }
.news-card h2 em { padding: 2px 8px; border-radius: 6px; background: var(--ativo-bg); color: var(--ativo-txt); font-size: 10.5px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.news-card small { color: #8a978f; font-size: 12.5px; }
.news-card p { margin: 8px 0 0; color: #3c4943; font-size: 14.5px; line-height: 1.6; }

/* Estúdio de Artes dentro da Central */
.est-main { padding-top: 10px; }
.est-main .est { padding-top: 12px; }
.sub-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.sub-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: #3d4a44; font-size: 14px; font-weight: 700; }
.sub-tabs a.on { background: #161026; border-color: #161026; color: #fff; }
.sub-tabs a:hover:not(.on) { border-color: #d3c8f2; }
.form-card { display: grid; gap: 4px; }
.form-card .button { justify-self: start; margin-top: 18px; }
.card-title { margin: 0 0 4px; font-size: 18px; }
.form-grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.seg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.seg-op { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 500; }
.seg-op input { width: auto; margin-top: 4px; }
.seg-op b { display: block; font-size: 14.5px; }
.seg-op small { color: var(--muted); font-size: 12.5px; }
.seg-op:has(input:checked) { border-color: #ff8a1f; background: var(--ativo-bg); }
input[type=color] { height: 46px; padding: 4px; }
.logo-line { display: flex; align-items: center; gap: 14px; }
.logo-prev { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--border); border-radius: 14px; background: #fff; padding: 4px; }
.prod-form { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 0 12px; align-items: end; }
.prod-list { display: grid; gap: 10px; margin-top: 16px; }
.prod-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; }
.prod-item summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.prod-item summary::-webkit-details-marker { display: none; }
.prod-foto { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 10px; background: #f2f1f4; color: #8a978f; font-size: 10px; overflow: hidden; }
.prod-foto img { width: 100%; height: 100%; object-fit: cover; }
.prod-nome { flex: 1; min-width: 0; }
.prod-nome b { display: block; }
.prod-nome small { color: var(--primary); font-weight: 700; }
.prod-nome s { color: #9aa6a0; font-weight: 500; }
.prod-item summary em { color: var(--primary); font-size: 13px; font-style: normal; font-weight: 700; }
.prod-acoes { display: flex; gap: 8px; align-items: end; grid-column: 1 / -1; margin-top: 12px; }
.danger-text { color: #b42318; }
@media (max-width: 760px) { .form-grid.two, .prod-form { grid-template-columns: 1fr; } }
.quota-box { flex-basis: 100%; margin-top: 4px; font-size: 12.5px; }
.quota-box summary { cursor: pointer; color: var(--primary); font-weight: 700; }
.quota-box form { display: grid; gap: 4px; margin-top: 6px; }
.quota-box label { margin: 6px 0 0; font-size: 12.5px; }
.quota-box input { padding: 7px 9px; }

/* ---------- Análise de Vendas ---------- */
.periodo { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 0 0 6px; }
.periodo label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 700; }
.periodo input { min-height: 40px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.small { font-size: 13px; }
.card-title { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.analise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.barra { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr auto; align-items: center; gap: 10px; margin: 9px 0; font-size: 14px; }
.barra i { display: block; height: 10px; background: #efeef2; border-radius: 99px; overflow: hidden; }
.barra b { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.barra em { color: var(--muted); font-style: normal; font-size: 13px; white-space: nowrap; }
.barra .w0 { width: 3%; } .barra .w1 { width: 10%; } .barra .w2 { width: 20%; } .barra .w3 { width: 30%; } .barra .w4 { width: 40%; } .barra .w5 { width: 50%; }
.barra .w6 { width: 60%; } .barra .w7 { width: 70%; } .barra .w8 { width: 80%; } .barra .w9 { width: 90%; } .barra .w10 { width: 100%; }
.falta-lista { margin: 0; padding-left: 20px; }
.falta-lista li { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.falta-lista li span { float: right; color: var(--muted); font-size: 13px; }
.link-mais { display: inline-block; margin-top: 12px; color: var(--primary); font-weight: 750; }
.res-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.res-ok { color: #4a22b8; background: #e5def6; } .res-bom { color: #312155; background: #ecf8d9; }
.res-aviso { color: #7a4b00; background: #fff1d1; } .res-ruim { color: #8f1d14; background: #fde4e1; } .res-neutro { color: #4a5550; background: #eceff0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip { padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: #3d4a44; font-size: 13.5px; font-weight: 700; }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.paginas { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; color: var(--muted); }
.empty-hero { display: flex; gap: 18px; align-items: flex-start; margin-top: 16px; }
.empty-hero h2 { margin: 0 0 6px; }
.analise-detalhe { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.resultado-card .res-tag { font-size: 14px; padding: 6px 14px; }
.resultado-motivo { font-size: 17px; font-weight: 650; margin: 12px 0; }
.resultado-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 16px; font-size: 14px; }
.resultado-card dt { color: var(--muted); } .resultado-card dd { margin: 0; font-weight: 650; }
.conversa { display: flex; flex-direction: column; gap: 10px; background: #f3efe8; }
.msg { max-width: 78%; padding: 9px 13px; border-radius: 12px; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.msg p { margin: 3px 0 0; } .msg small { color: var(--muted); font-size: 11.5px; }
.msg-out { align-self: flex-end; background: #d4c4f8; }
.msg-evid { outline: 3px solid #f2c94c; }
.copy-line { display: flex; gap: 8px; } .copy-line input { flex: 1; min-width: 0; font-family: monospace; }
.status-line { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-weight: 650; }
.passos { margin: 0; padding-left: 22px; line-height: 1.7; }
@media (max-width: 860px) { .analise-detalhe { grid-template-columns: 1fr; } .msg { max-width: 92%; } .barra { grid-template-columns: 1fr 1.4fr auto; } }

/* ---------- Gestor Inteligente ---------- */
.spaced-top { margin-top: 20px; }
.gestor-lista { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.gestor-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.gestor-item.top { border: 2px solid var(--primary); box-shadow: 0 8px 24px rgba(45,4,141, .12); }
.gestor-item strong { display: block; font-size: 16px; } .gestor-item p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.gestor-prio { display: inline-block; margin-bottom: 4px; padding: 2px 8px; color: #fff; background: var(--primary); border-radius: 99px; font-size: 11px; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.datas-lista { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.datas-lista li { display: flex; gap: 12px; align-items: center; }
.datas-lista small { display: block; color: var(--muted); font-size: 13px; }
.data-dia { display: grid; place-items: center; width: 52px; height: 52px; flex: none; background: #f1eef7; color: var(--primary); border-radius: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.data-dia b { font-size: 20px; }
.retrato { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-size: 14.5px; }
.retrato dt { color: var(--muted); } .retrato dd { margin: 0; font-weight: 800; text-align: right; }
@media (max-width: 700px) { .gestor-item { grid-template-columns: auto 1fr; } .gestor-item .button { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 860px) { h2.card-title { font-size: 17px; } }

/* ---------- Planos com módulos ---------- */
.signup-card { width: min(100%, 1080px); }
.public-plan-card.is-highlight span { border-color: #f2b705; }
.public-plan-card .plan-flag { justify-self: start; padding: 3px 10px; color: #5a3d00; background: #ffe08a; border-radius: 99px; font-size: 11.5px; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.public-plan-card b small { margin-left: 3px; font-size: 14px; font-weight: 700; }
.plan-feats { display: grid; gap: 5px; margin: 4px 0; padding: 0; list-style: none; font-size: 14px; }
.plan-feats li { position: relative; padding-left: 22px; }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 900; }
.plan-modules { display: grid; gap: 6px; margin: 14px 0 6px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.plan-modules legend { padding: 0 6px; font-weight: 750; }
.signup-card { width: min(100%, 1200px); }
.signup-card .public-plan-grid { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }

/* ---------- Recuperar vendas ---------- */
.stat-link { display: block; color: inherit; text-decoration: none; } .stat-link:hover { border-color: var(--primary); }
.recover-list { display: grid; gap: 12px; }
.recover-item { padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.recover-item.done { background: #fbfafc; opacity: .85; }
.recover-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.recover-head small { display: block; color: var(--muted); font-size: 13px; }
.recover-why { margin: 8px 0; color: #3d4a44; font-size: 14px; }
.recover-msg { margin: 0 0 12px; padding: 10px 14px; background: #d4c4f8; border-radius: 12px; font-size: 14.5px; }
.recover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.recover-actions .link-mais { margin: 0; }
.button-full { width: 100%; margin-bottom: 8px; }
/* Botão Ajuda no canto direito (não cobre o conteúdo). */
.page-help-button { left: auto; right: max(18px, env(safe-area-inset-right, 0px)); bottom: 18px; }
@media (max-width: 860px) { .page-help-button { left: auto; right: 12px; bottom: 12px; } }

/* ---------- Plano da semana ---------- */
.semana-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.semana-head .card-title { margin: 0; }
.semana-meta { padding: 4px 12px; border-radius: 99px; background: #fff1d1; color: #7a4b00; font-size: 13px; font-weight: 800; }
.semana-meta.ok { background: #e5def6; color: #4a22b8; }
.semana-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.semana-dia { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px; border: 1px dashed #cdc9d8; border-radius: 14px; background: #fff; color: inherit; text-decoration: none; }
.semana-dia:hover { border-color: var(--primary); border-style: solid; }
.semana-dia.feito { border-style: solid; border-color: #b09ed9; background: #f5f2fb; }
.semana-quando { color: var(--muted); font-size: 12px; } .semana-quando b { color: var(--primary); text-transform: uppercase; }
.semana-dia strong { font-size: 14px; line-height: 1.25; } .semana-dia small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.semana-dia em { margin-top: auto; color: var(--primary); font-size: 12px; font-style: normal; font-weight: 800; }
@media (max-width: 1100px) { .semana-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.mrr-total { margin: 0 0 12px; font-size: 30px; font-weight: 850; color: var(--primary); } .mrr-total small { font-size: 14px; color: var(--muted); font-weight: 700; }
.resultado-mes { margin: 0 0 22px; padding: 18px 22px; border-radius: 16px; background: linear-gradient(120deg, #ede9f8, #f9f7fe); border: 1px solid #d7ceea; }
.resultado-mes .eyebrow { margin: 0 0 10px; }
.resultado-itens { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.resultado-itens strong { display: block; font-size: 26px; color: #4a22b8; font-variant-numeric: tabular-nums; }
.resultado-itens span { color: #3d4a44; font-size: 13.5px; }
.est-mais { display: block; margin-top: 8px; padding: 9px 12px; border: 1px dashed var(--primary); border-radius: 10px; color: var(--primary); font-weight: 800; text-align: center; text-decoration: none; }
.est-mais.urgente { background: var(--primary); color: #fff; border-style: solid; }
.pack-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.pack-status div { padding: 14px; background: #f4f3f8; border-radius: 12px; } .pack-status span { display: block; color: var(--muted); font-size: 13px; } .pack-status strong { font-size: 24px; }
.pack-pix { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; } .pack-pix > div { flex: 1; min-width: 240px; }
.periodo-chips { margin: 0 0 10px; }
.resumo-dia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 16px 0 4px; }
.resumo-dia { padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--primary); }
.resumo-dia .eyebrow { margin: 0 0 6px; }
.resumo-dia-txt { margin: 0; font-size: 15.5px; line-height: 1.5; }
.resumo-dia .link-mais { margin-top: 8px; }
.previa-resumo { margin-top: 16px; } .previa-resumo summary { cursor: pointer; font-weight: 750; color: var(--primary); }
.previa-resumo pre { max-width: 460px; margin: 10px 0 0; padding: 14px 16px; background: #d4c4f8; border-radius: 14px; white-space: pre-wrap; font: 14px/1.5 inherit; font-family: inherit; }
.onde-escapou { margin: 0 0 14px; padding: 12px 14px; background: #fff4f2; border: 1px solid #f6cfc9; border-radius: 12px; font-size: 14px; }
.onde-escapou b { color: #8f1d14; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; } .onde-escapou ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Recuperar vendas v2 ---------- */
.rec-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 6px 0 14px; }
.rec-stat { padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.rec-stat span { display: block; font-size: 12.5px; font-weight: 800; color: #4a5550; text-transform: uppercase; letter-spacing: .03em; }
.rec-stat strong { display: block; margin: 6px 0 2px; font-size: 28px; font-variant-numeric: tabular-nums; } .rec-stat small { color: var(--muted); }
.rec-stat.amarelo { background: #fffbea; border-color: #f6e3a1; } .rec-stat.amarelo strong { color: #b45309; }
.rec-stat.verde { background: #f2effb; border-color: #d1c6eb; } .rec-stat.verde strong { color: #4a22b8; }
.rec-stat.azul { background: #eff5ff; border-color: #cfdcf6; }
.rec-filtros { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.rec-filtros .chips { margin: 0; } .rec-resp { display: flex; gap: 8px; } .rec-resp select { min-height: 40px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.rec-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 18px; min-width: 0; }
.rec-card.feito { background: #fcfbfd; }
.rec-top { display: flex; justify-content: space-between; gap: 10px; } .rec-top strong { font-size: 17px; } .rec-top small { display: block; color: var(--muted); font-size: 12.5px; }
.rec-valor { color: #b45309; font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rec-tags { display: flex; flex-wrap: wrap; gap: 6px; } .rec-tag { padding: 3px 9px; border-radius: 99px; background: #f1f3f2; font-size: 12px; font-weight: 800; }
.rec-tag.t-quente { background: #ffe5e0; color: #9a2a12; } .rec-tag.t-morno { background: #fff3c4; color: #7a5200; } .rec-tag.t-frio { background: #e3eefc; color: #1d4f91; } .rec-tag.t-ok { background: #e5def6; color: #4a22b8; }
.rec-box { padding: 10px 12px; background: #f4f6f5; border-radius: 12px; font-size: 14px; } .rec-box b { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: #4a5550; }
.rec-box p { margin: 4px 0 0; overflow-wrap: anywhere; } .rec-box.cliente { background: #fff6ec; }
.rec-enviar summary { list-style: none; width: 100%; } .rec-enviar summary::-webkit-details-marker { display: none; }
.rec-enviar[open] summary { display: none; }
.rec-enviar form { display: grid; gap: 8px; } .rec-enviar label { font-size: 13px; font-weight: 750; }
.rec-enviar textarea { width: 100%; min-height: 96px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; font: inherit; background: #f7f6fb; }
.rec-acoes { display: flex; gap: 8px; align-items: center; } .rec-acoes form { margin: 0; }
.rec-aviso { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 16px 18px; margin: 4px 0 14px; border-radius: 16px; border: 1px solid; }
.rec-aviso > div { flex: 1 1 420px; min-width: 0; } .rec-aviso p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; }
.rec-aviso.qr { background: #fff8e6; border-color: #f3d58a; } .rec-aviso.oficial { background: #f3effe; border-color: #c5b8e3; }
.rec-cota { display: inline-block; margin-top: 6px; padding: 3px 10px; background: #fff; border-radius: 99px; border: 1px solid #f3d58a; }
.rec-tipo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .rec-tipo label { font-weight: 750; font-size: 13.5px; }
.rec-tipo select { min-height: 40px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; }
.rec-janela { margin: 0; padding: 7px 11px; border-radius: 10px; background: #f3effe; color: #4a22b8; font-size: 13px; font-weight: 750; }
.rec-janela.urgente { background: #fff1e5; color: #9a3412; } .rec-janela.fechada { background: #f1f3f2; color: #4a5550; }
.rec-tag.t-acabando { background: #ffedd5; color: #9a3412; }

/* Gráfico 7 dias — vendas que escaparam */
.g7 { margin-bottom: 18px; }
.g7-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.g7-head .card-title { margin-bottom: 2px; }
.g7-totais { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 18px; }
.g7-t { border-radius: 14px; padding: 10px 12px; border: 1px solid var(--border); }
.g7-t span { display: block; font-size: 12.5px; font-weight: 700; }
.g7-t strong { display: block; font-size: 22px; margin: 2px 0; font-variant-numeric: tabular-nums; }
.g7-t small { color: var(--muted); font-size: 12px; }
.g7-t.perdida { background: #fff3f1; border-color: #f6cfc9; } .g7-t.perdida strong { color: #b42318; }
.g7-t.aindada { background: #fff8e6; border-color: #f3d58a; } .g7-t.aindada strong { color: #a15c00; }
.g7-t.recuperada { background: #f0ecf9; border-color: #cbbee9; } .g7-t.recuperada strong { color: #6c3ce9; }
.g7-barras { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 210px; }
.g7-col { display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.g7-val { font-size: 11px; color: var(--muted); height: 16px; white-space: nowrap; }
.g7-pilha { flex: 1; width: 100%; max-width: 46px; display: flex; flex-direction: column-reverse; justify-content: flex-start; background: #f3f5f4; border-radius: 8px; overflow: hidden; }
.g7-pilha i { display: block; width: 100%; }
.g7-pilha i.perdida, .g7-leg i.perdida { background: #ef6a5b; }
.g7-pilha i.aindada, .g7-leg i.aindada { background: #f5b83d; }
.g7-pilha i.recuperada, .g7-leg i.recuperada { background: #471fa6; }
.g7-dia { font-size: 11.5px; margin-top: 6px; color: var(--muted); white-space: nowrap; }
.g7-leg { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.g7-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -8px; }
@media (max-width: 640px) {
  .g7-totais { grid-template-columns: 1fr; }
  .g7-barras { gap: 4px; height: 170px; }
  .g7-val { display: none; }
  .g7-dia { font-size: 10px; }
}

/* Cartão: número em que o cliente chamou e por onde sai */
.rec-numeros { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; padding: 8px 10px; background: #f3f8ff; border: 1px solid #cfe0f5; border-radius: 12px; font-size: 12.5px; }
.rec-numeros span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.rec-numeros b { display: block; word-break: break-word; }
.rec-numeros .erro b { color: #b42318; }

/* Prova das vendas recuperadas pela Central */
.prova .card-title { margin-bottom: 4px; }
.prova-vazio { padding: 14px; background: #f7f6fa; border: 1px dashed #cbbee9; border-radius: 12px; color: var(--muted); margin: 10px 0 0; }
.prova-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.prova-item { border: 1px solid #cbbee9; background: #f8f6fc; border-radius: 16px; padding: 14px; }
.prova-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.prova-top small { display: block; color: var(--muted); font-size: 12px; }
.prova-valor { color: #6c3ce9; font-size: 18px; white-space: nowrap; }
.prova-passos { list-style: none; margin: 10px 0; padding: 0 0 0 14px; border-left: 3px solid #471fa6; display: grid; gap: 8px; font-size: 13.5px; }
.prova-passos span { display: block; font-size: 11.5px; font-weight: 750; color: #6c3ce9; }
.brand.auth-brand, .brand.auth-brand span { color: var(--text); }

/* ============ Tema escuro (botão "Tema escuro" no menu) ============ */
.tema-toggle { width: 100%; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.tema-ico { --ni-bg: #eef0ff; font-size: 15px; }
html[data-tema="escuro"] {
  color-scheme: dark;
  --bg: #0f0b1c; --surface: #171127; --surface-2: #1f1733; --text: #ece8f6; --muted: #a99fc4; --border: #322845;
  --primary: #a58bff; --primary-dark: #8c6cf5; --ativo-bg: #2a1d4f; --ativo-txt: #c9b6ff; --ni-bg: #251b3d;
  --shadow: 0 18px 45px rgba(0, 0, 0, .35);
}
html[data-tema="escuro"] body { background: var(--bg); color: var(--text); }
html[data-tema="escuro"] .button-primary, html[data-tema="escuro"] .est-mais.urgente { color: #fff; background: #7b4ff0; }
html[data-tema="escuro"] .button-primary:hover { background: #6438dc; }
html[data-tema="escuro"] .button-secondary, html[data-tema="escuro"] .media-bulk-toggle, html[data-tema="escuro"] .row-menu > summary { color: #c9b6ff; background: #2a1d4f; }
html[data-tema="escuro"] input, html[data-tema="escuro"] select, html[data-tema="escuro"] textarea { color: var(--text); background: #130e22; border-color: var(--border); }
html[data-tema="escuro"] input::placeholder, html[data-tema="escuro"] textarea::placeholder { color: #7a7192; }
/* superfícies brancas → cartão escuro */
html[data-tema="escuro"] :is(.help-drawer > header, .help-content details, .row-menu-panel, .connection-choice, .media-menu, .temporary-code, .plan-editor, .plan-admin-card,
  .module-chip, .brand-tile, .sidebar-logout, .topbar .user-menu .button-ghost, .app-shell .stat-card, .todo-card, .module-card, .news-card, .sub-tabs a, .seg-op, .prod-item,
  .chip, .gestor-item, .recover-item, .semana-dia, .resumo-dia, .rec-stat, .rec-card, .rec-cota, .rec-tipo select, .msg, .public-plan-card span, .hero-panel .button,
  .page-help-button::before, .app-shell .sidebar .nav-link.active i.ni, .stats-grid > *, .hero-panel) { background: var(--surface); color: var(--text); border-color: var(--border); }
html[data-tema="escuro"] .help-drawer { background: var(--bg); color: var(--text); }
html[data-tema="escuro"] .app-shell .sidebar { background: linear-gradient(180deg, #191326 0, #15121e 170px, #14111b 100%); border-right-color: var(--border); }
html[data-tema="escuro"] .app-shell .sidebar .nav-link:hover, html[data-tema="escuro"] .sidebar-logout:hover { background: #1f1733; }
html[data-tema="escuro"] .app-shell .sidebar .nav-link.active { box-shadow: inset 0 0 0 1px #392b5b; }
html[data-tema="escuro"] .app-shell .sidebar .brand small { color: var(--muted); }
html[data-tema="escuro"] .brand-tile { background: #fff; }
/* fundos levemente coloridos → tons escuros */
html[data-tema="escuro"] :is(.billing-actions > div, .media-upload-picker > span, .media-preview, .selected-media, .dialog-close, .quick-media-summary, .payment-refresh, .font-choice,
  .muted-pill, .currency-input span, .module-card em, .prod-foto, .barra i, .data-dia, .pack-status div, .rec-box, .g7-pilha, .prova-vazio, .recover-item.done, .rec-card.feito,
  .problem-connection-context, .calendar-item, .media-upload-picker:hover, .partner-admin-table tr, .mobile-card-table tr) { background: var(--surface-2); color: var(--text); }
html[data-tema="escuro"] .conversa { background: #120f19; }
html[data-tema="escuro"] .msg { background: #231f2c; }
html[data-tema="escuro"] .msg.out, html[data-tema="escuro"] .msg.saida { background: #211245; }
html[data-tema="escuro"] :is(.alert-success, .status-pill, .connection-choice.is-connected, .module-badge, .semana-dia.feito, .rec-stat.verde, .g7-t.recuperada, .prova-item, .rec-janela, .res-ok, .res-bom, .font-choice:has(input:checked)) { background: #241a40; color: #bba4f1; border-color: #332357; }
html[data-tema="escuro"] :is(.alert-error, .report-problem-button, .connection-choice.is-disconnected, .onde-escapou, .g7-t.perdida, .res-ruim, .rec-tag.t-quente) { background: #3a1b18; color: #ffb4a8; border-color: #5e2a24; }
html[data-tema="escuro"] :is(.res-aviso, .semana-meta, .rec-stat.amarelo, .rec-aviso.qr, .g7-t.aindada, .rec-janela.urgente, .rec-tag.t-acabando) { background: #3a2e12; color: #ffd98a; border-color: #5e4a1c; }
html[data-tema="escuro"] :is(.alert-info, .rec-stat.azul, .rec-numeros) { background: #152a3a; color: #a9d3f5; border-color: #24445e; }
html[data-tema="escuro"] .res-neutro { background: #272430; color: #c7c3d0; }
html[data-tema="escuro"] .resultado-mes, html[data-tema="escuro"] .partner-share-card { background: linear-gradient(120deg, #1d1431, #171127); }
html[data-tema="escuro"] .g7-t.perdida strong { color: #ff8b7c; } html[data-tema="escuro"] .g7-t.aindada strong { color: #ffc65a; } html[data-tema="escuro"] .g7-t.recuperada strong, html[data-tema="escuro"] .prova-valor { color: #855ce6; }
html[data-tema="escuro"] .prova-passos span { color: #855ce6; }
html[data-tema="escuro"] .rec-numeros .erro b { color: #ff8b7c; }
html[data-tema="escuro"] .rec-valor, html[data-tema="escuro"] .rec-stat strong { color: inherit; }
html[data-tema="escuro"] .help-drawer, html[data-tema="escuro"] .help-content p { color: var(--text); }
html[data-tema="escuro"] .semana-dia { border-color: #3a334a; }
html[data-tema="escuro"] .media-menu a:hover, html[data-tema="escuro"] .media-menu button:hover { background: #2a1d4f; }
html[data-tema="escuro"] th { color: var(--muted); }
html[data-tema="escuro"] .billing-warning { color: #ffd98a; }
html[data-tema="escuro"] .app-shell .sidebar .nav-link { color: #d3cfdc; }
html[data-tema="escuro"] .app-shell .sidebar .nav-link.active { color: var(--ativo-txt); }
html[data-tema="escuro"] .app-shell .sidebar .nav-section { color: #7f948a; }
html[data-tema="escuro"] .resultado-mes { border-color: #332357; }
html[data-tema="escuro"] .resultado-itens strong { color: #855ce6; }
html[data-tema="escuro"] .resultado-itens span { color: var(--muted); }
html[data-tema="escuro"] .rec-tag { background: #272430; color: #d9d6e2; }
html[data-tema="escuro"] .rec-tag.t-morno { background: #3a2e12; color: #ffd98a; }
html[data-tema="escuro"] .rec-tag.t-ok { background: #241a40; color: #bba4f1; }
/* Aviso da senha padrão */
.aviso-senha { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 12px; width: min(760px, calc(100vw - 32px)); padding: 12px 14px; border-radius: 16px; background: #fff8e6; border: 1px solid #f3d58a; color: #3d2a00; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.aviso-senha > span { font-size: 22px; }
.aviso-senha p { flex: 1; margin: 0; font-size: 14px; line-height: 1.4; }
.aviso-senha form { margin: 0; }
.aviso-senha .button { white-space: nowrap; min-height: 38px; padding: 8px 14px; }
@media (max-width: 640px) { .aviso-senha { flex-wrap: wrap; } .aviso-senha p { flex-basis: calc(100% - 40px); } }
html[data-tema="escuro"] .aviso-senha { background: #3a2e12; border-color: #5e4a1c; color: #ffe7b0; }
/* Ligar WhatsApp do CRM */
.vincular-passos { margin: 6px 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.campo-secreto { -webkit-text-security: disc; font-family: ui-monospace, monospace; }
.campo-secreto:focus { -webkit-text-security: none; }
input[data-trava-auto] { cursor: text; }
.two-column > .content-card, .two-column > section { margin-top: 0; align-self: start; }
.vincular-crm:not(.two-column > *) { margin-top: 20px; }
/* Barra da Análise: abas + botão Atualizar */
.analise-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 20px; }
.analise-barra .sub-tabs { margin: 0; }
.analise-atualizar { margin: 0; }
.btn-atualizar { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 8px 6px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--primary); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.btn-atualizar:hover { border-color: #b09ed9; }
.dica { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #efe9fe; color: var(--primary); font-size: 12px; font-weight: 900; cursor: help; }
.dica::after { content: attr(data-dica); position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 230px; padding: 8px 10px; border-radius: 10px; background: #161026; color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.35; text-align: left; white-space: normal; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .15s, transform .15s; }
.dica:hover::after, .dica:focus::after { opacity: 1; transform: none; }
html[data-tema="escuro"] .dica { background: #2a1d4f; }
/* Conversa mais estreita na página e janelinha do "Ver conversa" */
.analise-detalhe { grid-template-columns: 330px minmax(0, 560px); }
.ver-conversa { white-space: nowrap; padding: 6px 12px; font-size: 13px; }
.dlg-conversa { width: min(440px, calc(100vw - 24px)); height: min(720px, calc(100vh - 40px)); padding: 0; border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); background: var(--surface); }
.dlg-conversa::backdrop { background: rgba(13,10,20, .45); }
.dlg-conversa iframe { width: 100%; height: calc(100% - 44px); border: 0; display: block; }
.dlg-conversa header { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--border); font-weight: 800; font-size: 14px; }
.dlg-conversa header a { margin-left: auto; margin-right: 6px; font-size: 12.5px; color: var(--primary); font-weight: 700; }
.dlg-conversa header button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; font-size: 20px; cursor: pointer; color: var(--muted); }
body.modal-conversa { background: var(--surface); }
body.modal-conversa main { padding: 12px; }
.analise-detalhe.compacto { grid-template-columns: 1fr; gap: 12px; }
.analise-detalhe.compacto .resultado-card { padding: 14px; }
.analise-detalhe.compacto .conversa { padding: 12px; max-height: none; }
.analise-detalhe.compacto .msg { max-width: 88%; font-size: 13.5px; }
/* Janelinha da conversa (estilo WhatsApp) */
body.chat-mini { margin: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface); font-size: 14px; }
.cm-topo { display: flex; align-items: center; gap: 10px; padding: 10px 52px 10px 14px; border-bottom: 1px solid var(--border); }
.cm-topo .cm-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #efe9fe; }
.cm-topo b { display: block; font-size: 15px; } .cm-topo small { color: var(--muted); font-size: 12px; }
.cm-topo .res-tag { padding: 1px 7px; font-size: 10.5px; }
.cm-escapou { margin: 0; padding: 7px 14px; background: #fff4f2; color: #8f1d14; font-size: 12.5px; border-bottom: 1px solid #f6cfc9; }
.cm-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 12px; background: #efeae2; }
.cm-msg { max-width: 82%; padding: 7px 10px 5px; border-radius: 10px; background: #fff; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.06); word-wrap: break-word; }
.cm-msg.out { align-self: flex-end; background: #dfd2fe; }
.cm-msg b { display: block; font-size: 12.5px; }
.cm-msg small { display: block; margin-top: 2px; text-align: right; color: #667781; font-size: 10.5px; }
.cm-msg.crit { outline: 2px solid #f2994a; }
.cm-pe { padding: 8px 12px 12px; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.cm-janela { margin: 0; padding: 6px 10px; border-radius: 9px; background: #f3effe; color: #27096d; font-size: 12.5px; font-weight: 700; }
.cm-janela.urgente { background: #fff1e5; color: #9a3412; } .cm-janela.fechada { background: #f1f1f1; color: #666; }
.cm-form { display: flex; gap: 8px; align-items: flex-end; margin: 0; }
.cm-form textarea { flex: 1; min-height: 64px; max-height: 120px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; resize: vertical; }
.cm-form .button { white-space: nowrap; }
html[data-tema="escuro"] .cm-msgs { background: #0b141a; } html[data-tema="escuro"] .cm-msg { background: #202c33; color: #ebe9ef; }
html[data-tema="escuro"] .cm-msg.out { background: #1c005c; } html[data-tema="escuro"] .cm-escapou { background: #3a1b18; color: #ffb4a8; }
.dlg-conversa.mini { width: min(560px, calc(100vw - 24px)); height: min(680px, calc(100vh - 40px)); }
.dlg-conversa.mini header { position: absolute; top: 0; right: 0; border: 0; height: 56px; background: transparent; padding: 0 8px; }
.dlg-conversa.mini header span, .dlg-conversa.mini header a { display: none; }
.dlg-conversa.mini iframe { height: 100%; }
/* Dados da marca: "O que você vende?" só aparece para Sistemas e tecnologia */
.ramo-box { display: none; margin: 4px 0 8px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
form:has(input[name="segment"][value="sistemas"]:checked) .ramo-box { display: block; }
.ramo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 10px; }
.ramo-op { display: flex; gap: 8px; align-items: center; margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-weight: 600; cursor: pointer; }
.ramo-op:has(input:checked) { border-color: var(--primary); background: var(--ativo-bg); }
.ramo-box label:first-child { margin-top: 0; }
.pessoa-box { margin: 14px 0; padding: 14px; border: 1px solid var(--border); border-radius: 14px; }
.pessoa-box > label:first-child { margin-top: 0; }
.pessoa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pessoa-op { display: grid; gap: 6px; justify-items: start; padding: 10px; border: 1px dashed var(--border); border-radius: 12px; }
.pessoa-prev { width: 100%; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2, #f3f5f4); font-size: 28px; }
.pessoa-prev img { width: 100%; height: 100%; object-fit: cover; }
.pessoa-op input[type=file] { width: 100%; font-size: 12px; padding: 6px; }
.pessoa-op b { margin: 0; } .pessoa-op .check-row { margin: 0; }
.ramo-op { justify-content: flex-start; text-align: left; line-height: 1.35; }
.ramo-op input { flex: none; width: 18px; height: 18px; margin: 0; }
.ramo-op span { flex: 1; }
/* ===== Agenda ===== */
.ag-vazio-ic { font-size: 40px; }
.ag-resumo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ag-resumo article { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.ag-resumo span { display: block; font-size: 13px; color: var(--muted); font-weight: 700; } .ag-resumo strong { display: block; font-size: 28px; } .ag-resumo small { color: var(--muted); }
.ag-resumo .atencao { background: #fff8e6; border-color: #f3d58a; }
.ag-barra { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; }
.ag-nav { display: flex; align-items: center; gap: 6px; } .ag-nav .button { min-height: 38px; padding: 6px 12px; } .ag-titulo { margin-left: 8px; font-size: 17px; }
.ag-filtros { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; } .ag-filtros select, .ag-filtros input { width: auto; min-height: 38px; padding: 6px 10px; }
.ag-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ag-lista { display: grid; gap: 8px; padding: 16px; }
.ag-dia { margin: 10px 0 2px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ag-item { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-left: 5px solid var(--cor); border-radius: 12px; background: var(--surface); }
.ag-item.st-cancelado, .ag-item.st-ausente { opacity: .6; }
.ag-hora b { display: block; font-size: 18px; } .ag-hora small { color: var(--muted); }
.ag-info b { display: block; } .ag-info small { display: block; color: var(--muted); font-size: 12.5px; } .ag-obs { margin-top: 2px; }
.ag-acoes { position: relative; } .ag-acoes summary { list-style: none; min-height: 34px; padding: 6px 12px; font-size: 13px; cursor: pointer; } .ag-acoes summary::-webkit-details-marker { display: none; }
.ag-menu { position: absolute; right: 0; top: 40px; z-index: 30; width: 270px; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.ag-menu form { margin: 0; } .ag-menu > form > button { width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font: inherit; cursor: pointer; color: inherit; }
.ag-menu > form > button:hover { background: var(--ativo-bg); }
.ag-remarcar { display: grid; gap: 6px; margin-top: 6px !important; padding-top: 8px; border-top: 1px solid var(--border); }
.ag-remarcar input, .ag-remarcar select { padding: 8px; }
.ag-zap { padding: 8px 10px; font-size: 13.5px; color: var(--primary); font-weight: 700; }
.ag-novo { padding: 18px; position: sticky; top: 16px; } .ag-novo label { margin-top: 12px; }
.ag-topo-acoes { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.ag-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ag-card { border-top: 5px solid var(--cor); } .ag-card.off { opacity: .6; }
.ag-card-topo { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; } .ag-card-topo > div { flex: 1; } .ag-card-topo b { display: block; font-size: 17px; } .ag-card-topo small { color: var(--muted); }
.ag-card-topo i { width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: var(--cor); }
.ag-card-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ag-form .card-title { margin-top: 22px; } .ag-form .card-title:first-of-type { margin-top: 0; }
.ag-regras { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ag-horas { display: grid; gap: 6px; }
.ag-dia-linha { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.ag-dia-linha .check-row { margin: 0; } .ag-dia-linha span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.ag-dia-linha input[type=time] { width: auto; padding: 6px 8px; }
.ag-dia-linha:has(input[type=checkbox]:not(:checked)) span { opacity: .4; }
.ag-bloq-lista { display: grid; gap: 8px; } .ag-bloq { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; }
.ag-bloq b { display: block; } .ag-bloq small { color: var(--muted); } .ag-bloq form { margin: 0; }
.ag-msgs { display: grid; gap: 8px; margin: 12px 0 16px; }
.ag-msg { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; } .ag-msg summary { cursor: pointer; font-weight: 800; } .ag-msg textarea { margin-top: 8px; }
@media (max-width: 980px) { .ag-grid { grid-template-columns: 1fr; } .ag-novo { position: static; } .ag-resumo { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ag-item { grid-template-columns: 56px 1fr; } .ag-item .res-tag, .ag-acoes { grid-column: 2; justify-self: start; } .ag-menu { left: 0; right: auto; } .ag-dia-linha { grid-template-columns: 1fr; } }
/* consumo de atendimentos da IA (Agenda) */
.ag-consumo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; font-size: 13.5px; color: var(--muted, #5b6b63); }
.ag-consumo-barra { flex: 1 1 160px; max-width: 280px; height: 8px; border-radius: 99px; background: rgba(0,0,0,.08); overflow: hidden; }
.ag-consumo-barra i { display: block; height: 100%; background: var(--green, #6c3ce9); border-radius: 99px; }
.ag-consumo.alerta .ag-consumo-barra i { background: #e0a100; }
.ag-consumo.estourou .ag-consumo-barra i { background: #d64545; }
.ag-estouro { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; margin: 0 0 16px; border-radius: 14px; background: #fff4f2; border: 1px solid #f3c2bb; color: #6d211a; }
.ag-estouro p { margin: 4px 0 0; font-size: 14px; }
.ag-aviso80 { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #fff8e6; color: #7a4b00; font-size: 14px; }
html[data-tema="escuro"] .ag-estouro { background: #3a1f1c; border-color: #6d2f28; color: #ffd9d3; }
html[data-tema="escuro"] .ag-aviso80 { background: #3a2f12; color: #ffe2a3; }
html[data-tema="escuro"] .ag-consumo-barra { background: rgba(255,255,255,.12); }
.cobranca-detalhe { margin-bottom: 18px; }
.tabela-simples { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tabela-simples td { padding: 8px 4px; border-bottom: 1px solid rgba(0,0,0,.07); }
.tabela-simples .num { text-align: right; white-space: nowrap; }
.tabela-simples .total td { font-weight: 700; border-bottom: 0; }
/* portal do parceiro: links e kit */
.parceiro-links { margin-bottom: 18px; }
.parceiro-link-linha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(0,0,0,.07); }
.parceiro-link-linha small { display: block; color: var(--muted, #5b6b63); font-size: 13px; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.kit-item { display: grid; gap: 8px; padding: 14px; border-radius: 14px; border: 1px solid rgba(0,0,0,.08); }
.kit-item textarea { width: 100%; resize: vertical; font: inherit; font-size: 14px; padding: 10px; border-radius: 10px; border: 1px solid rgba(0,0,0,.12); background: rgba(0,0,0,.02); color: inherit; }
.kit-dicas { margin-top: 16px; font-size: 14.5px; } .kit-dicas ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.partner-legado { margin-top: 10px; } .partner-legado summary { cursor: pointer; color: var(--muted, #5b6b63); font-size: 14px; }
@media (max-width: 720px) { .parceiro-link-linha { grid-template-columns: 1fr; } }
/* Agenda: atendente IA */
.ag-rapidos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.ag-rapidos form { margin: 0; } .ag-rapidos .button { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.ag-ia-st { font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: rgba(0,0,0,.06); }
.ag-ia-st.on { background: #ece6fd; color: #6c3ce9; } .ag-ia-st.pausa { background: #fff4d6; color: #7a4b00; } .ag-ia-st.off { color: var(--muted, #5b6b63); }
html[data-tema="escuro"] .ag-ia-st.on { background: #1d1138; color: #a88ce8; } html[data-tema="escuro"] .ag-ia-st.pausa { background: #3a2f12; color: #ffe2a3; }
.ia-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ia-grid textarea { width: 100%; }
.ia-lado { display: grid; gap: 18px; }
.ia-checks, .ia-como { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.ia-como { padding-left: 18px; list-style: disc; }
@media (max-width: 900px) { .ia-grid { grid-template-columns: 1fr; } }
.tag-sua { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #fff4d6; color: #7a4b00; font-size: 11.5px; font-weight: 800; vertical-align: middle; }
.chave-crm { margin-bottom: 18px; } .chave-topo { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.chave-st { font-weight: 800; font-size: 13.5px; padding: 6px 12px; border-radius: 99px; } .chave-st.ok { background: #ece6fd; color: #6c3ce9; } .chave-st.erro { background: #fdecea; color: #a12a1f; }
.adm-con-topo { margin-bottom: 18px; }
.ia-modo { border: 1px solid rgba(0,0,0,.1); border-radius: 14px; padding: 12px 16px 16px; margin: 6px 0 14px; }
.ia-modo legend { font-weight: 800; padding: 0 6px; } .ia-modo textarea { width: 100%; }
html[data-tema="escuro"] .ia-modo { border-color: rgba(255,255,255,.14); }
.ia-diario { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13.5px; }
.ia-diario li { padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.04); border-left: 4px solid #c9d3cd; }
.ia-diario li.ok { border-left-color: #6c3ce9; } .ia-diario li.erro { border-left-color: #d64545; }
.ia-diario small { color: var(--muted, #5b6b63); }
/* ADM: atualizações */
.atz-topo { margin-bottom: 18px; } .atz-ok { display: flex; gap: 16px; align-items: flex-start; }
.atz-ico { font-size: 34px; line-height: 1; } .atz-ok b { font-size: 20px; } .atz-ok p { margin: 4px 0 0; }
.atz-tabela td { vertical-align: top; font-size: 14px; } .atz-tabela tr.atual td { background: rgba(41,3,131,.06); } .nowrap { white-space: nowrap; }
.atz-tabela td:nth-child(3) { white-space: normal; min-width: 280px; } .atz-tabela { width: 100%; }
/* Agenda: conversas */
.cv-lista { list-style: none; margin: 0; padding: 0; display: grid; }
.cv-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid rgba(0,0,0,.06); text-decoration: none; color: inherit; }
.cv-item:hover { background: rgba(41,3,131,.05); }
.cv-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #ece6fd; color: #6c3ce9; font-weight: 800; }
.cv-meio b { display: block; } .cv-meio small { display: block; color: var(--muted, #5b6b63); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-fim { display: grid; justify-items: end; gap: 4px; } .cv-fim small { color: var(--muted, #5b6b63); }
.res-alerta { background: #fff4d6; color: #7a4b00; }

/* Atendente com voz */
.voz-card .card-title { display: flex; align-items: center; gap: 8px; }
.voz-tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #e5dbfd; color: #2d1467; }
.voz-form { display: grid; gap: 8px; margin-bottom: 10px; }
.voz-form audio { width: 100%; height: 36px; }


/* ===================== VoeChat ===================== */
.button-secondary { color: var(--primary); background: #ece6fd; }
.row-menu > summary { background: #f3effe; }
input:focus, select:focus, textarea:focus { outline-color: rgba(108, 60, 233, .16); }

/* Atendimento */
.pagina-atendimento .main-content.atd-main { padding: 0; max-width: none; }
.atd { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; height: 100vh; height: 100dvh; background: var(--surface); }
.atd-lista { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); }
.atd-lista-topo { padding: 16px 16px 8px; display: grid; gap: 10px; border-bottom: 1px solid var(--border); }
.atd-lista-topo h1 { margin: 0; font-size: 20px; }
.atd-lista-topo input { width: 100%; }
.atd-abas { display: flex; gap: 6px; flex-wrap: wrap; }
.atd-abas button { padding: 6px 12px; border: 1px solid var(--border); border-radius: 99px; background: #fff; color: var(--muted); font-weight: 650; cursor: pointer; min-height: 34px; }
.atd-abas button.ativo { background: var(--primary); border-color: var(--primary); color: #fff; }
.atd-itens { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.atd-vazio { padding: 24px 16px; color: var(--muted); }
.atd-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 12px 14px; background: none; border: 0; border-bottom: 1px solid #eef1f5; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.atd-item:hover { background: #f6f8fb; }
.atd-item.ativo { background: #f3effe; }
.atd-av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #ebe4fd; color: var(--primary); font-weight: 800; }
.atd-txt { display: grid; min-width: 0; }
.atd-txt b, .atd-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atd-txt small { color: var(--muted); }
.atd-st { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.atd-st-pending { color: #b45309; } .atd-st-open { color: #341283; } .atd-st-closed { color: #64748b; }
.atd-hora { display: grid; justify-items: end; gap: 4px; font-size: 12px; color: var(--muted); }
.atd-hora i { font-style: normal; min-width: 20px; padding: 1px 6px; border-radius: 99px; background: #ff8a1f; color: #fff; font-weight: 800; text-align: center; }
.atd-chat { display: flex; flex-direction: column; min-height: 0; background: #eef1f6; }
.atd-chat[hidden], .atd-nada[hidden] { display: none; }
.atd-nada { display: grid; place-items: center; background: #f6f8fb; color: var(--muted); text-align: center; }
.atd-chat-topo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--border); }
.atd-quem { display: grid; flex: 1; min-width: 160px; }
.atd-quem small { color: var(--muted); }
.atd-acoes { display: flex; gap: 6px; flex-wrap: wrap; }
.atd-acoes .button { min-height: 36px; padding: 6px 12px; }
.atd-voltar { display: none; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--primary); min-width: 44px; min-height: 44px; }
.atd-transf { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--border); }
.atd-transf[hidden] { display: none; }
.atd-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.atd-msg { max-width: min(560px, 82%); padding: 8px 12px 18px; border-radius: 12px; background: #fff; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.atd-msg p { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.atd-msg time { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: var(--muted); }
.atd-msg img, .atd-msg video { display: block; max-width: 100%; max-height: 320px; border-radius: 8px; margin-bottom: 4px; }
.atd-msg audio { width: 260px; max-width: 100%; }
.atd-cliente { align-self: flex-start; }
.atd-equipe { align-self: flex-end; background: #ebe4fd; }
.atd-ia { align-self: flex-end; background: #fff1e0; }
.atd-autor { display: block; font-size: 11.5px; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.atd-ia .atd-autor { color: #c2410c; }
.atd-nota { align-self: center; padding: 4px 12px; border-radius: 99px; background: #e2e8f0; color: #475569; font-size: 12.5px; }
.atd-escrever { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; background: #fff; border-top: 1px solid var(--border); }
.atd-escrever textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; }
.atd-anexo { display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: 20px; cursor: pointer; border-radius: 10px; }
.atd-anexo:hover { background: #f1f5f9; }
.atd-dica { margin: 0; padding: 0 16px 8px; background: #fff; font-size: 12.5px; color: var(--muted); min-height: 8px; }
@media (max-width: 860px) {
    .atd { grid-template-columns: 1fr; }
    .atd-com-chat .atd-lista { display: none; }
    .atd:not(.x) .atd-nada { display: none; }
    .atd-voltar { display: block; }
}

/* Canais */
.canais-grid { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: 18px; align-items: start; }
@media (max-width: 900px) { .canais-grid { grid-template-columns: 1fr; } }
.canais-lado { display: grid; gap: 18px; }
.canais-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.canais-lista > li { border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.canais-lista > li.ativo { border-color: var(--primary); }
.canal-topo { display: flex; align-items: center; gap: 10px; }
.canal-topo > div { flex: 1; display: grid; } .canal-topo small { color: var(--muted); }
.canal-ico { font-size: 22px; }
.canal-st { font-size: 12.5px; font-weight: 700; } .canal-st.ok { color: #341283; } .canal-st.off { color: #b45309; }
.canal-qr { display: grid; grid-template-columns: 250px 1fr; gap: 16px; margin-top: 14px; align-items: start; }
@media (max-width: 640px) { .canal-qr { grid-template-columns: 1fr; } }
.canal-qr-img { display: grid; place-items: center; width: 250px; height: 250px; border: 1px dashed var(--border); border-radius: 12px; background: #fff; }
.canal-qr-img img { width: 240px; height: 240px; }
.canal-ok { display: grid; justify-items: center; gap: 4px; font-size: 32px; } .canal-ok b { font-size: 16px; } .canal-ok span { font-size: 13px; color: var(--muted); }
.canal-passos { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.canal-parear { grid-column: 1 / -1; display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.canal-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.form-stack { display: grid; gap: 8px; }
.ativacao { max-width: 560px; }
.pagina-atendimento .page-help-button { display: none; }

/* Usuários e funções */
.abas-pagina { display: flex; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid var(--border); }
.abas-pagina a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; }
.abas-pagina a.ativo { color: var(--primary); border-bottom-color: var(--primary); }
.abas-pagina small { font-weight: 600; color: var(--muted); }
.usu-grid { display: grid; grid-template-columns: 1fr minmax(260px, 320px); gap: 18px; align-items: start; }
@media (max-width: 980px) { .usu-grid { grid-template-columns: 1fr; } }
.usu-cargo { display: inline-block; padding: 2px 10px; border-radius: 99px; background: #ece6fd; color: var(--primary); font-weight: 700; font-size: 12.5px; }
.usu-inativo { opacity: .55; }
.usu-editar summary { list-style: none; } .usu-editar summary::-webkit-details-marker { display: none; }
.usu-editar[open] { min-width: 260px; }
.usu-editar form { margin-top: 10px; }
.usu-acoes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.usu-setores { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.funcoes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.funcao-card header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.funcao-qtd { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.funcao-barra { height: 6px; border-radius: 99px; background: #ece8f6; overflow: hidden; margin: 10px 0 4px; }
.funcao-barra span { display: block; height: 100%; background: var(--degrade); }
.funcao-editar { margin-top: 12px; }
.funcao-editar summary { list-style: none; display: inline-flex; } .funcao-editar summary::-webkit-details-marker { display: none; }
.funcao-editar form { margin-top: 12px; }
.perm-bloco { border: 1px solid var(--border); border-radius: 10px; padding: 6px 12px 10px; margin: 0; }
.perm-bloco legend { padding: 0 6px; font-weight: 800; }
.perm-bloco legend small { color: var(--muted); font-weight: 600; }
.funcao-nova { border-style: dashed; }

/* Verde só onde significa "deu certo" / "online" (o resto do painel é roxo VoeChat) */
.alert-success { color: #14532d; background: #ecfdf3; border-color: #b7ebc9; }
.res-ok, .semana-meta.ok, .rec-tag.t-ok { color: #14532d; background: #dcfce7; }
.rec-stat.verde { background: #f0fdf4; border-color: #bbf7d0; } .rec-stat.verde strong { color: #14532d; }
.canal-st.ok, .chave-st.ok { color: #15803d; } .chave-st.ok { background: #dcfce7; }
.ni-whats{--ni-bg:#dcf8e6;--ni-fg:#128c7e}.ni-search{--ni-bg:#e7f8ef;--ni-fg:#16a34a}.ni-wallet{--ni-bg:#e8f8ee;--ni-fg:#15803d}
.app-shell .sidebar .nav-link.active { box-shadow: inset 0 0 0 1px #dccffb; }
html[data-tema="escuro"] .alert-success, html[data-tema="escuro"] .res-ok, html[data-tema="escuro"] .rec-tag.t-ok { background: #13281d; color: #a6efc6; border-color: #24563d; }
.hero-panel { background: radial-gradient(circle at 85% 20%, rgba(255,138,31,.22), transparent 40%), linear-gradient(125deg, #6c3ce9, #3a1b99); }
.hero-panel p { color: #e7defd; } .hero-panel .eyebrow { color: #ffc56b; }
.help-hero { background: linear-gradient(140deg, #4a22b8, #7b4ff0); } .help-hero p { color: #ece5ff; }
/* Atendimento: marcas da conversa (pausa, fluxo, etiquetas) */
.atd-marcas { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.atd-marca { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #f1ebff; color: #4a22b8; border: 0; font-family: inherit; }
.atd-marca.pausa { background: #fff4e0; color: #9a4a00; }
.atd-marca.fluxo { background: #e0f2fe; color: #075985; }
.atd-marca.tag { background: #fce7f3; color: #9d174d; }
.atd-marca.tag button { padding: 0 0 0 2px; border: 0; background: none; color: inherit; font-weight: 900; cursor: pointer; }
.atd-marca.mais { background: transparent; border: 1px dashed #cbbdf5; color: var(--muted); cursor: pointer; }
.atd-retomar { color: #9a4a00; border-color: #ffd7ae; background: #fff7ed; }
.atd-fluxos-lista { display: flex; flex-wrap: wrap; gap: 6px; }
.atd-fluxos { align-items: center; }
.atd-tags-lista { display: flex; gap: 3px; margin-top: 3px; } .atd-tags-lista i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 99px; background: #fce7f3; color: #9d174d; }
.help-video { margin: 14px 0; } .help-video video { width: 100%; border-radius: 12px; background: #1e1145; aspect-ratio: 16 / 10; display: block; }
.help-video small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.help-passos { margin: 6px 0 0; padding-left: 20px; line-height: 1.55; } .help-passos li { margin-bottom: 6px; }
.help-dicas { margin: 6px 0 0; padding-left: 18px; line-height: 1.5; } .help-dicas li { margin-bottom: 5px; }
.atd-acoes [hidden], .button[hidden] { display: none !important; }
.reg-filtros { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.reg-filtros label { display: grid; gap: 4px; font-weight: 700; font-size: 13px; }
.reg-erro td { background: #fff5f5; }
.reg-pag { display: flex; justify-content: space-between; margin-top: 12px; }
/* ===== Gestor (assistente flutuante) ===== */
.gestor-botao { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: 64px; z-index: 36; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border: 0; border-radius: 999px; color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; background: linear-gradient(135deg, #7b4ff0, #4a22b8); box-shadow: 0 10px 26px rgba(74,34,184,.38); }
.gestor-botao span { font-size: 15px; }
.pagina-atendimento .gestor-botao { display: none; }
@media (max-width: 860px) { .gestor-botao { right: 12px; bottom: 58px; } }
.gestor-chat { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100vh - 36px)); background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 30px 70px rgba(30,17,69,.3); overflow: hidden; }
.gestor-chat[hidden] { display: none; }
.gestor-chat header { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 16px; color: #fff; background: linear-gradient(135deg, #7b4ff0, #3a1b99); }
.gestor-chat header div { flex: 1; } .gestor-chat header b { display: block; font-size: 16px; } .gestor-chat header small { color: #ddd2ff; font-size: 12.5px; }
.gestor-chat header button { width: 32px; height: 32px; border: 0; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; font-size: 17px; cursor: pointer; }
.gestor-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.18); font-size: 19px; }
.gestor-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg, #f6f4fb); }
.g-msg { max-width: 88%; padding: 9px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; word-break: break-word; white-space: pre-wrap; }
.g-msg.eu { align-self: flex-end; background: #6c3ce9; color: #fff; border-bottom-right-radius: 4px; }
.g-msg.ele { align-self: flex-start; background: var(--surface, #fff); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.g-msg.ele.erro { background: #fff5f5; border-color: #fecaca; }
.g-pensando { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--border); }
.g-pensando i { width: 7px; height: 7px; border-radius: 50%; background: #a58bff; animation: g-pula 1.1s infinite; } .g-pensando i:nth-child(2) { animation-delay: .15s; } .g-pensando i:nth-child(3) { animation-delay: .3s; }
@keyframes g-pula { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
.g-acao { align-self: stretch; padding: 12px; border-radius: 14px; background: #fff8ec; border: 1px solid #ffd7ae; }
.g-acao p { margin: 0 0 10px; font-weight: 700; color: #7a3d00; font-size: 14px; }
.g-acao div { display: flex; gap: 8px; } .g-acao button { flex: 1; }
.g-links { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.g-links a { padding: 6px 11px; border-radius: 999px; background: #f1ebff; color: #4a22b8; font-size: 13px; font-weight: 700; text-decoration: none; }
.g-links video { width: 100%; border-radius: 10px; margin-top: 4px; }
.gestor-sugestoes { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; background: var(--bg, #f6f4fb); }
.gestor-sugestoes button { flex: none; padding: 6px 11px; border: 1px solid #dccffb; border-radius: 999px; background: var(--surface, #fff); color: #4a22b8; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.gestor-chat form { display: flex; gap: 8px; padding: 10px 12px 12px; background: var(--bg, #f6f4fb); }
.gestor-chat textarea { flex: 1; resize: none; max-height: 120px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; font: inherit; font-size: 14.5px; background: var(--surface, #fff); color: var(--text); }
.gestor-chat form button { width: 44px; border: 0; border-radius: 14px; background: #6c3ce9; color: #fff; font-size: 17px; cursor: pointer; }
@media (max-width: 600px) { .gestor-chat { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; } }
.gestor-sugestoes[hidden] { display: none; }
.codigo-site { width: 100%; font-family: ui-monospace, monospace; font-size: 12.5px; padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: #f8f6fd; box-sizing: border-box; }
