:root {
    --brand: #5b5bd6;
    --brand-dark: #4747bd;
    --brand-soft: #eeeeff;
    --sidebar: #111827;
    --sidebar-soft: #1f2937;
    --ink: #182230;
    --muted: #667085;
    --muted-light: #98a2b3;
    --line: #e4e7ec;
    --line-strong: #d0d5dd;
    --surface: #ffffff;
    --background: #f7f8fc;
    --success: #067647;
    --success-bg: #ecfdf3;
    --danger: #c23c4a;
    --danger-dark: #a82f3c;
    --danger-bg: #fff1f3;
    --danger-line: #f3c4ca;
    --warning: #b54708;
    --warning-bg: #fffaeb;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-lg: 0 20px 50px rgba(16, 24, 40, .14);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
}

/* Formulários Interativos */
.form-builder-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.builder-context { display: flex; min-height: 62px; align-items: stretch; gap: 0; margin-bottom: 14px; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); }
.builder-context > a, .builder-context > span { display: flex; min-width: 150px; align-items: center; gap: 9px; padding: 10px 14px; color: #475467; text-decoration: none; }
.builder-context > a:hover { background: #fafaff; }
.builder-context > i { display: grid; flex: 0 0 24px; place-items: center; color: #c2c7d0; }
.builder-context > i .icon { width: 13px; height: 13px; }
.builder-context > a > .icon, .builder-context > span > .icon { width: 17px; height: 17px; color: var(--brand); }
.builder-context > a > span, .builder-context > span > span { display: flex; min-width: 0; flex-direction: column; }
.builder-context small { color: var(--muted-light); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.builder-context strong { margin-top: 2px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.builder-context .is-current { flex: 1; color: #4141a6; background: linear-gradient(90deg, #f5f5ff, #fff); }
.form-builder-card { overflow: visible; }
.form-builder-toolbar { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.form-builder-toolbar > div { display: flex; flex-direction: column; }
.form-builder-toolbar strong { color: #344054; font-size: 12px; }
.form-builder-toolbar small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.form-builder-list { display: grid; }
.form-builder-row { display: grid; min-height: 76px; grid-template-columns: 34px 34px minmax(180px, 1fr) 62px 70px auto; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); transition: opacity .15s ease, background-color .15s ease, box-shadow .15s ease; }
.form-builder-row:last-child { border-bottom: 0; }
.form-builder-row:hover { background: #fcfcff; }
.form-builder-row.is-dragging { z-index: 2; opacity: .55; background: #f4f4ff; box-shadow: 0 10px 24px rgba(47, 43, 140, .12); }
.form-builder-row.is-field { grid-template-columns: 34px 34px minmax(180px, 1fr) 70px auto; }
.form-builder-number { display: grid; width: 29px; height: 29px; place-items: center; color: #5b5bd6; background: #eeeeff; border-radius: 9px; font-size: 10px; font-weight: 850; }
.form-builder-copy { display: flex; min-width: 0; flex-direction: column; }
.form-builder-copy small { color: #7778b8; font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.form-builder-copy strong { margin-top: 2px; overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.form-builder-copy em { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.form-builder-count { display: flex; flex-direction: column; align-items: center; }
.form-builder-count strong { color: #344054; font-size: 13px; }
.form-builder-count small { color: var(--muted); font-size: 8px; }
.form-reuse-panel { margin-top: 14px; padding: 0; overflow: hidden; }
.form-reuse-panel > summary { display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: 11px 15px; list-style: none; cursor: pointer; }
.form-reuse-panel > summary::-webkit-details-marker { display: none; }
.form-reuse-panel > summary > span { display: flex; align-items: center; gap: 10px; }
.form-reuse-panel > summary > span > .icon { color: var(--brand); }
.form-reuse-panel > summary span span { display: flex; flex-direction: column; }
.form-reuse-panel > summary strong { color: #344054; font-size: 11px; }
.form-reuse-panel > summary small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.form-reuse-panel > form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 14px 15px; background: #fafbfc; border-top: 1px solid var(--line); }
.form-actions.standalone { margin-top: 14px; padding: 0; background: transparent; border: 0; }
.interactive-technical-field { opacity: .74; }
.interactive-inline-switches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; }
.interactive-inline-switches label { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 10px; color: #475467; background: #f8fafc; border: 1px solid var(--line); border-radius: 9px; font-size: 10px; font-weight: 700; }
.interactive-inline-switches input[type="checkbox"] { width: 16px; min-height: 16px; }
.form-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-section-heading h2 { margin: 0; color: #344054; font-size: 13px; }
.form-section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.interactive-options { display: grid; gap: 9px; margin-top: 13px; }
.interactive-option-row { display: grid; grid-template-columns: 24px repeat(2, minmax(0, 1fr)) 34px; align-items: start; gap: 14px; padding: 16px; background: #fafbfc; border: 1px solid var(--line); border-radius: 11px; }
.interactive-option-row > .field { min-width: 0; margin-bottom: 0; grid-column: 2; }
.interactive-option-row > .field:nth-of-type(even) { grid-column: 3; }
.interactive-option-row > .icon-action { grid-column: 4; grid-row: 1; }
.interactive-option-row.is-dragging { opacity: .5; border-color: #aaa8ed; }
.interactive-option-row .smart-icon-control { grid-template-columns: 34px minmax(0, 1fr) 34px; }
.interactive-option-row .smart-icon-preview, .interactive-option-row .smart-icon-search { width: 34px; height: 34px; min-height: 34px; }
.interactive-option-row .smart-icon-feedback { display: none; }
.interactive-option-grip { display: grid; height: 36px; place-items: center; color: var(--muted-light); cursor: grab; }
.interactive-option-expand { display: flex; grid-column: 2 / span 2; min-height: 36px; align-items: center; gap: 8px; color: #475467; font-size: 13px; font-weight: 700; }
.interactive-option-expand input { width: 15px; min-height: 15px; }
.interactive-response-toolbar { flex-wrap: wrap; }
.segmented-filter { display: flex; gap: 3px; padding: 3px; background: #f2f4f7; border-radius: 9px; }
.segmented-filter a { padding: 7px 10px; color: var(--muted); border-radius: 7px; font-size: 9px; font-weight: 800; text-decoration: none; }
.segmented-filter a.is-active { color: #4545b3; background: #fff; box-shadow: 0 1px 4px rgba(16,24,40,.08); }
.response-period { display: flex; align-items: center; gap: 6px; }
.response-period label { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 800; }
.response-period input { width: 125px; min-height: 36px; padding: 6px; font-size: 9px; }
.response-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.response-summary .card { display: flex; min-height: 82px; flex-direction: column; justify-content: center; margin: 0; padding: 14px; }
.response-summary small { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.response-summary strong { margin-top: 7px; color: #344054; font-size: 12px; }
.response-answer-card { padding: 0; overflow: hidden; }
.response-answer-card > header { padding: 15px 17px; border-bottom: 1px solid var(--line); }
.response-answer-card h2 { margin: 3px 0 0; font-size: 17px; }
.response-answer-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.response-answer-line { margin: 0; padding: 12px 17px; border-bottom: 1px solid var(--line); color: #344054; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.response-answer-line:last-child { border-bottom: 0; }
.response-answer-list .response-answer-line strong { margin: 0; font-size: inherit; }
.response-answer-list h3 { grid-column: 1 / -1; margin: 0; padding: 10px 17px; color: #5354b8; background: #f8f8ff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 10px; }
.response-answer-list h3:first-child { border-top: 0; }
.response-answer-list > div { display: flex; min-height: 60px; flex-direction: column; justify-content: center; padding: 10px 17px; border-bottom: 1px solid var(--line); }
.response-answer-list > div:nth-of-type(odd) { border-right: 1px solid var(--line); }
.response-answer-list span, .response-technical-grid span, .response-step-times span { color: var(--muted); font-size: 8px; font-weight: 750; }
.response-answer-list strong, .response-technical-grid strong, .response-step-times strong { margin-top: 4px; color: #344054; font-size: 11px; overflow-wrap: anywhere; }
.response-technical { margin-top: 12px; padding: 0; overflow: hidden; }
.response-technical > summary { display: flex; min-height: 52px; align-items: center; justify-content: space-between; padding: 11px 15px; list-style: none; cursor: pointer; }
.response-technical > summary span { display: flex; align-items: center; gap: 8px; color: #475467; font-size: 10px; font-weight: 800; }
.response-technical-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.response-technical-grid > div, .response-step-times > div { display: flex; min-height: 58px; flex-direction: column; justify-content: center; padding: 10px 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.response-step-times h3 { margin: 0; padding: 11px 15px; font-size: 11px; }
[data-field-options-section][hidden], [data-field-date-settings][hidden], [data-field-text-settings][hidden], [data-auto-advance][hidden], [data-field-placeholder][hidden] { display: none !important; }

@media (max-width: 980px) {
    .interactive-option-row { grid-template-columns: 24px repeat(2, minmax(0, 1fr)) 34px; }
    .interactive-option-expand { grid-column: 2 / span 2; }
    .response-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .builder-context > a, .builder-context > span { min-width: 130px; padding-inline: 10px; }
    .form-builder-row, .form-builder-row.is-field { grid-template-columns: 28px 30px minmax(0, 1fr) auto; gap: 7px; }
    .form-builder-count { display: none; }
    .form-builder-row > .badge { grid-column: 3; justify-self: start; }
    .form-builder-row > .row-actions { grid-column: 4; grid-row: 1 / span 2; }
    .interactive-option-row { grid-template-columns: 22px minmax(0, 1fr) 32px; }
    .interactive-option-row > .field, .interactive-option-row > .field:nth-of-type(even), .interactive-option-expand { grid-column: 2; }
    .interactive-option-row > .icon-action { grid-column: 3; grid-row: 1; }
    .interactive-field-form .form-section-heading { align-items: stretch; flex-direction: column; }
    .form-reuse-panel > form { grid-template-columns: 1fr; }
    .interactive-response-toolbar { align-items: stretch; }
    .interactive-response-toolbar > .crud-toolbar-actions { width: 100%; flex-wrap: wrap; justify-content: flex-end; }
    .response-period { flex: 1 1 100%; }
    .response-period label { flex: 1; }
    .response-period input { width: 100%; }
    .response-summary, .response-answer-list, .response-technical-grid { grid-template-columns: 1fr; }
    .response-answer-list > div:nth-of-type(odd) { border-right: 0; }
}

* { box-sizing: border-box; }
html {
    min-height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 91, 214, .34) transparent;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar { width: 10px; height: 10px; }
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(91, 91, 214, .28);
    background-clip: padding-box;
    border: 3px solid transparent;
    border-radius: 999px;
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover { background-color: rgba(71, 71, 189, .5); }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--background);
    font: 14px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(26px, 3vw, 32px); line-height: 1.2; letter-spacing: -.035em; }
.heading-icon-title { display: inline-flex; align-items: center; gap: 10px; }
.heading-icon-title .icon { width: .9em; height: .9em; color: var(--brand); }
h2 { margin-bottom: 6px; font-size: 18px; line-height: 1.35; letter-spacing: -.015em; }
h3 { margin-bottom: 5px; font-size: 15px; }
p { color: var(--muted); }
small { color: var(--muted); }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Estrutura do painel */
.admin-shell { display: flex; min-height: 100vh; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    width: 248px;
    min-height: 100vh;
    flex-direction: column;
    padding: 16px 14px 14px;
    color: #e5e7eb;
    background:
        radial-gradient(circle at 10% 0, rgba(99, 102, 241, .18), transparent 28%),
        var(--sidebar);
    border-right: 1px solid rgba(255, 255, 255, .06);
}
.sidebar-header { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 8px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.brand-logo {
    position: relative;
    display: block;
    width: 112px;
    height: 30px;
    flex: 0 0 auto;
    overflow: hidden;
}
.brand-logo img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 131.2%;
    max-width: none;
    height: auto;
    transform: translate(-50%, -50%);
}
.brand-logo.large { width: 150px; height: 40px; }
.brand-logo.compact { width: 88px; height: 24px; }
.brand-logo.light img { width: 138.3%; }
.icon-button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}
.icon-button:hover { color: var(--ink); background: #f2f4f7; }
.sidebar-close { display: none; color: #98a2b3; }
.sidebar-close:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.client-context {
    margin: 18px 0 16px;
    padding: 12px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
}
.context-label, .nav-label {
    display: block;
    margin-bottom: 10px;
    color: #7f8999;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.context-client { display: flex; min-width: 0; align-items: center; gap: 10px; }
.client-avatar, .user-avatar {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    color: #3730a3;
    background: #e0e7ff;
    border-radius: 11px;
    font-weight: 800;
}
.context-client > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.context-client strong { overflow: hidden; color: #f9fafb; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.context-client small { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: #98a2b3; font-size: 11px; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: #32d583; border-radius: 99px; box-shadow: 0 0 0 3px rgba(50, 213, 131, .12); }
.client-context > p { margin-bottom: 8px; color: #d0d5dd; font-size: 13px; }
.context-switch { display: flex; justify-content: space-between; margin-top: 12px; color: #b9c0cc; font-size: 12px; font-weight: 650; }
.context-switch:hover { color: #fff; }

.sidebar-nav {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    margin-top: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 192, 204, .26) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 8px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(184, 192, 204, .2);
    background-clip: padding-box;
    border: 2px solid transparent;
    border-radius: 999px;
}
.sidebar-nav:hover::-webkit-scrollbar-thumb { background-color: rgba(184, 192, 204, .34); }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background-color: rgba(216, 221, 230, .48); }
.nav-label { margin: 2px 12px 7px; }
.nav-label.module-label { margin-top: 16px; }
.nav-section { display: flex; width: 100%; min-width: 0; flex-direction: column; gap: 4px; }
.nav-section-divider { display: block; width: calc(100% - 16px); height: 1px; min-height: 1px; margin: 12px 8px 14px; background: rgba(255, 255, 255, .08); }
.workspace-navigation-heading { min-width: 0; margin-bottom: 5px; }
.workspace-navigation-heading .nav-label { margin-bottom: 7px; }
.workspace-current {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    color: #f8fafc;
    text-align: left;
    background: rgba(99, 102, 241, .12);
    border: 1px solid rgba(129, 140, 248, .2);
    border-radius: 9px;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease;
}
.workspace-current:hover { background: rgba(99, 102, 241, .2); border-color: rgba(129, 140, 248, .34); }
.workspace-current-initial { display: inline-grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; color: #dfe3ff; background: rgba(99, 102, 241, .3); border-radius: 7px; font-size: 10px; font-weight: 800; }
.workspace-current strong { min-width: 0; flex: 1; overflow: hidden; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.workspace-current-action { display: inline-grid; flex: 0 0 auto; color: #8f9af9; }
.workspace-current-action .icon { width: 13px; height: 13px; }
.workspace-empty { color: #8792a2; }
.nav-item {
    position: relative;
    display: flex;
    max-width: 100%;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    color: #aeb7c4;
    border-radius: 10px;
    font-weight: 600;
    transition: color .16s ease, background .16s ease, transform .16s ease;
}
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .06); transform: translateX(2px); }
.nav-item.is-active { color: #fff; background: linear-gradient(90deg, rgba(99, 102, 241, .28), rgba(99, 102, 241, .13)); }
.nav-item.is-active::before { position: absolute; left: 0; width: 3px; height: 22px; content: ""; background: #8b8bf4; border-radius: 0 4px 4px 0; }
.nav-item.is-disabled, .nav-item.is-disabled:hover { color: rgba(152, 162, 179, .55); background: transparent; cursor: not-allowed; transform: none; }
.nav-item small { color: inherit; font-size: 9px; opacity: .72; }
.nav-item .icon { width: 19px; height: 19px; }
.nav-group { width: 100%; max-width: 100%; overflow: hidden; }
.nav-parent { width: 100%; cursor: pointer; background: transparent; border: 0; font: inherit; text-align: left; }
.nav-parent .nav-chevron { display: inline-grid; margin-left: auto; transition: transform .18s ease; }
.nav-parent .nav-chevron .icon { width: 15px; height: 15px; }
.nav-group.is-open .nav-chevron { transform: rotate(90deg); }
.nav-group.has-active-child .nav-parent { color: #fff; }
.nav-submenu { position: relative; display: flex; width: calc(100% - 19px); max-width: calc(100% - 19px); flex-direction: column; gap: 3px; margin: 3px 0 5px 19px; padding-left: 12px; overflow: hidden; border-left: 1px solid rgba(255, 255, 255, .11); }
.nav-child { min-height: 40px; padding-left: 10px; font-size: 12px; }
.nav-child .icon { width: 17px; height: 17px; }
.nav-child.is-active::before { left: -13px; }

.sidebar-footer { display: flex; align-items: center; gap: 8px; padding: 15px 6px 2px; border-top: 1px solid rgba(255, 255, 255, .08); }
.user-summary { display: flex; min-width: 0; flex: 1; align-items: center; gap: 10px; }
.user-avatar { width: 36px; height: 36px; color: #fff; background: linear-gradient(145deg, #475467, #344054); border-radius: 50%; }
.user-avatar.small { width: 32px; height: 32px; font-size: 12px; }
.user-copy { display: flex; min-width: 0; flex-direction: column; }
.user-copy strong, .user-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { color: #f2f4f7; font-size: 12px; }
.user-copy small { max-width: 132px; color: #7f8999; font-size: 10px; }
.sidebar-footer form { margin: 0; }
.sidebar-logout { display: inline-grid; width: 36px; height: 36px; padding: 0; place-items: center; color: #98a2b3; background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
.sidebar-logout span { display: none; }
.sidebar-logout:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.sidebar-logout .icon { width: 18px; height: 18px; }

.sidebar-backdrop { display: none; }
.admin-main { width: calc(100% - 248px); min-height: 100vh; margin-left: 248px; }
.mobile-header { display: none; }
.content-area { width: min(100%, 1720px); margin: 0 auto; padding: 28px 30px 42px; }

/* Cabeçalhos, cartões e indicadores */
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-heading p { max-width: 720px; margin-bottom: 0; font-size: 15px; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow.light { color: #c7d7fe; }
.toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.toolbar p { margin-bottom: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card {
    margin-bottom: 16px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}
.card.flush { padding: 0; overflow: hidden; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.card-header h2 { margin-bottom: 2px; }
.card-header p { margin-bottom: 0; font-size: 13px; }
.card-header.embedded { margin-bottom: 20px; padding: 0 0 18px; border: 0; }
.card-body { padding: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { position: relative; display: flex; min-height: 164px; margin: 0; overflow: hidden; flex-direction: column; }
.stat-card::after { position: absolute; right: -28px; bottom: -50px; width: 120px; height: 120px; content: ""; background: var(--brand-soft); border-radius: 50%; opacity: .65; }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat-icon { display: inline-grid; width: 38px; height: 38px; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 11px; }
.stat-icon .icon { width: 21px; height: 21px; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-value { position: relative; z-index: 1; display: block; color: var(--ink); font-size: 26px; font-weight: 750; letter-spacing: -.035em; }
.stat-value.code-value { overflow: hidden; max-width: 100%; font: 650 13px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.stat-meta { position: relative; z-index: 1; display: block; margin-top: 4px; margin-bottom: 16px; color: var(--muted-light); font-size: 11px; }
.stat-card-action { position: relative; z-index: 1; width: fit-content; margin-top: auto; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .85fr); align-items: start; gap: 12px; }
.dashboard-columns > .card { margin-bottom: 16px; }
.integration-overview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); align-items: stretch; gap: 12px; margin-bottom: 12px; }
.integration-overview-grid > .card, .integration-modules-card { margin-bottom: 0; }
.integration-flow-header { justify-content: flex-start; }
.integration-step-number { display: inline-grid; width: 31px; height: 31px; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(135deg, var(--brand), #776ef2); border-radius: 9px; font-size: 11px; font-weight: 800; box-shadow: 0 6px 14px rgba(78, 70, 229, .18); }
.integration-settings { display: grid; }
.integration-setting { display: grid; min-width: 0; min-height: 72px; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.integration-setting:last-child { border-bottom: 0; }
.integration-setting-icon { display: inline-grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 10px; }
.integration-setting-icon .icon { width: 18px; height: 18px; }
.integration-setting > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.integration-setting strong { font-size: 12px; }
.integration-setting code, .integration-setting small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.integration-status-card { min-width: 0; }
.integration-status-list { display: grid; }
.integration-status-list > div { display: grid; min-height: 74px; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.integration-status-list > div:last-child { border-bottom: 0; }
.integration-status-list > div > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.integration-status-list strong { color: #344054; font-size: 11px; }
.integration-status-list small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.integration-status-icon { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; }
.integration-status-icon .icon { width: 16px; height: 16px; }
.integration-status-icon.is-ready { color: #067647; background: #ecfdf3; }
.integration-status-icon.is-pending { color: #b54708; background: #fffaeb; }
.integration-status-icon.is-info { color: var(--brand); background: var(--brand-soft); }
.integration-status-count { color: var(--brand); font-size: 19px; font-weight: 800; }
.integration-sdk-card { margin-bottom: 12px; }
.integration-code-body { padding: 16px 18px 18px; }
.integration-sdk-card .code-panel { margin: 0; }
.integration-module-list { display: grid; }
.integration-module-list > div { display: grid; min-height: 62px; grid-template-columns: 36px minmax(130px, .45fr) minmax(220px, 1fr) auto; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.integration-module-list > div:last-child { border-bottom: 0; }
.integration-module-list strong { font-size: 12px; }
.integration-module-list code { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.integration-general-card { margin-bottom: 12px; }
.integration-documentation-header { align-items: center; }
.integration-documentation-header > .integration-flow-header { display: flex; align-items: flex-start; gap: 16px; }
.integration-general-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.integration-general-grid article { display: grid; min-width: 0; grid-template-columns: 36px minmax(0, 1fr); gap: 11px; padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.integration-general-grid article:nth-child(3n) { border-right: 0; }
.integration-general-grid article:nth-last-child(-n + 3) { border-bottom: 0; }
.integration-general-grid article > div { min-width: 0; }
.integration-general-grid strong { display: block; margin-bottom: 4px; color: #344054; font-size: 11px; }
.integration-general-grid p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.integration-general-grid code { color: var(--brand); font-size: 9px; overflow-wrap: anywhere; }
.integration-doc-icon { display: inline-grid; width: 34px; height: 34px; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 9px; }
.integration-doc-icon .icon { width: 16px; height: 16px; }
.integration-guide-list { display: grid; border-top: 1px solid var(--line); }
.integration-guide { border-bottom: 1px solid var(--line); }
.integration-guide:last-child { border-bottom: 0; }
.integration-guide > summary { display: grid; min-height: 64px; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 12px 18px; cursor: pointer; list-style: none; transition: background-color .2s ease; }
.integration-guide > summary::-webkit-details-marker { display: none; }
.integration-guide > summary:hover { background: #fafaff; }
.integration-guide[open] > summary { background: linear-gradient(90deg, rgba(78, 70, 229, .055), transparent); border-bottom: 1px solid var(--line); }
.integration-guide > summary > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.integration-guide > summary strong { color: #344054; font-size: 11px; }
.integration-guide > summary small { color: var(--muted); font-size: 9px; }
.integration-guide[open] > summary .integration-resource-chevron { color: var(--brand); transform: rotate(90deg); }
.integration-guide-body { display: grid; gap: 14px; padding: 16px 18px 18px 64px; background: #fcfcfd; }
.integration-guide-body > p { max-width: 1000px; margin: 0; color: #475467; font-size: 10px; line-height: 1.65; }
.integration-rule-list, .integration-bullet-list { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: #475467; font-size: 10px; line-height: 1.55; }
.integration-rule-list code, .integration-bullet-list code, .integration-guide-body p code { color: var(--brand); font-size: .95em; }
.integration-callout { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; color: #b54708; background: #fffaeb; border: 1px solid #fedf89; border-radius: 9px; }
.integration-callout.is-info { color: var(--brand); background: var(--brand-soft); border-color: rgba(78, 70, 229, .16); }
.integration-callout > .icon { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.integration-callout p { margin: 0; color: #475467; font-size: 9px; line-height: 1.55; }
.integration-guide-code { margin: 0; }
.integration-guide-code pre { max-height: 320px; }
.integration-fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.integration-fact-grid > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; padding: 10px 11px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.integration-fact-grid strong { color: #344054; font-size: 9px; }
.integration-fact-grid span { color: var(--muted); font-size: 9px; line-height: 1.5; }
.integration-contract-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.integration-contract-table-wrap .integration-doc-table th:first-child { width: 100px; }
.integration-inline-code { padding: 10px 12px; overflow-x: auto; color: #d7e1ff; background: #111827; border-radius: 8px; font-size: 9px; white-space: nowrap; }
.copy-source { position: fixed !important; top: -10000px !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.integration-resource-list { display: grid; }
.integration-resource { margin: 0; border-bottom: 1px solid var(--line); }
.integration-resource:last-child { border-bottom: 0; }
.integration-resource > summary { display: grid; min-height: 72px; grid-template-columns: 36px minmax(150px, .46fr) minmax(220px, 1fr) auto 20px; align-items: center; gap: 12px; padding: 12px 18px; color: inherit; cursor: pointer; list-style: none; transition: background-color .2s ease; }
.integration-resource > summary::-webkit-details-marker { display: none; }
.integration-resource > summary:hover { background: #fafaff; }
.integration-resource[open] > summary { background: linear-gradient(90deg, rgba(78, 70, 229, .055), rgba(255, 255, 255, 0)); border-bottom: 1px solid var(--line); }
.integration-resource-title { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.integration-resource-title strong { overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.integration-resource-title small { color: var(--muted-light); font: 600 9px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; }
.integration-resource-url { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.integration-resource-chevron { display: inline-grid; color: var(--muted-light); transition: transform .2s ease; }
.integration-resource-chevron .icon { width: 16px; height: 16px; }
.integration-resource[open] .integration-resource-chevron { color: var(--brand); transform: rotate(90deg); }
.integration-resource-body { padding: 18px; background: #fcfcfd; }
.integration-resource-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 2px; }
.integration-resource-intro strong { color: var(--ink); font-size: 14px; }
.integration-resource-intro p { max-width: 760px; margin: 3px 0 0; font-size: 11px; }
.integration-action { margin-bottom: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-xs); }
.integration-action:last-of-type { margin-bottom: 0; }
.integration-action-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 15px 16px; background: linear-gradient(180deg, #fff, #fcfcff); border-bottom: 1px solid var(--line); }
.integration-action-header > div { min-width: 0; }
.integration-action-header strong { color: #344054; font-size: 12px; }
.integration-action-header p { margin: 4px 0 0; font-size: 10px; }
.integration-action-header > code { max-width: 52%; padding: 5px 8px; overflow: hidden; color: var(--brand); background: var(--brand-soft); border-radius: 6px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.integration-method { display: inline-flex; margin-right: 7px; padding: 3px 6px; color: #067647; background: #ecfdf3; border: 1px solid #abefc6; border-radius: 5px; font-size: 8px; font-weight: 850; letter-spacing: .06em; }
.integration-doc-block { padding: 15px 16px 0; }
.integration-doc-block h3, .integration-image-docs h3 { margin-bottom: 9px; color: #344054; font-size: 11px; }
.integration-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.integration-doc-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.integration-doc-table th { padding: 8px 10px; color: var(--muted); background: #f9fafb; border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 800; letter-spacing: .035em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.integration-doc-table td { padding: 9px 10px; color: #475467; border-bottom: 1px solid #f0f1f4; vertical-align: top; }
.integration-doc-table tr:last-child td { border-bottom: 0; }
.integration-doc-table code { color: var(--brand); font-size: 9px; white-space: nowrap; }
.integration-doc-table td small { display: block; margin-top: 3px; color: var(--muted-light); font-size: 8px; }
.integration-pagination-note { display: flex; align-items: center; gap: 9px; margin: 15px 16px 0; padding: 10px 12px; color: var(--brand); background: var(--brand-soft); border-radius: 8px; }
.integration-pagination-note > .icon { width: 16px; height: 16px; flex: 0 0 auto; }
.integration-pagination-note span { display: flex; flex-direction: column; gap: 2px; }
.integration-pagination-note strong { color: #344054; font-size: 10px; }
.integration-pagination-note small { color: var(--muted); font-size: 9px; }
.integration-example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.integration-example-grid .code-panel { min-width: 0; margin: 0; }
.integration-example-grid pre { max-height: 360px; }
.integration-image-docs { margin-top: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.integration-doc-block-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.integration-doc-block-heading h3 { margin-bottom: 2px; }
.integration-doc-block-heading p { margin: 0; font-size: 9px; }
.integration-image-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.integration-image-profile-grid > article { min-width: 0; padding: 12px; background: #fcfcfd; border: 1px solid var(--line); border-radius: 9px; }
.integration-image-profile-grid > article > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; margin-bottom: 9px; }
.integration-image-profile-grid strong { color: #344054; font-size: 10px; }
.integration-image-profile-grid small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.integration-variant-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.integration-variant-list li { display: grid; grid-template-columns: 62px minmax(90px, 1fr) auto; align-items: center; gap: 5px 8px; padding: 8px; background: #fff; border: 1px solid #eaecf0; border-radius: 7px; }
.integration-variant-list li.is-configured { background: #fffcf5; border-color: #fedf89; }
.integration-variant-list span { color: var(--brand); font: 700 8px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.integration-variant-list strong { font-size: 9px; }
.integration-variant-list li > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.integration-complete-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: 12px; padding: 16px 18px; color: #fff; background: linear-gradient(120deg, #17134a, #3529a8 65%, #4e46e5); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); box-shadow: 0 14px 30px rgba(38, 30, 123, .16); }
.integration-complete-icon { display: inline-grid; width: 42px; height: 42px; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); border-radius: 11px; }
.integration-complete-icon .icon { width: 20px; height: 20px; }
.integration-complete-card strong { font-size: 12px; }
.integration-complete-card p { margin: 3px 0 0; color: rgba(255, 255, 255, .68); font-size: 10px; }
.integration-complete-card .button { color: #30279b; background: #fff; box-shadow: none; }
.integration-complete-card .button:hover { color: #211a79; background: #f4f3ff; }

/* Formulários e botões */
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 700; }
.field small { display: block; margin-top: 7px; font-size: 12px; }
.form-grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: 14px; }
.form-grid-12 > [class*="form-col-"] { min-width: 0; }
.form-grid-12 > .field, .form-grid-12 > [class*="form-col-"] > .field:last-child { margin-bottom: 0; }
.form-col-2 { grid-column: span 2; }
.form-col-3 { grid-column: span 3; }
.form-col-4 { grid-column: span 4; }
.form-col-6 { grid-column: span 6; }
.form-col-8 { grid-column: span 8; }
.form-col-12 { grid-column: 1 / -1; }
input, select, textarea {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    outline: none;
    box-shadow: var(--shadow-xs);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #98a2b3; }
input:focus, select:focus, textarea:focus { border-color: #8585ea; box-shadow: 0 0 0 4px rgba(91, 91, 214, .11); }
textarea { min-height: 110px; resize: vertical; }
input[type="checkbox"] { width: 17px; min-height: 17px; margin: 0; accent-color: var(--brand); box-shadow: none; }
.smart-link-field { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.smart-link-field > legend { width: 100%; margin-bottom: 9px; color: #344054; font-size: 13px; font-weight: 750; }
.smart-link-search-control { position: relative; display: flex; align-items: center; }
.smart-link-search-control > .icon { position: absolute; left: 12px; z-index: 1; width: 15px; height: 15px; color: var(--muted-light); pointer-events: none; }
.smart-link-search-control input { padding-left: 37px; }
.smart-link-content-modal { position: fixed; inset: 0; z-index: 190; display: grid; padding: 20px; place-items: center; }
.smart-link-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; background: rgba(16, 24, 40, .62); border: 0; border-radius: 0; box-shadow: none; backdrop-filter: blur(4px); }
.smart-link-modal-backdrop:hover { background: rgba(16, 24, 40, .62); box-shadow: none; transform: none; }
.smart-link-content-dialog { position: relative; z-index: 1; width: min(100%, 660px); max-height: calc(100vh - 40px); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); animation: modal-enter .18s ease-out; }
.smart-link-content-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 15px; border-bottom: 1px solid var(--line); }
.smart-link-content-dialog > header h2 { margin: 0; font-size: 19px; }
.smart-link-content-dialog > header p { margin: 3px 0 0; font-size: 10px; }
.smart-link-content-body { max-height: calc(100vh - 210px); padding: 17px 20px; overflow-y: auto; }
.smart-link-content-body .field { margin-bottom: 12px; }
.smart-link-content-results { min-height: 120px; overflow: hidden; background: #fcfcfd; border: 1px solid var(--line); border-radius: 11px; }
.smart-link-content-result { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; gap: 13px; padding: 10px 12px; color: #344054; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.smart-link-content-result:last-child { border-bottom: 0; }
.smart-link-content-result:hover { background: #f7f7ff; box-shadow: none; transform: none; }
.smart-link-content-result > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.smart-link-content-result strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.smart-link-content-result small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.smart-link-content-result > em { flex: 0 0 auto; color: var(--brand); font-size: 9px; font-style: normal; font-weight: 750; }
.smart-link-content-result.is-inactive { opacity: .58; cursor: not-allowed; }
.smart-link-content-feedback { display: grid; min-height: 118px; padding: 18px; place-items: center; color: var(--muted); font-size: 10px; text-align: center; }
.smart-link-content-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 20px; background: #fcfcfd; border-top: 1px solid var(--line); }
.smart-link-content-dialog > footer small { font-size: 9px; }
.smart-link-bar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 116px; min-width: 0; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .025); transition: border-color .16s ease, box-shadow .16s ease; }
.smart-link-bar:focus-within { border-color: #8585ea; box-shadow: 0 0 0 4px rgba(91, 91, 214, .11); }
.smart-link-bar.is-internal { border-color: #d6d6f5; background: linear-gradient(90deg, #f8f8ff, #fff 18%); }
.smart-link-bar > input { width: 100%; min-width: 0; min-height: 42px; padding: 9px 12px; color: #344054; background: transparent; border: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.smart-link-bar > input:focus { border-color: var(--line); box-shadow: none; }
.smart-link-bar.is-internal > input { color: #4646b7; }
.smart-link-side-button { display: inline-grid; width: 43px; min-height: 42px; padding: 0; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 10px 0 0 10px; box-shadow: none; transition: color .16s ease, background .16s ease; }
.smart-link-side-button:hover { color: var(--brand); background: var(--brand-soft); box-shadow: none; transform: none; }
.smart-link-side-button:focus-visible { position: relative; z-index: 1; outline: 3px solid rgba(91, 91, 214, .16); outline-offset: -2px; }
.smart-link-side-button .icon { width: 17px; height: 17px; }
.smart-link-target-button { display: inline-flex; width: 100%; gap: 7px; padding: 0 11px; border-radius: 0 10px 10px 0; font-size: 10px; font-weight: 750; white-space: nowrap; }
.smart-link-target-button.is-new-tab { color: var(--brand); background: var(--brand-soft); }
.smart-link-target-button > span { display: inline-grid; place-items: center; }
.smart-link-target-button > span[hidden] { display: none; }
.smart-link-target-button .smart-link-target-label { display: inline; }
.smart-link-bar.is-internal .smart-link-internal-button { color: var(--brand); background: var(--brand-soft); }
.smart-link-status { display: block; min-height: 16px; margin-top: 6px; color: var(--muted-light); font-size: 10px; }
.smart-link-status.is-success { color: #21885a; }
.smart-link-status.is-error { color: #b54755; }
.smart-link-content-modal[hidden] { display: none !important; }
.smart-link-content-dialog > footer { justify-content: flex-end; }
.smart-link-content-results { max-height: 260px; overflow-y: auto; }
.smart-link-listing-choice { display: grid; width: 100%; min-height: 58px; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 12px; color: #344054; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: none; }
.smart-link-listing-choice:hover:not(:disabled), .smart-link-listing-choice:focus-visible:not(:disabled) { color: var(--brand); background: #f8f8ff; border-color: #cecef3; box-shadow: none; transform: none; }
.smart-link-listing-choice:disabled { color: var(--muted-light); background: #f8f9fb; cursor: not-allowed; opacity: .72; }
.smart-link-listing-choice.is-selected { color: var(--brand); background: var(--brand-soft); border-color: #cecef3; box-shadow: inset 3px 0 0 var(--brand); }
.smart-link-listing-choice > span:first-child { display: inline-grid; width: 38px; height: 38px; place-items: center; background: var(--brand-soft); border-radius: 9px; }
.smart-link-listing-choice > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.smart-link-listing-choice strong { color: #344054; font-size: 12px; }
.smart-link-listing-choice small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.smart-link-listing-choice em { color: var(--brand); font-size: 9px; font-style: normal; font-weight: 750; }
.smart-link-listing-choice .icon { width: 16px; height: 16px; }
.smart-link-content-separator { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; color: var(--muted-light); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .035em; }
.smart-link-content-separator::before, .smart-link-content-separator::after { height: 1px; flex: 1; content: ''; background: var(--line); }
.smart-link-content-separator span { flex: 0 0 auto; }
.smart-link-content-result.is-selected { position: relative; color: var(--brand); background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.smart-link-content-result.is-selected > em::before { content: '✓ '; }
.smart-link-pending { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 12px; padding: 11px 12px; color: var(--muted); background: #f8f9fb; border: 1px dashed var(--line-strong); border-radius: 11px; }
.smart-link-pending.has-selection { color: var(--brand); background: #f6f6ff; border-style: solid; border-color: #d8d8f7; }
.smart-link-pending > span { display: inline-grid; width: 36px; height: 36px; place-items: center; background: #fff; border-radius: 9px; }
.smart-link-pending .icon { width: 16px; height: 16px; }
.smart-link-pending > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.smart-link-pending strong, .smart-link-pending small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smart-link-pending strong { color: #344054; font-size: 12px; }
.smart-link-pending small { color: var(--muted); font-size: 10px; }
.smart-link-table-value { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 3px; }
.smart-link-table-value code { overflow: hidden; max-width: 300px; text-overflow: ellipsis; white-space: nowrap; }
.smart-link-table-value small { color: var(--muted-light); font-size: 9px; }
.smart-link-detail-value { display: inline-flex; align-items: center; gap: 9px; padding: 9px 11px; color: var(--brand); background: var(--brand-soft); border-radius: 9px; }
.smart-link-detail-value > span { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.smart-link-detail-value strong { color: #344054; font-size: 10px; }
.smart-link-detail-value code { font-size: 10px; }
.detail-meta { display: block; margin-top: 3px; color: var(--muted-light); font-size: 9px; }
.check-label { display: inline-flex; align-items: center; gap: 8px; color: #344054; font-weight: 650; }
.button, button.button, button:not([class]) {
    display: inline-flex;
    min-height: 41px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    color: #fff;
    background: var(--brand);
    border: 1px solid transparent;
    border-radius: 9px;
    box-shadow: var(--shadow-xs);
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.button:hover, button.button:hover, button:not([class]):hover { background: var(--brand-dark); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.button .icon { width: 17px; height: 17px; }
.button.compact { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.button.secondary, button.secondary { color: #344054; background: #fff; border-color: var(--line-strong); }
.button.secondary:hover, button.secondary:hover { background: #f9fafb; }
.button.ghost { color: var(--brand); background: transparent; border-color: transparent; box-shadow: none; }
.button.ghost:hover { background: var(--brand-soft); }
.button.danger, button.danger { color: #fff; background: var(--danger); }
.button.danger:hover, button.danger:hover { color: #fff; background: var(--danger-dark); }
.button.full { width: 100%; }
.button.small { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.copy-button { color: var(--muted); background: #fff; border: 1px solid var(--line); }
.copy-button.is-copied { color: var(--success); border-color: #abefc6; }
.actions { display: flex; align-items: center; gap: 8px; }
.actions form { margin: 0; }

/* Tabelas e dados */
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 11px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { color: var(--muted); background: #fcfcfd; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: #fafbff; }
tbody tr:last-child td { border-bottom: 0; }
td small { font-size: 11px; }
.table-primary { display: flex; align-items: center; gap: 11px; }
.table-primary > span:not(.mini-avatar):not(.badge) { display: flex; flex-direction: column; min-width: 0; }
.table-primary-copy { display: flex; min-width: 0; flex-direction: column; }
.table-primary strong { color: #344054; }
.table-primary small { margin-top: 2px; }
.practice-area-table-icon { display: inline-grid !important; width: 38px; height: 38px; overflow: hidden; place-items: center; flex: 0 0 auto; color: #4f46e5; background: #f0f0ff; border: 1px solid #e1e1fb; border-radius: 10px; font-size: 16px; }
.practice-area-table-icon > i, .practice-area-table-icon > [data-font-awesome-icon-fallback] { grid-area: 1 / 1; }
.practice-area-table-icon > [data-font-awesome-icon-fallback] { position: relative; display: none; width: 18px; height: 18px; color: #98a2b3; }
.practice-area-table-icon > [data-font-awesome-icon-fallback]::after { position: absolute; top: 8px; left: -2px; width: 22px; height: 1.5px; content: ""; background: currentColor; border-radius: 99px; transform: rotate(-42deg); }
.practice-area-table-icon > [data-font-awesome-icon-fallback] .icon { width: 18px; height: 18px; }
.practice-area-table-icon.is-empty { color: #98a2b3; background: #f8fafc; border-color: #eaecf0; }
.practice-area-table-icon.is-empty > i { display: none; }
.practice-area-table-icon.is-empty > [data-font-awesome-icon-fallback] { display: inline-grid; place-items: center; }
.smart-icon-field { min-width: 0; }
.smart-icon-control { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: stretch; gap: 7px; }
.smart-icon-control input { min-width: 0; }
.smart-icon-preview { display: inline-grid; width: 44px; min-height: 44px; overflow: hidden; place-items: center; color: #4f46e5; background: #f0f0ff; border: 1px solid #dedefd; border-radius: 10px; font-size: 18px; }
.smart-icon-preview > i, .smart-icon-preview > span { grid-area: 1 / 1; }
.smart-icon-preview > span { position: relative; display: none; color: #98a2b3; }
.smart-icon-preview > span::after { position: absolute; top: 9px; left: -2px; width: 23px; height: 1.5px; content: ""; background: currentColor; border-radius: 99px; transform: rotate(-42deg); }
.smart-icon-preview > span .icon { width: 19px; height: 19px; }
.smart-icon-preview.is-empty { color: #98a2b3; background: #f8fafc; border-color: #eaecf0; }
.smart-icon-preview.is-empty > i { display: none; }
.smart-icon-preview.is-empty > span { display: inline-grid; place-items: center; }
.smart-icon-search { display: inline-grid; width: 44px; min-height: 44px; padding: 0; place-items: center; color: #475467; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: none; }
.smart-icon-search:hover, .smart-icon-search:focus-visible { color: var(--brand); background: var(--brand-soft); border-color: #c9c9f5; box-shadow: none; transform: none; }
.smart-icon-search .icon { width: 17px; height: 17px; }
.smart-icon-feedback { display: block; min-height: 15px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.smart-icon-modal { position: fixed; inset: 0; z-index: 96; display: grid; padding: 24px; place-items: center; }
.smart-icon-modal[hidden] { display: none; }
.smart-icon-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; background: rgba(16, 24, 40, .5); border: 0; border-radius: 0; box-shadow: none; backdrop-filter: blur(3px); }
.smart-icon-modal-backdrop:hover { background: rgba(16, 24, 40, .54); box-shadow: none; transform: none; }
.smart-icon-dialog { position: relative; display: grid; width: min(900px, 100%); max-height: min(760px, calc(100vh - 48px)); overflow: hidden; background: #fff; border: 1px solid rgba(255, 255, 255, .7); border-radius: 17px; box-shadow: 0 28px 80px rgba(16, 24, 40, .26); grid-template-rows: auto minmax(0, 1fr); }
.smart-icon-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.smart-icon-modal-header h2 { margin: 2px 0 3px; color: #1d2939; font-size: 19px; }
.smart-icon-modal-header p { margin: 0; color: var(--muted); font-size: 11px; }
.smart-icon-modal-body { display: grid; min-height: 0; padding: 16px 18px 18px; grid-template-rows: auto auto minmax(0, 1fr); }
.smart-icon-modal-search { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0; padding: 0 12px; color: #667085; background: #f9fafb; border: 1px solid var(--line); border-radius: 11px; }
.smart-icon-modal-search .icon { width: 17px; height: 17px; }
.smart-icon-modal-search input { min-height: 43px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.smart-icon-modal-search input:focus { border: 0; box-shadow: none; }
.smart-icon-modal-status { min-height: 27px; padding: 8px 2px 5px; color: var(--muted); font-size: 9px; }
.smart-icon-grid { display: grid; min-height: 180px; padding: 2px 4px 6px 2px; overflow-y: auto; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); align-content: start; gap: 7px; overscroll-behavior: contain; }
.smart-icon-option { display: grid; min-width: 0; min-height: 82px; grid-template-rows: 28px minmax(0, 1fr); align-items: center; gap: 6px; padding: 10px 8px; color: #475467; background: #fff; border: 1px solid #eaecf0; border-radius: 11px; box-shadow: none; text-align: center; transform: none; }
.smart-icon-option:hover, .smart-icon-option:focus-visible { color: var(--brand); background: #f8f8ff; border-color: #c9c9f3; box-shadow: 0 5px 14px rgba(79, 70, 229, .08); transform: translateY(-1px); }
.smart-icon-option > i { font-size: 22px; }
.smart-icon-option > span { display: flex; min-width: 0; flex-direction: column; }
.smart-icon-option strong, .smart-icon-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smart-icon-option strong { color: inherit; font-size: 9px; }
.smart-icon-option small { margin-top: 1px; color: #98a2b3; font-size: 8px; }
.smart-icon-empty { display: grid; min-height: 220px; place-items: center; align-content: center; gap: 5px; color: #98a2b3; text-align: center; }
.smart-icon-empty[hidden] { display: none; }
.smart-icon-empty .icon { width: 26px; height: 26px; margin-bottom: 3px; }
.smart-icon-empty strong { color: #475467; font-size: 12px; }
.smart-icon-empty span { font-size: 10px; }
.mini-avatar { display: inline-grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: #3730a3; background: #eef2ff; border-radius: 10px; font-size: 12px; font-weight: 800; }
.clients-table .client-name-column { width: 43%; }
.clients-table .client-domains-column { width: 43%; }
.clients-table tbody tr.client-row-disabled { background: linear-gradient(90deg, #fff6d8 0%, #fffaf0 56%, #fff 100%); }
.clients-table tbody tr.client-row-disabled:hover { background: linear-gradient(90deg, #ffefba 0%, #fff6df 58%, #fffdf8 100%); }
.table-primary > .entity-avatar-shell { position: relative; display: inline-grid; min-width: auto; padding-left: 7px; flex: 0 0 auto; place-items: center; }
.entity-avatar-shell::before { position: absolute; top: 5px; bottom: 5px; left: 0; width: 2px; content: ""; background: #98a2b3; border-radius: 99px; }
.entity-avatar-shell.status-active::before { background: #12b76a; }
.entity-avatar-shell.status-suspended::before { background: #f79009; }
.entity-avatar-shell.status-archived::before { background: #98a2b3; }
.current-client-indicator { position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; background: #6366f1; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 0 rgba(99, 102, 241, .32); animation: current-client-pulse 2.2s ease-out infinite; }
@keyframes current-client-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, .28); } 55% { box-shadow: 0 0 0 5px rgba(99, 102, 241, 0); } }
.client-domains { display: flex; min-width: 230px; flex-direction: column; align-items: flex-start; gap: 3px; }
.client-name-link { display: inline-flex; width: fit-content; max-width: 100%; }
.client-name-link strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .16s ease; }
.client-name-link:hover strong { color: var(--brand); }
.client-domain-link { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; color: #344054; font-size: 12px; font-weight: 720; }
.client-domain-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-domain-link .icon { width: 14px; height: 14px; flex: 0 0 auto; color: var(--brand); transform: rotate(-45deg); transition: transform .16s ease; }
.client-domain-link:hover { color: var(--brand); }
.client-domain-link:hover .icon { transform: translate(1px, -1px) rotate(-45deg); }
.client-domain-secondary { color: var(--muted-light); font-size: 10px; font-weight: 600; }
.client-domain-secondary .icon { width: 12px; height: 12px; }
.client-domains small, .client-domain-empty { color: var(--muted-light); font-size: 10px; }
.domains-table { min-width: 580px; }
.domains-table .domain-main-column { width: auto; }
.domain-entry .table-primary-copy { width: min(100%, 720px); }
.domain-form-top-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px; }
.entity-avatar-shell.environment-production .mini-avatar { color: #067647; background: #ecfdf3; }
.entity-avatar-shell.environment-temporary .mini-avatar { color: #b54708; background: #fffaeb; }
.entity-avatar-shell.environment-staging .mini-avatar { color: #b54708; background: #fffaeb; }
.entity-avatar-shell.environment-development .mini-avatar { color: #b42318; background: #fef3f2; }
.entity-avatar-shell.environment-custom .mini-avatar { color: #475467; background: #f2f4f7; }
.entity-avatar-shell.environment-production::before { background: #12b76a; }
.entity-avatar-shell.environment-staging::before { background: #f79009; }
.entity-avatar-shell.environment-development::before { background: #f04438; }
.entity-avatar-shell .mini-avatar .icon { width: 17px; height: 17px; }
.system-temporary-domain .entity-avatar-shell::before { width: 3px; background: #f79009; }
.domain-onboarding-notice { align-items: flex-start; margin-bottom: 14px; color: #854a0e; background: #fffaeb; border-color: #fedf89; box-shadow: none; }
.domain-onboarding-notice > span { color: #b54708; background: #fef0c7; }
.domain-onboarding-notice p { display: flex; flex-direction: column; gap: 2px; }
.domain-onboarding-notice p strong { font-size: 12px; }
.domain-onboarding-notice p small { color: #9a6700; font-size: 10px; font-weight: 500; }
.temporary-domain-control { display: flex; min-height: 44px; align-items: stretch; overflow: hidden; background: #fff; border: 1px solid #d0d5dd; border-radius: 10px; transition: border-color .16s ease, box-shadow .16s ease; }
.temporary-domain-control:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(78, 70, 229, .11); }
.temporary-domain-control > span { display: inline-flex; align-items: center; padding: 0 12px; color: #667085; font-size: 12px; font-weight: 650; white-space: nowrap; background: #f8fafc; border-right: 1px solid #e4e7ec; }
.temporary-domain-control input { min-width: 0; min-height: 42px; border: 0; border-radius: 0; box-shadow: none; }
.temporary-domain-control input:focus { border: 0; box-shadow: none; }
.domain-availability-note.protected { color: #854a0e; background: #fffaeb; border-color: #fedf89; }
.domain-host-link { display: inline-flex; max-width: 100%; align-items: center; gap: 7px; color: #344054; }
.domain-host-link strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.domain-host-link .icon { width: 14px; height: 14px; flex: 0 0 auto; color: var(--brand); transform: rotate(-45deg); transition: transform .16s ease; }
.domain-host-link:hover strong { color: var(--brand); }
.domain-host-link:hover .icon { transform: translate(1px, -1px) rotate(-45deg); }
.domain-entry .table-primary-copy small { overflow: hidden; color: var(--muted-light); text-overflow: ellipsis; white-space: nowrap; }
.domain-environment-fieldset { min-width: 0; margin: 2px 0 18px; padding: 0; border: 0; }
.domain-environment-fieldset legend { margin-bottom: 9px; color: #344054; font-size: 13px; font-weight: 700; }
.domain-environment-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.domain-environment-option { position: relative; display: grid; min-width: 0; min-height: 88px; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease; }
.domain-environment-option:hover { border-color: #c7c7f4; transform: translateY(-1px); }
.domain-environment-option:has(input:checked) { background: #f8f8ff; border-color: #9b9be8; box-shadow: 0 0 0 3px rgba(78, 70, 229, .08); }
.domain-environment-option:has(input:focus-visible) { outline: 3px solid rgba(78, 70, 229, .17); outline-offset: 2px; }
.domain-environment-option input { position: absolute; width: 1px; min-height: 1px; height: 1px; margin: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.domain-environment-icon { display: inline-grid; width: 38px; height: 38px; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 10px; }
.domain-environment-icon .icon { width: 18px; height: 18px; }
.domain-environment-option > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.domain-environment-option strong { color: #344054; font-size: 12px; }
.domain-environment-option small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.environment-option-production { background: #f6fef9; border-color: #abefc6; }
.environment-option-production .domain-environment-icon { color: #067647; background: #dcfae6; }
.environment-option-production:hover { background: #ecfdf3; border-color: #47cd89; }
.environment-option-production:has(input:checked) { background: #ecfdf3; border-color: #12b76a; box-shadow: 0 0 0 3px rgba(18, 183, 106, .1); }
.environment-option-production:has(input:focus-visible) { outline-color: rgba(18, 183, 106, .22); }
.environment-option-staging { background: #fffcf5; border-color: #fedf89; }
.environment-option-staging .domain-environment-icon { color: #b54708; background: #fef0c7; }
.environment-option-staging:hover { background: #fffaeb; border-color: #fdb022; }
.environment-option-staging:has(input:checked) { background: #fffaeb; border-color: #f79009; box-shadow: 0 0 0 3px rgba(247, 144, 9, .1); }
.environment-option-staging:has(input:focus-visible) { outline-color: rgba(247, 144, 9, .22); }
.environment-option-development { background: #fffafa; border-color: #fecdca; }
.environment-option-development .domain-environment-icon { color: #b42318; background: #fee4e2; }
.environment-option-development:hover { background: #fef3f2; border-color: #f97066; }
.environment-option-development:has(input:checked) { background: #fef3f2; border-color: #f04438; box-shadow: 0 0 0 3px rgba(240, 68, 56, .1); }
.environment-option-development:has(input:focus-visible) { outline-color: rgba(240, 68, 56, .22); }
.domain-availability-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; color: #067647; background: #ecfdf3; border-radius: 9px; font-size: 11px; }
.domain-availability-note .icon { width: 16px; height: 16px; flex: 0 0 auto; }
.table-field { min-width: 150px; }
.table-field + .table-field { margin-top: 7px; }

.badge { display: inline-flex; min-height: 25px; align-items: center; gap: 6px; padding: 3px 9px; color: #4141a8; background: var(--brand-soft); border: 1px solid #dedefd; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.badge::before { width: 6px; height: 6px; content: ""; background: currentColor; border-radius: 50%; opacity: .7; }
.badge.success { color: var(--success); background: var(--success-bg); border-color: #abefc6; }
.badge.off { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-line); }
.badge.info { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }
.badge.archived { color: #76502b; background: #f8f3ed; border-color: #dfd0bf; }
.badge.neutral { color: #475467; background: #f2f4f7; border-color: #e4e7ec; }
.badge.pending { color: #8a6116; background: #fffaeb; border-color: #fedf89; }
.badge.environment { text-transform: capitalize; }
code { color: #344054; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-word; }
.code-panel { margin: 0; overflow: hidden; color: #d0d5dd; background: #101828; border-radius: 12px; }
.code-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; color: #98a2b3; background: #1d2939; font-size: 11px; }
.code-panel-header button { min-height: 30px; color: #d0d5dd; background: transparent; border: 0; box-shadow: none; font-size: 11px; }
.code-panel pre { margin: 0; padding: 18px; overflow-x: auto; }
.code-panel code { color: #d0d5dd; white-space: pre; }
details { margin-top: 6px; }
details summary { color: var(--brand); font-size: 12px; font-weight: 650; cursor: pointer; }
.details-content { max-width: 520px; margin-top: 8px; padding: 10px; background: #f8fafc; border-radius: 8px; }

/* Clientes e estados vazios */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.client-card { position: relative; display: flex; min-height: 205px; flex-direction: column; margin: 0; padding: 18px; overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.client-card:hover { border-color: #c7c7f4; box-shadow: 0 12px 28px rgba(91, 91, 214, .1); transform: translateY(-2px); }
.client-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.client-card .client-avatar { width: 46px; height: 46px; border-radius: 13px; font-size: 17px; }
.client-card h2 { margin: 18px 0 3px; }
.client-card .project-code { overflow: hidden; margin-bottom: 18px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.client-card form { margin-top: auto; }
.client-card .button { width: 100%; }
.empty-state { padding: 48px 24px; text-align: center; }
.empty-icon { display: inline-grid; width: 54px; height: 54px; margin-bottom: 16px; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 16px; }
.empty-state p { max-width: 460px; margin: 0 auto; }

/* Acesso e avisos */
.hint-box { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding: 14px; color: #344054; background: #f8f9ff; border: 1px solid #e0e0fa; border-radius: 11px; }
.hint-box .icon { color: var(--brand); }
.hint-box p { margin: 0; color: #475467; font-size: 12px; }
.alert { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 12px 14px; border: 1px solid; border-radius: 11px; box-shadow: var(--shadow-xs); }
.alert > span { display: inline-grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 50%; font-weight: 800; }
.alert > span .icon { width: 15px; height: 15px; }
.alert p { flex: 1; margin: 0; color: inherit; font-size: 13px; font-weight: 600; }
.alert > button { display: inline-grid; width: 30px; min-height: 30px; padding: 0; place-items: center; color: inherit; background: transparent; border: 0; box-shadow: none; opacity: .65; }
.alert > button:hover { background: rgba(0, 0, 0, .04); transform: none; }
.alert > button .icon { width: 16px; height: 16px; }
.alert.success { color: var(--success); background: var(--success-bg); border-color: #abefc6; }
.alert.success > span { background: #d1fadf; }
.alert.success > span { animation: saved-feedback .42s cubic-bezier(.2, .8, .2, 1); }
@keyframes saved-feedback { 0% { opacity: .35; transform: scale(.72); } 70% { transform: scale(1.1); } 100% { opacity: 1; transform: none; } }
.alert.error { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-line); }
.alert.error > span { background: #fee4e2; }

/* Login */
.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 18%, rgba(129, 140, 248, .3), transparent 25%),
        radial-gradient(circle at 16% 86%, rgba(76, 29, 149, .24), transparent 28%),
        linear-gradient(145deg, #111827 0%, #1e1b4b 100%);
}
.auth-shell {
    position: relative;
    display: grid;
    min-height: 100vh;
    padding: clamp(24px, 5vw, 64px);
    place-items: center;
    overflow: hidden;
    isolation: isolate;
}
.auth-shell::before { position: absolute; right: -150px; bottom: -180px; z-index: -1; width: 440px; height: 440px; content: ""; border: 1px solid rgba(255, 255, 255, .09); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255, 255, 255, .028), 0 0 0 120px rgba(255, 255, 255, .018); }
.auth-shell::after { position: absolute; top: -250px; left: -210px; z-index: -1; width: 470px; height: 470px; content: ""; border: 1px solid rgba(255, 255, 255, .055); border-radius: 50%; box-shadow: 0 0 0 75px rgba(255, 255, 255, .016); }
.auth-card { position: relative; z-index: 1; width: min(100%, 460px); padding: 26px 38px 30px; background: rgba(255, 255, 255, .985); border: 1px solid rgba(129, 140, 248, .24); border-radius: 22px; box-shadow: 0 28px 70px rgba(4, 8, 22, .3), 0 4px 16px rgba(4, 8, 22, .12); backdrop-filter: blur(12px); }
.auth-card::before {
    position: absolute;
    inset: -2px;
    padding: 2px;
    content: "";
    pointer-events: none;
    background: conic-gradient(from var(--auth-glow-angle), rgba(99, 102, 241, .08) 0 55%, rgba(96, 165, 250, .92) 70%, rgba(167, 139, 250, 1) 79%, rgba(99, 102, 241, .08) 94% 100%);
    border-radius: 24px;
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, .42));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: auth-border-orbit 4.2s linear infinite, auth-border-breathe 2.1s ease-in-out infinite;
}
.auth-card-topline { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 16px; }
.auth-status { display: inline-flex; align-items: center; gap: 8px; color: #667085; font-size: 10px; font-weight: 750; letter-spacing: .025em; }
.auth-status .status-dot { width: 6px; height: 6px; }
.auth-card-vector { display: inline-grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; }
.student-login-flag { display: block; width: 36px; height: 36px; }
.auth-login-brand { display: flex; margin: 16px 0 22px; align-items: center; justify-content: center; }
.auth-card-heading { margin-bottom: 26px; text-align: center; }
.auth-card-heading h1 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.auth-card-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.auth-form .field { margin-bottom: 18px; }
.auth-form input { min-height: 48px; }
.auth-form .button { min-height: 48px; margin-top: 4px; }
.auth-submit { position: relative; }
.auth-submit-arrow { position: absolute; right: 16px; display: inline-flex; transition: transform .16s ease, opacity .16s ease; }
.auth-submit-arrow .icon { width: 16px; height: 16px; }
.auth-submit:hover .auth-submit-arrow { transform: translateX(2px); }
.auth-card-footer { display: flex; margin-top: 26px; padding-top: 19px; align-items: center; flex-direction: column; gap: 5px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }
.auth-card-footer span { font-size: 11px; font-weight: 650; letter-spacing: .01em; }
.auth-card-footer i { margin-inline: 3px; color: var(--muted-light); font-style: normal; font-weight: 400; }
.auth-card-footer a { color: var(--muted-light); font-size: 11px; font-weight: 600; }
.auth-card-footer a:hover, .auth-card-footer a:focus-visible { color: var(--brand); }

@media (max-width: 1220px) {
    .dashboard-columns { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
    .sidebar { width: 248px; }
    .admin-main { width: calc(100% - 248px); margin-left: 248px; }
    .content-area { padding-inline: 28px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 840px) {
    body.sidebar-open { overflow: hidden; }
    .sidebar { width: min(310px, 88vw); padding-top: 15px; transform: translateX(-102%); box-shadow: var(--shadow-lg); transition: transform .22s ease; }
    .sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-close { display: inline-grid; }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 35; display: block; visibility: hidden; padding: 0; background: rgba(16, 24, 40, .55); border: 0; opacity: 0; transition: opacity .2s ease, visibility .2s ease; }
    .sidebar-open .sidebar-backdrop { visibility: visible; opacity: 1; }
    .admin-main { width: 100%; margin-left: 0; }
    .mobile-header { position: sticky; top: 0; z-index: 25; display: flex; min-height: 64px; align-items: center; justify-content: space-between; padding: 0 20px; background: rgba(255, 255, 255, .93); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.mobile-brand { display: flex; align-items: center; color: var(--ink); }
    .content-area { padding: 28px 22px 44px; }
    .auth-shell { padding: 28px; }
}

@media (max-width: 620px) {
    h1 { font-size: 26px; }
    .content-area { padding: 24px 16px 38px; }
    .page-heading, .toolbar { flex-direction: column; margin-bottom: 22px; }
    .heading-actions { width: 100%; }
    .heading-actions .button { flex: 1; }
    .stats-grid, .grid, .client-grid { grid-template-columns: 1fr; }
    .stat-card:last-child { grid-column: auto; }
    .card { padding: 18px; border-radius: 14px; }
    .card.flush { padding: 0; }
    .card-header, .card-body { padding: 17px; }
    th, td { padding: 12px 14px; }
    .auth-shell { padding: 18px; }
    .auth-card { padding: 22px 22px 26px; border-radius: 18px; }
    .auth-card-topline { margin-bottom: 2px; }
    .auth-login-brand { margin: 14px 0 20px; }
    .auth-card-heading h1 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
    html, .sidebar-nav { scrollbar-color: auto; }
}

/* Contexto global, navegação recolhível e carregamento */
[hidden] { display: none !important; }
.page-progress { position: fixed; inset: 0 0 auto; z-index: 200; height: 3px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .15s ease; }
.page-progress span { display: block; width: 38%; height: 100%; background: linear-gradient(90deg, #2563eb, #7c3aed, #2563eb); border-radius: 0 99px 99px 0; transform: translateX(-110%); }
.is-navigating .page-progress { opacity: 1; }
.is-navigating .page-progress span { animation: page-progress 1s ease-in-out infinite; }
@keyframes page-progress { 0% { transform: translateX(-110%); } 65% { transform: translateX(190%); } 100% { transform: translateX(280%); } }
.global-loading-modal { position: fixed; inset: 0; z-index: 195; display: grid; place-items: center; padding: 20px; visibility: hidden; background: rgba(16, 24, 40, .38); opacity: 0; pointer-events: none; backdrop-filter: blur(3px); transition: opacity .16s ease, visibility 0s linear .16s; }
.is-navigating { overflow: hidden; }
.is-navigating .global-loading-modal { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
.global-loading-card { display: flex; min-width: 220px; align-items: center; gap: 14px; padding: 16px 18px; background: rgba(255, 255, 255, .98); border: 1px solid rgba(255, 255, 255, .72); border-radius: 14px; box-shadow: 0 22px 55px rgba(16, 24, 40, .24); transform: translateY(7px) scale(.985); transition: transform .18s ease; }
.is-navigating .global-loading-card { transform: none; }
.global-loading-spinner { position: relative; display: inline-grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 3px solid #e0e7ff; border-top-color: var(--brand); border-radius: 50%; animation: global-loading-spin .72s linear infinite; }
.global-loading-spinner i { width: 9px; height: 9px; background: linear-gradient(145deg, #2563eb, #7c3aed); border-radius: 50%; }
.global-loading-copy { display: flex; flex-direction: column; }
.global-loading-copy strong { color: var(--ink); font-size: 13px; }
.global-loading-copy small { margin-top: 1px; color: var(--muted); font-size: 10px; }
@keyframes global-loading-spin { to { transform: rotate(360deg); } }

.sidebar, .admin-main { transition: width .22s ease, margin-left .22s ease; }
.sidebar-collapse { width: 34px; height: 34px; color: #98a2b3; }
.sidebar-collapse:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.sidebar-collapse .icon { width: 18px; height: 18px; }
.brand-symbol { display: none; width: 38px; height: 38px; overflow: hidden; border-radius: 11px; }
.brand-symbol img { display: block; width: 100%; height: 100%; object-fit: cover; }
.global-context {
    position: sticky;
    top: 0;
    z-index: 24;
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 20px;
    padding: 8px 30px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.global-context-item { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.global-context-item.client { min-width: 150px; }
.global-context-item.domain { min-width: 210px; }
.global-context-label { color: var(--muted-light); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.global-context-item strong { display: flex; overflow: hidden; align-items: center; gap: 8px; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.environment-context-icon { display: inline-grid; width: 23px; height: 23px; place-items: center; flex: 0 0 auto; border-radius: 7px; }
.environment-context-icon .icon { width: 13px; height: 13px; }
.environment-context-icon.environment-production { color: #067647; background: #ecfdf3; }
.environment-context-icon.environment-staging { color: #b54708; background: #fffaeb; }
.environment-context-icon.environment-development { color: #b42318; background: #fef3f2; }
.environment-context-icon.environment-temporary { color: #5925dc; background: #f4f3ff; }
.environment-context-icon.environment-custom { color: #475467; background: #f2f4f7; }
.global-context-separator { width: 1px; height: 28px; background: var(--line); }
.client-switch-trigger { min-height: 0; margin: -4px -8px; padding: 5px 8px; text-align: left; background: transparent; border: 0; border-radius: 9px; box-shadow: none; cursor: pointer; }
.client-switch-trigger:hover { background: var(--brand-soft); box-shadow: none; transform: none; }
.client-switch-trigger strong > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.client-context-chevron { display: inline-grid; color: var(--brand); transition: transform .18s ease; }
.client-context-chevron .icon { width: 14px; height: 14px; transform: rotate(90deg); }
.client-switch-trigger[aria-expanded="true"] .client-context-chevron { transform: rotate(180deg); }

.sidebar-collapsed .sidebar { width: 76px; padding-inline: 8px; }
.sidebar-collapsed .admin-main { width: calc(100% - 76px); margin-left: 76px; }
.sidebar-collapsed .sidebar-header { justify-content: center; padding: 0; }
.sidebar-collapsed .brand-logo, .sidebar-collapsed .client-context .context-label, .sidebar-collapsed .context-client > span:last-child,
.sidebar-collapsed .client-context > p, .sidebar-collapsed .context-switch, .sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-item > span, .sidebar-collapsed .user-copy, .sidebar-collapsed .sidebar-logout span { display: none; }
.sidebar-collapsed .brand-symbol { display: block; }
.sidebar-collapsed .sidebar-collapse { position: absolute; top: 60px; width: 32px; height: 32px; }
.sidebar-collapsed .sidebar-collapse .icon { transform: rotate(180deg); }
.sidebar-collapsed .client-context { display: grid; margin: 54px 0 14px; padding: 0; place-items: center; background: transparent; border: 0; }
.sidebar-collapsed .context-client { gap: 0; }
.sidebar-collapsed .client-avatar { width: 38px; height: 38px; }
.sidebar-collapsed .sidebar-nav { align-items: center; margin-top: 54px; }
.sidebar-collapsed .nav-item { width: 46px; justify-content: center; padding: 0; }
.sidebar-collapsed .nav-item:hover { transform: none; }
.sidebar-collapsed .nav-item.is-active::before { left: -8px; }
.sidebar-collapsed .nav-section { width: 46px; align-items: center; }
.sidebar-collapsed .nav-section-divider { width: 32px; margin: 12px 0 14px; }
.sidebar-collapsed .workspace-navigation-heading { width: 46px; margin-bottom: 5px; }
.sidebar-collapsed .workspace-current { width: 46px; justify-content: center; padding: 0; background: rgba(99, 102, 241, .12); }
.sidebar-collapsed .workspace-current strong, .sidebar-collapsed .workspace-current-action { display: none; }
.sidebar-collapsed .nav-group { width: 46px; }
.sidebar-collapsed .nav-submenu { width: 46px; max-width: 46px; margin: 3px 0 5px; padding: 0; border-left: 0; }
.sidebar-collapsed .nav-child { width: 46px; justify-content: center; padding: 0; }
.sidebar-collapsed .nav-child.is-active::before { left: -8px; }
.sidebar-collapsed .sidebar-footer { flex-direction: column; padding-inline: 0; }
.sidebar-collapsed .user-summary { flex: 0 0 auto; }

/* CRUD clássico */
.compact-heading { margin-bottom: 18px; }
.compact-heading h1 { margin-bottom: 0; }
.list-heading { align-items: center; margin-bottom: 14px; }
.list-heading .eyebrow { margin-bottom: 6px; }
.list-heading h1 { margin-bottom: 0; }
.back-link { display: flex; width: max-content; align-items: center; gap: 4px; margin-bottom: 14px; color: var(--muted); font-size: 12px; font-weight: 700; }
.back-link:hover { color: var(--brand); }
.back-link .icon { width: 16px; height: 16px; }
.crud-toolbar { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.crud-toolbar-leading { display: flex; min-width: 0; align-items: center; gap: 8px; }
.crud-toolbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; margin-left: auto; }
.crud-toolbar-actions form { display: inline-flex; margin: 0; }
.modal-search-form { display: inline-flex; margin: 0; }
.crud-icon-button { display: inline-grid; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; flex: 0 0 auto; place-items: center; color: var(--muted); background: #fff; border: 1px solid var(--line-strong); border-radius: 9px; box-shadow: var(--shadow-xs); cursor: pointer; transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease; }
.crud-icon-button:hover { color: var(--brand); background: var(--brand-soft); border-color: #c7c7f5; transform: translateY(-1px); }
.crud-icon-button.primary { color: #fff; background: var(--brand); border-color: var(--brand); }
.crud-icon-button.primary:hover { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }
.crud-icon-button.ghost { color: var(--muted); background: transparent; border-color: transparent; box-shadow: none; }
.crud-icon-button.search-active { color: #3538cd; background: #eef4ff; border-color: #a4bcfd; box-shadow: 0 0 0 3px rgba(97, 114, 243, .08); }
.crud-icon-button.search-active:hover { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-line); }
.crud-icon-button .icon { width: 18px; height: 18px; }
.sort-link { color: inherit; }
.sort-link:hover { color: var(--brand); }
.actions-column { width: 1%; text-align: right; }
.crud-table td:last-child { text-align: right; }
.row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; }
.row-actions form { display: inline-flex; margin: 0; }
.icon-action { display: inline-grid; width: 34px; height: 34px; min-height: 34px; padding: 0; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 8px; box-shadow: none; cursor: pointer; }
.icon-action:hover { color: var(--brand); background: var(--brand-soft); transform: none; box-shadow: none; }
.icon-action:disabled { color: #b7bfcc; background: transparent; cursor: not-allowed; opacity: .62; }
.icon-action:disabled:hover { color: #b7bfcc; background: transparent; }
.icon-action.is-static { color: #98a2b3; cursor: default; }
.icon-action.danger { color: var(--muted); background: transparent; }
.icon-action.danger:hover, .icon-action.danger:focus-visible { color: #fff; background: var(--danger); }
.icon-action.danger:disabled,
.icon-action.danger:disabled:hover,
.icon-action.danger:disabled:focus-visible,
.icon-action:disabled,
.icon-action:disabled:hover,
.icon-action:disabled:focus-visible {
    color: #b7bfcc;
    background: transparent;
    box-shadow: none;
    cursor: default;
    opacity: .62;
    transform: none;
}
.icon-action.caution { color: var(--muted); background: transparent; }
.icon-action.caution:hover, .icon-action.caution:focus-visible { color: #8a4b13; background: var(--warning-bg); }
.icon-action .icon { width: 17px; height: 17px; }
.table-primary .badge { margin-left: 6px; }
.badge.primary { color: #4949b8; background: #eeeeff; border-color: #dedefd; }
.pagination-bar { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.pagination-bar p { margin: 0; font-size: 12px; }
.pagination { display: flex; align-items: center; gap: 5px; }
.page-link { display: inline-grid; min-width: 34px; height: 34px; padding: 0 8px; place-items: center; color: var(--muted); border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 700; }
.page-link:hover { color: var(--brand); background: var(--brand-soft); }
.page-link.is-current { color: #fff; background: var(--brand); }
.page-link.is-disabled { color: #d0d5dd; pointer-events: none; }
.page-link .icon { width: 16px; height: 16px; }

.form-card { padding: 0; overflow: hidden; }
.form-section { padding: 24px; }
.form-section.divided { border-top: 1px solid var(--line); }
.form-fields { width: 100%; }
.form-fields .field:last-child { margin-bottom: 0; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-stack { display: grid; gap: 10px; }
.module-selection-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.module-manager { padding: 0; overflow: hidden; }
.module-manager-toolbar { display: flex; min-height: 58px; align-items: center; justify-content: flex-end; padding: 10px 16px; background: linear-gradient(180deg, #fff, #fcfcff); border-bottom: 1px solid var(--line); }
.module-search-trigger { border: 1px solid var(--line); }
.module-search-trigger.is-active { color: #fff; background: var(--brand); border-color: var(--brand); }
.module-search-trigger.is-active:hover { color: #fff; background: #4038cb; }
.module-search-field { position: relative; display: block; width: min(100%, 420px); }
.module-search-field > span { position: absolute; top: 50%; left: 13px; z-index: 1; display: inline-flex; color: var(--muted-light); pointer-events: none; transform: translateY(-50%); }
.module-search-field .icon { width: 17px; height: 17px; }
.module-search-field input { min-height: 42px; padding: 9px 13px 9px 40px; background: #f8fafc; border-color: #e4e7ec; border-radius: 11px; }
.module-search-field input:focus { background: #fff; }
.module-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 13px; padding: 16px; }
.module-card { position: relative; display: grid; min-width: 0; min-height: 92px; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 16px; border: 1px solid transparent; border-radius: 15px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease; }
.module-card[hidden] { display: none; }
.module-card.is-active { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, rgba(47, 107, 255, .68), rgba(98, 55, 238, .66), rgba(47, 107, 255, .2)) border-box; box-shadow: 0 8px 26px rgba(79, 70, 229, .1), 0 0 18px rgba(47, 107, 255, .06); }
.module-card.is-inactive { background: linear-gradient(#fcfcfd, #fcfcfd) padding-box, linear-gradient(135deg, #e4e7ec, #f2f4f7) border-box; box-shadow: 0 4px 12px rgba(16, 24, 40, .035); }
.module-card:hover { transform: translateY(-1px); }
.module-card.is-active:hover { box-shadow: 0 12px 30px rgba(79, 70, 229, .14), 0 0 22px rgba(47, 107, 255, .1); }
.module-card.is-saving { pointer-events: none; animation: module-card-saving .46s ease-in-out infinite alternate; }
@keyframes module-card-saving { to { box-shadow: 0 10px 32px rgba(79, 70, 229, .22), 0 0 26px rgba(47, 107, 255, .16); } }
.module-card-icon { display: inline-grid; width: 46px; height: 46px; place-items: center; color: #5b55d6; background: linear-gradient(145deg, #f0f4ff, #f5f0ff); border: 1px solid #dddffd; border-radius: 13px; transition: color .2s ease, background .2s ease, filter .2s ease; }
.module-card-icon .icon { width: 21px; height: 21px; }
.module-card.is-inactive .module-card-icon { color: #667085; background: #f2f4f7; border-color: #e4e7ec; filter: grayscale(.3); }
.module-card-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.module-card-copy strong, .module-card-copy code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.module-card-copy strong { color: #252b37; font-size: 13px; }
.module-card-copy code { color: #98a2b3; font-size: 10px; }
.module-card.is-inactive .module-card-copy strong { color: #667085; }
.module-card.is-native { background: linear-gradient(145deg, #f8faff, #fff 68%) padding-box, linear-gradient(135deg, rgba(79, 70, 229, .72), rgba(47, 107, 255, .34), rgba(194, 188, 255, .5)) border-box; box-shadow: 0 8px 24px rgba(53, 56, 205, .09); }
.module-card.is-native:hover { box-shadow: 0 10px 28px rgba(53, 56, 205, .12); }
.module-card.is-native .module-card-icon { color: #3538cd; background: linear-gradient(145deg, #eef4ff, #f4f0ff); border-color: #d9ddff; }
.module-native-label { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 4px; margin-top: 1px; padding: 3px 7px; color: #4b4bb7; background: rgba(79, 70, 229, .07); border: 1px solid rgba(79, 70, 229, .12); border-radius: 999px; font-size: 8px; font-weight: 750; line-height: 1.25; }
.module-native-label .icon { width: 10px; height: 10px; flex: 0 0 auto; }
.module-native-label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.module-card-control, .module-card-control form { display: inline-flex; margin: 0; }
.module-card-control { align-items: center; gap: 3px; }
.module-config-trigger { width: 32px; height: 32px; min-height: 32px; }
.module-switch { position: relative; display: inline-flex; padding: 6px 2px; cursor: pointer; }
.module-switch input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.module-switch input:checked + .switch-track { background: var(--brand); box-shadow: 0 0 0 3px rgba(78, 70, 229, .09); }
.module-switch input:checked + .switch-track::after { transform: translateX(18px); }
.module-switch input:focus-visible + .switch-track { outline: 3px solid rgba(78, 70, 229, .18); outline-offset: 2px; }
.module-filter-empty { display: grid; min-height: 210px; place-items: center; align-content: center; gap: 9px; color: var(--muted); }
.module-filter-empty[hidden] { display: none; }
.module-filter-empty > span { display: inline-grid; width: 42px; height: 42px; place-items: center; color: #667085; background: #f2f4f7; border-radius: 12px; }
.module-filter-empty strong { font-size: 13px; }
.module-manager-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 15px 16px; background: #fcfcfd; border-top: 1px solid var(--line); }
.module-search-modal, .module-settings-modal { position: fixed; inset: 0; z-index: 176; display: grid; padding: 20px; place-items: center; }
.module-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; background: rgba(16, 24, 40, .62); border: 0; border-radius: 0; box-shadow: none; backdrop-filter: blur(4px); }
.module-modal-backdrop:hover { background: rgba(16, 24, 40, .62); box-shadow: none; transform: none; }
.module-search-dialog, .module-settings-dialog { position: relative; z-index: 1; width: min(100%, 520px); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); animation: modal-enter .18s ease-out; }
.module-settings-dialog { width: min(100%, 900px); max-height: calc(100vh - 40px); overflow-y: auto; }
.module-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px 21px 16px; border-bottom: 1px solid var(--line); }
.module-modal-header .eyebrow { margin-bottom: 4px; }
.module-modal-header h2 { margin: 0; font-size: 20px; }
.module-search-body { padding: 20px 21px 22px; }
.module-search-body .module-search-field { width: 100%; }
.module-search-body p { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.module-settings-body { padding: 21px; }
.module-settings-sections { display: grid; gap: 14px; }
.module-config-section { padding: 16px; background: #fcfcfd; border: 1px solid var(--line); border-radius: 14px; }
.module-config-section.is-backend { background: linear-gradient(135deg, rgba(247, 249, 255, .94), #fff 58%); border-color: #dfe5f5; }
.module-config-section-header { display: flex; align-items: center; gap: 10px; }
.module-config-section-header > div { min-width: 0; }
.module-config-section-header strong { display: block; color: #26334d; font-size: 13px; }
.module-config-section-header p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.module-config-section-icon { display: inline-grid; width: 30px; height: 30px; flex: 0 0 auto; color: #315fd7; background: rgba(49, 95, 215, .09); border: 1px solid rgba(49, 95, 215, .12); border-radius: 9px; place-items: center; }
.module-config-section-icon svg { width: 15px; height: 15px; }
.module-config-section-icon.image { width: 28px; height: 28px; color: #6941c6; background: rgba(105, 65, 198, .08); border-color: rgba(105, 65, 198, .12); }
.module-settings-grid .field { margin-bottom: 0; }
.module-settings-grid { margin-top: 14px; }
.module-settings-grid .field > small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.module-image-settings { margin-top: 17px; padding-top: 16px; border-top: 1px solid #e8e5f4; }
.module-settings-section-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 12px; }
.module-settings-section-heading strong { color: #344054; font-size: 13px; }
.module-settings-section-heading p { margin: 3px 0 0; font-size: 11px; }
.module-image-field-list { display: grid; gap: 9px; }
.module-image-field { position: relative; padding: 14px; background: #fafbff; border: 1px solid #e5e7f5; border-radius: 12px; }
.module-image-field-header { display: grid; grid-template-columns: minmax(150px, 1fr) auto; align-items: center; gap: 16px; }
.module-image-field-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.module-image-field-copy strong { overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.module-image-field-copy small { color: var(--muted); font-size: 10px; }
.module-image-primary-controls { --module-image-control-height: 40px; display: flex; align-items: flex-end; gap: 8px; }
.module-image-dimensions { display: grid; grid-template-columns: repeat(2, 112px); gap: 8px; }
.module-image-dimension { position: relative; display: grid; grid-template-columns: 1fr; gap: 4px; }
.module-image-dimension > span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.module-image-dimension input { min-height: 38px; padding-right: 28px; }
.module-image-primary-controls > .module-image-dimensions .module-image-dimension input { height: var(--module-image-control-height); min-height: var(--module-image-control-height); }
.module-image-dimension > small { position: absolute; right: 10px; bottom: 11px; color: #98a2b3; font-size: 9px; pointer-events: none; }
.module-image-variations { margin-top: 14px; padding-top: 13px; border-top: 1px solid #e5e7f0; }
.module-image-variations-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.module-image-variations-heading strong { color: #344054; font-size: 11px; }
.module-image-variations-heading small { color: var(--muted); font-size: 9px; }
.module-image-variant-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.module-image-variant { display: grid; grid-template-columns: minmax(90px, 1fr) auto; align-items: center; gap: 10px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.module-image-variant.is-enabled { background: #fbfbff; border-color: #cbc9f4; box-shadow: 0 0 0 2px rgba(78, 70, 229, .04); }
.module-image-variant-toggle { position: relative; display: flex; min-width: 0; align-items: center; gap: 8px; cursor: pointer; }
.module-image-variant-toggle input { position: absolute; width: 1px; height: 1px; min-height: 1px; overflow: hidden; opacity: 0; }
.module-image-variant-toggle > span:first-of-type { position: relative; width: 18px; height: 18px; flex: 0 0 auto; background: #fff; border: 1px solid #cbd0d9; border-radius: 5px; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.module-image-variant-toggle > span:first-of-type::after { position: absolute; top: 2px; left: 5px; width: 5px; height: 9px; content: ""; border: solid #fff; border-width: 0 2px 2px 0; opacity: 0; transform: rotate(45deg); }
.module-image-variant-toggle input:checked + span { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 3px rgba(78, 70, 229, .09); }
.module-image-variant-toggle input:checked + span::after { opacity: 1; }
.module-image-variant-toggle input:focus-visible + span { outline: 3px solid rgba(78, 70, 229, .16); outline-offset: 2px; }
.module-image-variant-toggle > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.module-image-variant-toggle strong { color: #344054; font-size: 10px; }
.module-image-variant-toggle small { color: var(--muted); font-size: 8px; }
.module-image-variant-dimensions { grid-template-columns: repeat(2, 90px); }
.module-image-variant-dimensions .module-image-dimension input { min-height: 34px; padding: 7px 25px 7px 8px; font-size: 10px; }
.module-image-variant-dimensions .module-image-dimension > span { font-size: 7px; }
.module-image-variant-dimensions .module-image-dimension > small { right: 8px; bottom: 9px; font-size: 8px; }
.module-image-variant:not(.is-enabled) .module-image-variant-dimensions { opacity: .46; }
.module-image-variant input:disabled { color: #98a2b3; background: #f2f4f7; cursor: not-allowed; }
.module-image-validation { display: none; margin-top: 9px; color: #b42318; font-size: 9px; font-weight: 650; }
.module-image-validation.is-visible { display: block; }
.module-settings-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 15px 21px; background: #fcfcfd; border-top: 1px solid var(--line); }
.option-check { display: flex; align-items: flex-start; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.option-check:hover { background: #fafbff; border-color: #d9d9f8; }
.module-selection-grid .option-check:has(input:checked) { background: #f7f7ff; border-color: #d9d9f8; }
.option-check input { margin-top: 2px; }
.option-check span { display: flex; flex-direction: column; gap: 2px; }
.option-check strong { color: #344054; font-size: 13px; }
.option-check small { font-size: 11px; }
.switch-stack { display: grid; gap: 10px; }
.modern-switch { position: relative; display: flex; min-height: 58px; align-items: center; gap: 13px; padding: 11px 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.modern-switch:hover { background: #fafbff; border-color: #d9d9f8; }
.modern-switch input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 42px; height: 24px; flex: 0 0 auto; background: #d0d5dd; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .04); transition: background .2s ease, box-shadow .2s ease; }
.switch-track::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; content: ""; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(16, 24, 40, .24); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.modern-switch input:checked + .switch-track { background: var(--brand); box-shadow: 0 0 0 3px rgba(78, 70, 229, .09); }
.modern-switch input:checked + .switch-track::after { transform: translateX(18px); }
.modern-switch input:focus-visible + .switch-track { outline: 3px solid rgba(78, 70, 229, .18); outline-offset: 2px; }
.switch-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.switch-copy strong { color: #344054; font-size: 13px; }
.switch-copy small { color: var(--muted); font-size: 11px; }
.modern-switch.is-locked { cursor: default; background: #fcfcfd; }
.modern-switch.is-locked .switch-track { background: #7f7ae8; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 16px 24px; background: #fcfcfd; border-top: 1px solid var(--line); }
.detail-card { padding: 0; overflow: hidden; }
.detail-hero { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.detail-icon { display: inline-grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 13px; }
.detail-hero > div { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.detail-hero > div strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.detail-hero > div span { color: var(--muted); font-size: 11px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 8px 24px 22px; }
.detail-grid > div { min-width: 0; padding: 18px 18px 2px 0; }
.detail-grid dt { margin-bottom: 5px; color: var(--muted-light); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.detail-grid dd { overflow-wrap: anywhere; margin: 0; color: #344054; font-weight: 650; }
.detail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 24px; background: #fcfcfd; border-top: 1px solid var(--line); }
.detail-actions form { margin: 0; }
.read-only-person { display: flex; align-items: center; gap: 12px; padding: 14px; background: #f9fafb; border: 1px solid var(--line); border-radius: 11px; }
.read-only-person > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.read-only-person strong { color: #344054; }
.invitation-card { display: grid; max-width: 760px; margin-inline: auto; padding: 30px; justify-items: center; gap: 18px; text-align: center; }
.invitation-icon { display: inline-grid; width: 52px; height: 52px; place-items: center; color: var(--brand); background: var(--brand-soft); border: 1px solid #dedefd; border-radius: 15px; }
.invitation-icon .icon { width: 23px; height: 23px; }
.invitation-copy h2 { margin: 0 0 6px; font-size: 20px; }
.invitation-copy p { max-width: 570px; margin: 0; color: var(--muted); line-height: 1.6; }
.invitation-url { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.invitation-url input { min-width: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.invitation-card > small { max-width: 560px; color: var(--muted-light); }
.invitation-card .form-actions { width: calc(100% + 60px); margin: 2px -30px -30px; }
.muted-value { color: var(--muted-light); font-size: 12px; }
.audit-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 24px 24px; }
.audit-values > div { min-width: 0; }
.audit-values h2 { margin-top: 16px; }
.audit-values pre { max-height: 420px; margin: 0; padding: 16px; overflow: auto; color: #d0d5dd; background: #101828; border-radius: 11px; }
.audit-values code { color: inherit; white-space: pre-wrap; }
.table-photo, .detail-photo { display: block; object-fit: cover; border: 1px solid var(--line); }
.table-photo { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; }
.detail-photo { width: 58px; height: 58px; flex: 0 0 auto; border-radius: 15px; }
.current-photo { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 10px; background: #f9fafb; border: 1px solid var(--line); border-radius: 11px; }
.current-photo img { width: 54px; height: 54px; flex: 0 0 auto; object-fit: cover; border-radius: 12px; }
.current-photo span { display: flex; flex-direction: column; }
.rating-badge { display: inline-flex; align-items: center; gap: 5px; color: #9a6700; font-size: 12px; font-weight: 800; white-space: nowrap; }
.rating-badge .icon { width: 17px; height: 17px; fill: #fdb022; stroke: #b54708; }
.comment-preview { display: -webkit-box; overflow: hidden; max-width: 380px; color: #475467; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.review-comment { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.review-comment blockquote { margin: 8px 0 0; color: #344054; font-size: 15px; line-height: 1.75; }
.module-icon-token { display: inline-grid; max-width: 104px; min-width: 40px; height: 38px; padding: 0 9px; overflow: hidden; place-items: center; color: #4141a8; background: var(--brand-soft); border: 1px solid #dedefd; border-radius: 10px; font: 700 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.module-icon-token.large { max-width: 150px; min-width: 58px; height: 58px; padding-inline: 12px; border-radius: 15px; font-size: 11px; }
.order-chip { display: inline-grid; min-width: 34px; height: 28px; padding: 0 8px; place-items: center; color: #475467; background: #f2f4f7; border-radius: 8px; font: 750 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.button.danger-outline { color: #344054; background: #fff; border-color: var(--line-strong); }
.button.danger-outline:hover, .button.danger-outline:focus-visible { color: #fff; background: var(--danger); border-color: var(--danger); }
.button.caution-outline { color: #344054; background: #fff; border-color: var(--line-strong); }
.button.caution-outline:hover, .button.caution-outline:focus-visible { color: #7a3f0b; background: var(--warning-bg); border-color: #e4c28d; }
.lifecycle-notice { display: flex; align-items: flex-start; gap: 12px; margin: 0 24px 20px; padding: 14px 16px; color: #69421d; background: #fbf7f1; border: 1px solid #e6d7c5; border-radius: 12px; }
.lifecycle-notice > span { display: inline-grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; background: #f1e7da; border-radius: 9px; }
.lifecycle-notice .icon { width: 18px; height: 18px; }
.lifecycle-notice strong { display: block; margin-bottom: 3px; color: #5b3717; }
.lifecycle-notice p { margin: 0; color: #76502b; font-size: 12px; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 20px 24px 24px; padding: 16px; background: #fcfaf9; border: 1px solid var(--danger-line); border-radius: 12px; }
.danger-zone strong { display: block; color: #573331; }
.danger-zone p { margin: 3px 0 0; color: #7c5a57; font-size: 12px; }
.danger-zone form { display: none; }

/* Upload global e editor de imagens */
.image-upload-field { margin-bottom: 18px !important; }
.image-upload-card { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: center; gap: 16px; padding: 13px; background: #fbfcff; border: 1px dashed #c9cce8; border-radius: 13px; transition: border-color .16s ease, background .16s ease; }
.image-upload-card:hover { background: #f8f8ff; border-color: #9292e8; }
.image-upload-preview { position: relative; display: grid; width: 118px; min-height: 88px; max-height: 118px; padding: 0; overflow: hidden; place-items: center; color: #7474d4; background: linear-gradient(145deg, #f0f1ff, #e7e9fb); border: 1px solid #d9dcf2; border-radius: 11px; box-shadow: none; cursor: pointer; }
.image-upload-preview:hover { background: linear-gradient(145deg, #ebecff, #dfe2f8); transform: none; box-shadow: none; }
.image-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-upload-placeholder { display: inline-grid; place-items: center; }
.image-upload-placeholder .icon { width: 28px; height: 28px; }
.image-upload-copy { display: flex; min-width: 0; flex-direction: column; }
.image-upload-copy > strong { color: #344054; font-size: 13px; }
.image-upload-copy > span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.image-upload-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.image-upload-actions .button { min-height: 34px; }
.image-upload-actions .image-upload-remove { color: var(--muted); }
.image-upload-actions .image-upload-remove:hover, .image-upload-actions .image-upload-remove:focus-visible { color: #fff; background: var(--danger); }
.image-upload-actions .image-upload-remove.is-active { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-line); }
.image-upload-actions .image-upload-remove.is-active:hover, .image-upload-actions .image-upload-remove.is-active:focus-visible { color: #fff; background: var(--danger); border-color: var(--danger); }
.image-upload-help { margin-top: 7px !important; }
.image-upload-feedback { min-height: 18px; margin-top: 3px !important; color: var(--success); font-weight: 650; }
.image-upload-feedback:empty { display: none; }
.image-upload-feedback.is-error { color: var(--danger); }

.image-editor-modal { position: fixed; inset: 0; z-index: 180; display: grid; padding: 20px; place-items: center; }
.image-editor-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; background: rgba(5, 10, 22, .82); border: 0; border-radius: 0; box-shadow: none; backdrop-filter: blur(9px); }
.image-editor-backdrop:hover { background: rgba(5, 10, 22, .82); transform: none; box-shadow: none; }
.image-editor-dialog { position: relative; z-index: 1; display: flex; width: min(100%, 1180px); max-height: calc(100vh - 40px); overflow: hidden; flex-direction: column; background: #fff; border: 1px solid rgba(255, 255, 255, .38); border-radius: 22px; box-shadow: 0 32px 100px rgba(0, 0, 0, .48), 0 0 0 1px rgba(117, 94, 255, .08); animation: modal-enter .2s ease-out; }
.image-editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 22px 16px; background: linear-gradient(180deg, #fff, #fcfcff); border-bottom: 1px solid #e8e9f2; }
.image-editor-header .eyebrow { margin-bottom: 4px; color: var(--brand); }
.image-editor-header h2 { margin-bottom: 3px; font-size: 21px; }
.image-editor-header p { margin: 0; color: #667085; font-size: 12px; }
.image-editor-body { display: grid; min-height: 0; grid-template-columns: minmax(0, 1fr) 300px; overflow: hidden; }
.image-editor-workspace { display: flex; min-width: 0; min-height: 500px; flex-direction: column; justify-content: center; padding: 22px; overflow: hidden; background: radial-gradient(circle at 50% 42%, #26334a 0, #111a2a 52%, #09111f 100%); }
.image-editor-stage { position: relative; width: min(100%, var(--image-editor-stage-width, 860px)); margin: auto; overflow: hidden; background-color: #111827; background-image: linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,.035) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255,255,255,.035) 75%), linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.035) 75%); background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-size: 16px 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; box-shadow: 0 20px 55px rgba(0, 0, 0, .36); touch-action: none; user-select: none; }
.image-editor-stage canvas { display: block; width: 100%; height: 100%; outline: 0; cursor: grab; touch-action: none; }
.image-editor-stage canvas:focus-visible { box-shadow: inset 0 0 0 2px #9b8cff; }
.image-editor-stage canvas.is-dragging { cursor: grabbing; }
.image-editor-grid { position: absolute; pointer-events: none; background-image: linear-gradient(to right, transparent 33.15%, rgba(255,255,255,.38) 33.25%, rgba(255,255,255,.38) 33.45%, transparent 33.55%, transparent 66.45%, rgba(255,255,255,.38) 66.55%, rgba(255,255,255,.38) 66.75%, transparent 66.85%), linear-gradient(to bottom, transparent 33.15%, rgba(255,255,255,.38) 33.25%, rgba(255,255,255,.38) 33.45%, transparent 33.55%, transparent 66.45%, rgba(255,255,255,.38) 66.55%, rgba(255,255,255,.38) 66.75%, transparent 66.85%); border: 1px solid rgba(255,255,255,.96); border-radius: 3px; box-shadow: 0 0 0 9999px rgba(3, 8, 18, .66), 0 0 0 1px rgba(17, 24, 39, .5), 0 0 26px rgba(124, 92, 255, .22); will-change: left, top, width, height; }
.image-editor-grid i { position: absolute; width: 18px; height: 18px; border-color: #a89aff; border-style: solid; }
.image-editor-grid i:nth-child(1) { top: -2px; left: -2px; border-width: 3px 0 0 3px; border-radius: 4px 0 0; }
.image-editor-grid i:nth-child(2) { top: -2px; right: -2px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.image-editor-grid i:nth-child(3) { right: -2px; bottom: -2px; border-width: 0 3px 3px 0; border-radius: 0 0 4px; }
.image-editor-grid i:nth-child(4) { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.image-editor-tip { margin: 13px 0 0; color: #a8b2c3; text-align: center; font-size: 10px; letter-spacing: .01em; }
.image-editor-controls { min-height: 0; padding: 18px; overflow-y: auto; background: #fcfcfe; border-left: 1px solid #e8e9f2; }
.image-profile-summary { display: flex; flex-direction: column; padding: 14px; background: linear-gradient(145deg, #f1f0ff, #f8f7ff); border: 1px solid #dcd8ff; border-radius: 13px; }
.image-profile-summary span { color: #6b5bd2; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.image-profile-summary strong { margin-top: 5px; color: #383192; font-size: 14px; }
.image-profile-summary small, .image-profile-summary em { margin-top: 3px; color: #6f6a98; font-size: 9px; font-style: normal; line-height: 1.4; }
.image-profile-summary em { padding-top: 5px; border-top: 1px solid rgba(107, 91, 210, .14); }
.image-editor-resolution { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: flex-start; gap: 10px; margin-top: 11px; padding: 11px; background: #f8fafc; border: 1px solid var(--line); border-radius: 11px; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.image-editor-resolution-icon { position: relative; display: grid; width: 30px; height: 30px; color: #667085; background: #eef1f5; border-radius: 50%; place-items: center; }
.image-editor-resolution-icon::before { content: "…"; font-size: 12px; font-weight: 900; }
.image-editor-resolution > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.image-editor-resolution strong { color: #344054; font-size: 11px; }
.image-editor-resolution small { color: #667085; font-size: 9px; line-height: 1.45; }
.image-editor-resolution.is-valid { background: #f0fdf7; border-color: #b7e4cc; }
.image-editor-resolution.is-valid .image-editor-resolution-icon { color: #067647; background: #d8f5e6; }
.image-editor-resolution.is-valid .image-editor-resolution-icon::before { content: "✓"; }
.image-editor-resolution.is-valid strong { color: #05603a; }
.image-editor-resolution.is-invalid { background: #fff6f5; border-color: #efc5c1; }
.image-editor-resolution.is-invalid .image-editor-resolution-icon { color: #b42318; background: #fee4e2; }
.image-editor-resolution.is-invalid .image-editor-resolution-icon::before { content: "!"; }
.image-editor-resolution.is-invalid strong { color: #9f2319; }
.image-control { margin-top: 18px; }
.image-control > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.image-control label { color: #344054; font-size: 11px; font-weight: 780; }
.image-control output { color: var(--brand); font-size: 10px; font-weight: 820; }
.image-editor-zoom-row { display: grid !important; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 8px; margin-top: 9px; }
.image-editor-zoom-row .icon-action { width: 34px; height: 34px; color: #5b56ad; background: #f4f3ff; border-color: #dddcf7; }
.image-editor-zoom-row .icon-action:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.image-editor-zoom-row .icon-action:disabled { color: #b5b7c8; background: #f5f6f8; border-color: #e7e9ee; opacity: 1; cursor: default; }
.image-control input[type="range"] { width: 100%; min-height: 24px; margin: 0; padding: 0; accent-color: var(--brand); border: 0; box-shadow: none; }
.image-control > small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.image-editor-button-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
.image-editor-button-grid .button { min-width: 0; padding-inline: 8px; font-size: 10px; }
.image-editor-reset { width: 100%; margin-top: 18px; }
.image-editor-footer { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; background: #fff; border-top: 1px solid #e8e9f2; }
.image-editor-footer p { margin: 0; color: #667085; font-size: 10px; }
.image-editor-footer p.is-error { color: var(--danger); }
.image-editor-footer > div { display: flex; flex: 0 0 auto; gap: 8px; }

/* Modal de confirmação */
.modal-open { overflow: hidden; }
.client-switch-modal { position: fixed; inset: 0; z-index: 175; display: grid; padding: 20px; place-items: center; }
.client-switch-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; background: rgba(16, 24, 40, .62); border: 0; border-radius: 0; box-shadow: none; backdrop-filter: blur(4px); }
.client-switch-backdrop:hover { background: rgba(16, 24, 40, .62); box-shadow: none; transform: none; }
.client-switch-dialog { position: relative; z-index: 1; display: flex; width: min(100%, 500px); max-height: min(680px, calc(100vh - 40px)); flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); animation: modal-enter .18s ease-out; }
.client-switch-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 20px 14px; }
.client-switch-header h2 { margin: 0; font-size: 21px; }
.client-switch-header p { margin: 4px 0 0; font-size: 12px; }
.client-switch-search { padding: 0 14px 14px; border-bottom: 1px solid var(--line); }
.client-switch-search-field { position: relative; display: block; }
.client-switch-search-field > span { position: absolute; top: 50%; left: 13px; display: inline-flex; color: var(--muted-light); pointer-events: none; transform: translateY(-50%); }
.client-switch-search-field .icon { width: 17px; height: 17px; }
.client-switch-search-field input { min-height: 42px; padding: 9px 13px 9px 40px; background: #f8fafc; border-color: #e4e7ec; border-radius: 10px; }
.client-switch-search-field input:focus { background: #fff; }
.client-switch-list { display: grid; gap: 4px; padding: 10px 14px 14px; overflow-y: auto; }
.client-switch-list form { margin: 0; }
.client-switch-option { display: grid; width: 100%; min-height: 62px; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 9px 11px; color: var(--ink); text-align: left; background: #fff; border: 1px solid transparent; border-radius: 11px; box-shadow: none; }
button.client-switch-option { cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
button.client-switch-option:hover { background: #f7f7ff; border-color: #e1e1fb; box-shadow: none; transform: none; }
.client-switch-option.is-current { background: var(--brand-soft); border-color: #d9d9f8; }
.client-switch-option .client-avatar { width: 38px; height: 38px; border-radius: 10px; font-size: 12px; }
.client-switch-copy { display: flex; min-width: 0; flex-direction: column; }
.client-switch-copy strong, .client-switch-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-switch-copy strong { font-size: 13px; }
.client-switch-copy small { font-size: 10px; }
.client-switch-action { display: inline-grid; color: var(--brand); }
.client-switch-action .icon { width: 17px; height: 17px; }
.client-switch-current { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.client-switch-current .icon { width: 15px; height: 15px; }
.client-switch-footer { padding: 13px 20px; text-align: right; background: #fcfcfd; border-top: 1px solid var(--line); }
.client-switch-footer a { font-size: 11px; font-weight: 750; }
.client-switch-no-results { padding: 28px 14px; color: var(--muted); font-size: 12px; text-align: center; }
.client-switch-empty { padding: 36px 22px; text-align: center; }
.client-switch-empty .empty-icon { margin-bottom: 12px; }
.client-switch-empty strong { display: block; }
.client-switch-empty p { margin: 4px 0 0; font-size: 12px; }
.workspace-selector-page { display: grid; min-height: calc(100vh - 150px); place-items: center; }
.workspace-selector-card { width: min(100%, 620px); overflow: hidden; }
.workspace-selector-header { display: flex; align-items: center; gap: 14px; padding: 22px; border-bottom: 1px solid var(--line); }
.workspace-selector-header .detail-icon { width: 46px; height: 46px; margin: 0; flex: 0 0 auto; }
.workspace-selector-header .eyebrow { margin-bottom: 4px; }
.workspace-selector-header h1 { margin: 0; font-size: 23px; }
.workspace-selector-header p { margin: 4px 0 0; font-size: 12px; }
.workspace-selector-list { max-height: min(520px, calc(100vh - 310px)); }
.search-modal { position: fixed; inset: 0; z-index: 165; display: grid; padding: 20px; place-items: center; }
.search-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; background: rgba(16, 24, 40, .62); border: 0; border-radius: 0; box-shadow: none; backdrop-filter: blur(4px); }
.search-modal-backdrop:hover { background: rgba(16, 24, 40, .62); transform: none; box-shadow: none; }
.search-dialog { position: relative; z-index: 1; width: min(100%, 520px); padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); animation: modal-enter .18s ease-out; }
.search-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.search-dialog-header .eyebrow { margin-bottom: 5px; }
.search-dialog-header h2 { margin: 0; font-size: 21px; }
.search-dialog form, .search-dialog .field { margin: 0; }
.search-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.confirm-modal { position: fixed; inset: 0; z-index: 150; display: grid; padding: 20px; place-items: center; }
.confirm-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; background: rgba(16, 24, 40, .62); border: 0; border-radius: 0; box-shadow: none; backdrop-filter: blur(3px); }
.confirm-backdrop:hover { background: rgba(16, 24, 40, .62); transform: none; box-shadow: none; }
.confirm-dialog { position: relative; z-index: 1; width: min(100%, 430px); padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); animation: modal-enter .18s ease-out; }
.confirm-icon { display: inline-grid; width: 44px; height: 44px; margin-bottom: 16px; place-items: center; color: var(--warning); background: var(--warning-bg); border-radius: 13px; }
.confirm-modal.is-danger .confirm-icon { color: var(--danger); background: var(--danger-bg); }
.confirm-dialog h2 { font-size: 20px; }
.confirm-dialog p { margin-bottom: 22px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
@keyframes modal-enter { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }

/* Login e estados de operação */
.password-field { position: relative; }
.password-field input { padding-right: 50px; }
.password-toggle { position: absolute; top: 4px; right: 4px; display: inline-grid; width: 40px; min-height: 40px; padding: 0; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 8px; box-shadow: none; }
.password-toggle:hover { color: var(--brand); background: var(--brand-soft); transform: none; box-shadow: none; }
.password-toggle .icon { width: 18px; height: 18px; }
.button-loader { display: none; width: 17px; height: 17px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .65s linear infinite; }
.is-submitting [data-button-label], .is-submitting [data-button-arrow] { opacity: .72; }
.is-submitting .button-loader { display: inline-block; }
.is-submitting.button .button-loader { display: inline-block; }
button:disabled { cursor: wait; opacity: .78; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-card { animation: auth-enter .55s .06s cubic-bezier(.22, .75, .32, 1) both; }
@keyframes auth-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@property --auth-glow-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes auth-border-orbit { to { --auth-glow-angle: 360deg; } }
@keyframes auth-border-breathe { 0%, 100% { opacity: .58; } 50% { opacity: 1; } }

/* Portfólio */
.portfolio-table-thumb { display: block; width: 64px; height: 48px; flex: 0 0 auto; object-fit: cover; background: #f2f4f7; border: 1px solid var(--line); border-radius: 9px; }
.media-list-table { min-width: 760px; table-layout: fixed; }
.media-list-table .media-list-primary { width: 42%; }
.media-list-table .media-list-type { width: 112px; }
.media-list-table .media-list-date { width: 104px; }
.media-list-table .actions-column { width: 122px; }
.media-list-table time { white-space: nowrap; }
.media-list-table .comment-preview { overflow-wrap: anywhere; }
.media-list-link { color: inherit; }
.media-list-link strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.instagram-list-table .media-list-link strong { -webkit-line-clamp: 1; }
.media-list-link:hover strong, .media-list-link:focus-visible strong { color: var(--brand); }
.media-list-link small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-list-table .table-primary > span.media-list-thumb { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); width: 64px; height: 48px; flex: 0 0 auto; place-items: center; overflow: hidden; color: var(--muted); background: #f2f4f7; border: 1px solid var(--line); border-radius: 9px; }
.media-list-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-list-thumb .icon { width: 22px; height: 22px; }
.media-list-table .row-actions { position: relative; }
.media-list-table .icon-action[aria-pressed="true"] { color: var(--brand); background: var(--brand-soft); }
.media-type-icon { display: inline-grid; width: 34px; height: 34px; place-items: center; color: var(--muted); background: #f8f9fb; border: 1px solid var(--line); border-radius: 8px; }
.media-type-icon .icon { width: 17px; height: 17px; }
.media-title-line { display: inline-flex; max-width: 100%; align-items: center; gap: 8px; }
.media-title-line .media-type-icon { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 7px; }
.media-title-line .media-type-icon .icon { width: 14px; height: 14px; }
.media-title-line strong { min-width: 0; }
.youtube-list-table .media-list-link strong { -webkit-line-clamp: 1; }
.portfolio-table-visual { display: inline-flex; align-items: stretch; gap: 5px; flex: 0 0 auto; }
.portfolio-table-visual > i { width: 3px; flex: 0 0 auto; background: var(--portfolio-color); border-radius: 999px; }
.portfolio-table-category { color: #667085 !important; font-weight: 650; }
.category-badge { display: inline-flex; padding: 5px 8px; color: #475467; font-size: 10px; font-weight: 800; background: #f2f4f7; border-radius: 999px; }
.external-table-link { display: inline-flex; max-width: 190px; align-items: center; gap: 4px; overflow: hidden; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.external-table-link .icon { width: 13px; height: 13px; flex: 0 0 auto; transform: rotate(-45deg); }
.portfolio-color-field { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px; }
.portfolio-color-field input[type="color"] { width: 50px; min-height: 44px; padding: 4px; cursor: pointer; }
.portfolio-color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.portfolio-color-field input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 6px; }
.portfolio-category-combobox { position: relative; }
.portfolio-category-combobox > input { padding-right: 42px; }
.portfolio-category-combobox > button { position: absolute; top: 4px; right: 4px; display: grid; width: 36px; min-height: 36px; padding: 0; color: #667085; background: transparent; border: 0; border-radius: 8px; box-shadow: none; place-items: center; transform: none; }
.portfolio-category-combobox > button:hover, .portfolio-category-combobox > button:focus-visible { color: var(--brand); background: var(--brand-soft); box-shadow: none; transform: none; }
.portfolio-category-combobox > button .icon { width: 15px; height: 15px; transition: transform .16s ease; transform: rotate(90deg); }
.portfolio-category-field.is-open .portfolio-category-combobox > button .icon { transform: rotate(-90deg); }
.portfolio-category-options { position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 22; max-height: 270px; padding: 6px; overflow-y: auto; background: #fff; border: 1px solid #d9dce5; border-radius: 11px; box-shadow: 0 16px 38px rgba(16, 24, 40, .16); overscroll-behavior: contain; }
.portfolio-category-options > button { display: flex; width: 100%; min-height: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; color: #344054; background: transparent; border: 0; border-radius: 8px; box-shadow: none; text-align: left; transform: none; }
.portfolio-category-options > button:hover, .portfolio-category-options > button:focus-visible, .portfolio-category-options > button.is-selected { color: var(--brand); background: var(--brand-soft); box-shadow: none; transform: none; }
.portfolio-category-options > button > span { overflow: hidden; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-category-options > button > small { flex: 0 0 auto; color: #98a2b3; font-size: 8px; }
.portfolio-category-options .portfolio-category-new { margin-top: 4px; color: #315fd7; background: #f5f8ff; border-top: 1px solid #e0e7f5; }
.portfolio-category-options .portfolio-category-new > span { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 1px; }
.portfolio-category-options .portfolio-category-new small { color: #667085; font-size: 8px; font-weight: 700; }
.portfolio-category-options .portfolio-category-new strong { max-width: 100%; overflow: hidden; color: #315fd7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-category-options .portfolio-category-new .icon { width: 15px; height: 15px; flex: 0 0 auto; }
.portfolio-category-options > p { margin: 0; padding: 12px 10px; color: var(--muted); font-size: 10px; text-align: center; }
.portfolio-category-status { display: block; min-height: 14px; margin-top: 4px; color: #667085; font-size: 9px; }
.portfolio-category-status:empty { min-height: 0; margin-top: 0; }
.client-multi-field { position: relative; }
.client-multi-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.client-multi-label label { margin: 0; }
.client-multi-label > span { color: var(--brand); font-size: 10px; font-weight: 750; }
.client-multi-control { position: relative; display: flex; align-items: center; }
.client-multi-control > .icon { position: absolute; left: 12px; z-index: 1; width: 15px; height: 15px; color: var(--muted-light); pointer-events: none; }
.client-multi-control > input { padding-right: 45px; padding-left: 38px; }
.client-multi-control > button { position: absolute; right: 4px; display: grid; width: 36px; min-height: 36px; padding: 0; color: var(--brand); background: var(--brand-soft); border: 0; border-radius: 8px; box-shadow: none; place-items: center; transform: none; }
.client-multi-control > button:hover, .client-multi-control > button:focus-visible { color: #fff; background: var(--brand); box-shadow: none; transform: none; }
.client-multi-control > button .icon { width: 15px; height: 15px; transition: transform .16s ease; }
.client-multi-field.is-open .client-multi-control > button .icon { transform: rotate(45deg); }
.client-multi-options { position: absolute; z-index: 38; top: 74px; right: 0; left: 0; max-height: 290px; padding: 7px; overflow-y: auto; background: #fff; border: 1px solid #d9dce5; border-radius: 12px; box-shadow: 0 18px 42px rgba(16, 24, 40, .17); overscroll-behavior: contain; }
.client-multi-options > button { display: grid; width: 100%; min-height: 54px; grid-template-columns: 34px minmax(0, 1fr) 20px; align-items: center; gap: 10px; padding: 9px 10px; color: #344054; text-align: left; background: transparent; border: 0; border-radius: 9px; box-shadow: none; transform: none; }
.client-multi-options > button:hover, .client-multi-options > button:focus-visible { color: var(--brand); background: var(--brand-soft); box-shadow: none; transform: none; }
.client-multi-options > button > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.client-multi-options > button strong, .client-selected-card strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.client-multi-options > button small, .client-selected-card small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.client-multi-options > button > .icon { width: 15px; height: 15px; justify-self: end; }
.client-multi-options > p { margin: 0; padding: 18px 10px; color: var(--muted); font-size: 11px; text-align: center; }
.client-selected-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.client-selected-card { display: grid; min-width: 0; grid-template-columns: 34px minmax(0, 1fr) 30px; align-items: center; gap: 9px; padding: 9px 10px; background: linear-gradient(145deg, #fff, #f8f8ff); border: 1px solid #ddddf6; border-radius: 11px; box-shadow: 0 3px 10px rgba(71, 71, 189, .05); }
.client-selected-card > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.client-selected-card > button { display: grid; width: 30px; min-height: 30px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 8px; box-shadow: none; place-items: center; transform: none; }
.client-selected-card > button:hover, .client-selected-card > button:focus-visible { color: #c2414f; background: #fff0f2; box-shadow: none; transform: none; }
.client-selected-card > button .icon { width: 14px; height: 14px; }
.client-selected-empty { grid-column: 1 / -1; margin: 0; padding: 18px; color: var(--muted); font-size: 11px; text-align: center; background: #fafbfc; border: 1px dashed var(--line-strong); border-radius: 11px; }
.client-multi-feedback { display: block; min-height: 15px; margin-top: 5px; color: var(--muted); font-size: 10px; }
.client-multi-feedback:empty { min-height: 0; margin-top: 0; }

/* Cadastro e edição de usuários */
.access-user-form .access-identity-section { padding-block: 28px; }
.access-user-form .access-identity-grid { column-gap: 20px; row-gap: 22px; }
.access-user-form .access-identity-grid .field label { margin-bottom: 9px; }
.access-user-form .access-identity-grid .field small { margin-top: 9px; line-height: 1.45; }
.access-user-form .access-clients-section { padding-block: 27px 30px; }
.access-user-form .client-multi-field { display: grid; gap: 12px; margin: 0; }
.access-user-form .client-multi-label,
.access-user-form .client-selected-list,
.access-user-form .client-multi-feedback { margin-top: 0; margin-bottom: 0; }
.access-user-form .client-multi-options { top: 77px; }
.access-user-form .client-selected-list { gap: 12px; padding-top: 2px; }
.access-user-form .client-selected-card { min-height: 60px; padding: 11px 12px; }
.access-user-form .client-selected-empty { padding-block: 22px; }
.access-user-form .form-actions { padding: 18px 28px; }
.form-card input[readonly] { color: #667085; background: #f8f9fb; cursor: default; }
.access-linked-clients { padding: 18px 22px; border-top: 1px solid var(--line); }
.access-linked-clients > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.access-linked-clients > div > span { display: inline-flex; min-width: 180px; align-items: center; gap: 8px; padding: 7px 10px; background: #f8f8ff; border: 1px solid #e0e0f5; border-radius: 10px; }
.access-linked-clients > div > span > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.access-linked-clients strong { overflow: hidden; color: #344054; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.access-linked-clients small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.portfolio-detail { overflow: hidden; }
.portfolio-detail-cover { position: relative; height: clamp(220px, 34vw, 430px); margin: -1px -1px 0; overflow: hidden; background: var(--portfolio-accent); }
.portfolio-detail-cover::after { position: absolute; inset: auto 0 0; height: 45%; content: ""; background: linear-gradient(transparent, rgba(9, 16, 29, .36)); pointer-events: none; }
.portfolio-detail-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portfolio-detail-hero { margin-inline: 22px; }
.portfolio-icon-image { display: block; width: 64px; height: 64px; flex: 0 0 auto; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.portfolio-detail-content { display: grid; grid-template-columns: minmax(210px, 320px) minmax(0, 1fr); align-items: start; gap: 22px; padding: 0 22px 22px; }
.portfolio-detail-thumbnail { overflow: hidden; background: #f2f4f7; border: 1px solid var(--line); border-radius: 12px; }
.portfolio-detail-thumbnail img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.portfolio-detail-content .review-comment { margin: 0; }
.portfolio-detail-content .button { margin-top: 16px; }

/* Configurações do site */
.site-settings-form .form-section { padding-block: 24px; }
.settings-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.settings-section-heading h2 { margin: 0; font-size: 16px; }
.settings-section-heading p { margin: 3px 0 0; font-size: 12px; }
.settings-section-icon { display: inline-grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 10px; }
.settings-section-icon .icon { width: 19px; height: 19px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.field-label-row label { margin: 0; }
.field-label-row > span { color: var(--muted-light); font-size: 11px; font-weight: 700; }
.field-label-row.is-at-limit > span { color: var(--danger); }
.settings-image-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 14px; }
.settings-image-item { min-width: 0; padding: 14px; background: #fcfcfd; border: 1px solid var(--line); border-radius: 13px; }
.settings-image-item .field { margin-bottom: 0; }
.settings-image-item .image-upload-card { grid-template-columns: 96px minmax(0, 1fr); padding: 10px; }
.settings-image-item .image-upload-preview { width: 96px; max-height: 96px; }
.settings-image-item .option-check { margin-top: 12px; }
.settings-noindex { padding: 16px; background: var(--warning-bg); border-color: #fedf89; }
.settings-empty .button { margin-top: 12px; }
.site-settings-summary { padding: 0; overflow: hidden; }
.settings-brand-preview { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 22px; background: linear-gradient(135deg, #111827, #1f2937); }
.settings-brand-preview h2 { margin: 3px 0; color: #fff; font-size: 23px; }
.settings-brand-preview p { margin: 0; color: #98a2b3; }
.settings-logo-preview { display: grid; height: 88px; place-items: center; overflow: hidden; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; }
.settings-logo-preview img { display: block; width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.settings-logo-preview span { color: #98a2b3; }
.settings-favicon-preview { display: block; width: 58px; height: 58px; object-fit: cover; border-radius: 13px; box-shadow: 0 8px 20px rgba(0, 0, 0, .24); }
.settings-seo-preview { max-width: 760px; padding: 22px; }
.settings-seo-preview .settings-preview-label { display: block; margin-bottom: 12px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.settings-seo-preview strong { display: block; color: #1a0dab; font: 400 20px/1.3 Arial, sans-serif; }
.settings-seo-preview > span:not(.settings-preview-label) { display: block; margin-top: 4px; color: #006621; font-size: 12px; }
.settings-seo-preview p { margin: 5px 0 0; color: #4d5156; font: 400 13px/1.45 Arial, sans-serif; }
.settings-share-preview { position: relative; max-width: 580px; margin: 0 22px 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.settings-share-preview img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.settings-share-preview span { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; color: #fff; font-size: 9px; font-weight: 750; background: rgba(9, 16, 29, .72); border-radius: 6px; }
.settings-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.settings-list { margin: 0; }
.settings-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.settings-list > div:last-child { border-bottom: 0; }
.settings-list dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.settings-list dd { margin: 0; text-align: right; font-size: 12px; font-weight: 650; }
.settings-list code { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-social-links a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; color: #344054; font-size: 11px; font-weight: 750; background: #f9fafb; border: 1px solid var(--line); border-radius: 9px; }
.settings-social-links a:hover { color: var(--brand); border-color: #c7c7f4; }
.settings-social-links a .icon { width: 13px; height: 13px; transform: rotate(-45deg); }
.settings-social-links p { margin: 0; font-size: 12px; }
.settings-footer-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.settings-footer-card > div { display: flex; flex-direction: column; gap: 5px; }
.settings-footer-card > div:last-child { text-align: right; }

@media (max-width: 840px) {
    .sidebar-collapse { display: none; }
    .sidebar-collapsed .sidebar { width: min(310px, 88vw); padding: 15px 14px 14px; }
    .sidebar-collapsed .admin-main { width: 100%; margin-left: 0; }
    .sidebar-collapsed .sidebar-header { justify-content: space-between; padding: 0 8px; }
    .sidebar-collapsed .brand-logo, .sidebar-collapsed .client-context .context-label, .sidebar-collapsed .context-client > span:last-child,
    .sidebar-collapsed .context-switch, .sidebar-collapsed .nav-label, .sidebar-collapsed .nav-item > span, .sidebar-collapsed .user-copy { display: flex; }
    .sidebar-collapsed .brand-logo { display: block; }
    .sidebar-collapsed .brand-symbol { display: none; }
    .sidebar-collapsed .client-context { display: block; margin: 18px 0 16px; padding: 12px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .08); }
    .sidebar-collapsed .sidebar-nav { align-items: stretch; margin-top: 18px; }
    .sidebar-collapsed .nav-section { width: 100%; align-items: stretch; }
    .sidebar-collapsed .nav-section-divider { width: calc(100% - 16px); margin: 12px 8px 14px; }
    .sidebar-collapsed .workspace-navigation-heading { width: 100%; margin-bottom: 5px; }
    .sidebar-collapsed .workspace-current { width: 100%; justify-content: flex-start; padding: 6px 8px; }
    .sidebar-collapsed .workspace-current strong { display: block; }
    .sidebar-collapsed .workspace-current-action { display: inline-grid; }
    .sidebar-collapsed .nav-group { width: 100%; max-width: 100%; }
    .sidebar-collapsed .nav-item { width: auto; justify-content: flex-start; padding: 0 12px; }
    .sidebar-collapsed .nav-submenu { width: calc(100% - 19px); max-width: calc(100% - 19px); margin: 3px 0 5px 19px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .11); }
    .sidebar-collapsed .nav-child { width: auto; justify-content: flex-start; padding-left: 10px; }
    .sidebar-collapsed .sidebar-footer { flex-direction: row; padding: 15px 6px 2px; }
    .global-context { top: 64px; min-height: 54px; gap: 14px; padding-inline: 20px; overflow-x: auto; }
    .global-context-item.client, .global-context-item.domain { min-width: max-content; }
    .global-context-separator { height: 24px; }
    .integration-overview-grid { grid-template-columns: 1fr; }
    .integration-general-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .integration-general-grid article:nth-child(3n) { border-right: 1px solid var(--line); }
    .integration-general-grid article:nth-child(2n) { border-right: 0; }
    .integration-general-grid article:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
    .integration-general-grid article:nth-last-child(-n + 2) { border-bottom: 0; }
    .integration-resource > summary { grid-template-columns: 36px minmax(0, 1fr) auto 20px; }
    .integration-resource-url { display: none; }
}

@media (max-width: 700px) {
    .workspace-selector-page { min-height: calc(100vh - 120px); place-items: start center; }
    .workspace-selector-header { padding: 18px; }
    .pagination-bar { align-items: stretch; flex-direction: column; }
    .crud-toolbar { align-items: center; }
    .pagination { justify-content: center; }
    .form-section { padding: 20px; }
    .form-grid-12 > [class*="form-col-"] { grid-column: 1 / -1; }
    .access-user-form .access-identity-section,
    .access-user-form .access-clients-section { padding: 22px 20px; }
    .access-user-form .access-identity-grid { row-gap: 19px; }
    .access-user-form .client-selected-list { grid-template-columns: 1fr; }
    .access-user-form .form-actions { padding: 16px 20px; }
    .grid.two, .detail-grid { grid-template-columns: 1fr; }
    .audit-values { grid-template-columns: 1fr; padding-inline: 20px; }
    .detail-grid > div { padding-top: 14px; }
    .detail-actions, .form-actions { flex-wrap: wrap; }
    .detail-actions .button, .detail-actions form, .detail-actions form .button { width: 100%; }
    .danger-zone { align-items: stretch; flex-direction: column; margin-inline: 16px; }
    .danger-zone .button { width: 100%; }
    .image-editor-modal { padding: 0; }
    .image-editor-dialog { width: 100%; max-height: 100vh; border-radius: 0; }
    .image-editor-body { display: block; overflow-y: auto; }
    .image-editor-workspace { min-height: 280px; padding: 14px; }
    .image-editor-controls { overflow: visible; padding: 16px; border-top: 1px solid var(--line); border-left: 0; }
    .image-editor-footer { align-items: stretch; flex-direction: column; }
    .image-editor-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
    .integration-module-list > div { grid-template-columns: 36px minmax(0, 1fr) auto; }
    .integration-module-list code { display: none; }
    .integration-documentation-header, .integration-resource-intro, .integration-action-header { align-items: stretch; flex-direction: column; }
    .integration-documentation-header .button, .integration-resource-intro .button { width: 100%; }
    .integration-action-header > code { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
    .integration-example-grid, .integration-image-profile-grid { grid-template-columns: 1fr; }
    .integration-guide-body { padding-left: 18px; }
    .integration-complete-card { grid-template-columns: 42px minmax(0, 1fr); }
    .integration-complete-card .button { width: 100%; grid-column: 1 / -1; }
    .portfolio-media-grid, .portfolio-detail-content { grid-template-columns: 1fr; }
    .portfolio-detail-cover { height: clamp(190px, 54vw, 320px); }
    .portfolio-detail-hero { margin-inline: 16px; }
    .portfolio-detail-content { padding-inline: 16px; }
    .settings-image-grid { grid-template-columns: 1fr; }
    .settings-summary-grid { grid-template-columns: 1fr; }
    .settings-brand-preview { grid-template-columns: 110px minmax(0, 1fr) auto; padding: 16px; }
    .settings-logo-preview { height: 70px; }
    .domain-environment-options { grid-template-columns: 1fr; }
    .domain-environment-option { min-height: 72px; }
    .domain-form-top-grid { grid-template-columns: 1fr; gap: 0; }
    .invitation-card { padding: 22px 18px; }
    .invitation-url { grid-template-columns: 1fr; }
    .invitation-url .button { width: 100%; }
    .invitation-card .form-actions { width: calc(100% + 36px); margin: 2px -18px -22px; }
}

@media (max-width: 480px) {
    .client-selected-list { grid-template-columns: 1fr; }
    .smart-link-bar { grid-template-columns: 42px minmax(0, 1fr) 102px; }
    .smart-link-side-button { width: 41px; }
    .smart-link-target-button { width: 100%; padding-inline: 8px; font-size: 9px; }
    .smart-link-bar > input { padding-inline: 9px; font-size: 11px; }
    .smart-link-content-modal { padding: 10px; }
    .smart-link-content-dialog { max-height: calc(100vh - 20px); border-radius: 15px; }
    .smart-link-content-dialog > header, .smart-link-content-body, .smart-link-content-dialog > footer { padding-inline: 15px; }
    .smart-link-content-dialog > footer { align-items: stretch; flex-direction: column-reverse; }
    .smart-link-content-dialog > footer .button { width: 100%; }
    .integration-setting { grid-template-columns: 36px minmax(0, 1fr); }
    .integration-setting > :last-child { grid-column: 2; justify-self: start; }
    .integration-general-grid { grid-template-columns: 1fr; }
    .integration-general-grid article, .integration-general-grid article:nth-child(2n), .integration-general-grid article:nth-child(3n), .integration-general-grid article:nth-last-child(-n + 2), .integration-general-grid article:nth-last-child(-n + 3) { border-right: 0; border-bottom: 1px solid var(--line); }
    .integration-general-grid article:last-child { border-bottom: 0; }
    .integration-resource > summary { grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 10px; padding-inline: 14px; }
    .integration-resource > summary .badge { display: none; }
    .integration-resource-body { padding: 14px; }
    .integration-guide > summary { padding-inline: 14px; }
    .integration-guide-body { padding: 14px; }
    .integration-fact-grid { grid-template-columns: 1fr; }
    .integration-variant-list li { grid-template-columns: 54px minmax(0, 1fr); }
    .integration-variant-list li small { grid-column: 2; }
    .image-upload-card { grid-template-columns: 82px minmax(0, 1fr); gap: 11px; padding: 10px; }
    .image-upload-preview { width: 82px; min-height: 72px; max-height: 82px; }
    .image-upload-actions .button { width: 100%; }
    .image-upload-actions .button.ghost { justify-content: flex-start; padding-left: 3px; }
    .image-editor-header { padding: 15px 16px 13px; }
    .image-editor-header h2 { font-size: 18px; }
    .image-editor-header p { max-width: 280px; font-size: 10px; }
    .image-editor-workspace { min-height: 240px; }
    .image-editor-tip { margin-top: 9px; font-size: 9px; }
    .image-editor-footer { padding: 11px 14px; }
    .settings-brand-preview { grid-template-columns: 1fr auto; }
    .settings-logo-preview { grid-column: 1 / -1; }
    .settings-footer-card { align-items: flex-start; flex-direction: column; }
    .settings-footer-card > div:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .global-loading-modal, .global-loading-card { transition: none; }
    .global-loading-spinner { animation-duration: 1.4s; }
    .alert.success > span { animation: none; }
    .domain-environment-option { transition: none; }
}

@media (max-width: 840px) {
    .module-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .module-card-grid { grid-template-columns: 1fr; }
    .module-manager-footer { align-items: stretch; flex-direction: column-reverse; }
    .module-manager-footer .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .module-card { transition: none; }
    .module-card.is-saving { animation: none; }
}

/* Configurações técnicas e identidade do site */
.settings-category-stack { display: grid; gap: 16px; }
.settings-category { padding: 0; overflow: hidden; }
.settings-category-header { display: flex; align-items: flex-start; gap: 13px; padding: 20px 22px; background: linear-gradient(180deg, #fff, #fcfcfe); border-bottom: 1px solid var(--line); }
.settings-category-header .eyebrow { display: block; margin: 1px 0 3px; font-size: 9px; }
.settings-category-header h2 { margin: 0; color: #1d2939; font-size: 17px; }
.settings-category-header p { margin: 4px 0 0; font-size: 11px; }
.settings-category-body { padding: 20px 22px 22px; }
.settings-image-grid-brand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-image-grid-brand .settings-image-item { padding: 13px; }
.settings-format-priority { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; padding: 11px 13px; color: #36524a; background: #f4fbf8; border: 1px solid #d4e9df; border-radius: 11px; }
.settings-format-priority > .icon { width: 17px; height: 17px; flex: 0 0 auto; color: #087a55; }
.settings-format-priority > span { display: flex; flex-direction: column; gap: 1px; }
.settings-format-priority strong { font-size: 11px; }
.settings-format-priority small { color: #5e746d; font-size: 9px; }
.settings-brand-asset > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.settings-brand-asset > header strong { color: #283347; font-size: 12px; }
.settings-brand-asset > header span { padding: 3px 7px; color: var(--brand); background: var(--brand-soft); border-radius: 999px; font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.settings-brand-asset .image-upload-field { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.settings-brand-asset .image-upload-help { font-size: 9px; }
.svg-upload-field { margin: 13px 0 0 !important; }
.svg-upload-field > label small { display: inline; margin: 0; color: #087a55; font-weight: 650; }
.svg-upload-card { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 11px; padding: 9px; background: #f8fbfa; border: 1px dashed #b8d9cd; border-radius: 11px; transition: border-color .16s ease, background .16s ease; }
.svg-upload-card:hover { background: #f3faf7; border-color: #68ae96; }
.svg-upload-preview { display: grid; width: 74px; height: 58px; min-height: 0; padding: 0; overflow: hidden; place-items: center; color: #087a55; background: #e8f5f0; border: 1px solid #cbe6dc; border-radius: 9px; box-shadow: none; }
.svg-upload-preview:hover { background: #def0e9; transform: none; box-shadow: none; }
.svg-upload-preview img { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.svg-upload-preview .icon { width: 22px; height: 22px; }
.svg-upload-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.svg-upload-copy strong { overflow: hidden; max-width: 100%; color: #344054; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.svg-upload-copy > span { margin: 2px 0 8px; color: var(--muted); font-size: 9px; }
.svg-upload-copy .button { min-height: 31px; }
.svg-upload-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.svg-upload-actions .svg-upload-remove { color: var(--muted); }
.svg-upload-actions .svg-upload-remove:hover, .svg-upload-actions .svg-upload-remove:focus-visible { color: #fff; background: var(--danger); }
.svg-upload-actions .svg-upload-remove.is-active { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-line); }
.svg-upload-actions .svg-upload-remove.is-active:hover, .svg-upload-actions .svg-upload-remove.is-active:focus-visible { color: #fff; background: var(--danger); border-color: var(--danger); }
.svg-upload-help { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }
.svg-upload-feedback { display: block; min-height: 16px; margin-top: 3px; color: var(--success); font-size: 9px; font-weight: 650; }
.svg-upload-feedback:empty { display: none; }
.svg-upload-feedback.is-error { color: var(--danger); }
.settings-image-item.is-dark-surface .image-upload-preview { color: #dbeafe; background: linear-gradient(145deg, #18243d, #0b1020); border-color: #263653; }
.settings-image-item.is-dark-surface .image-upload-preview:hover { background: linear-gradient(145deg, #22304d, #10172a); }
.settings-image-item.is-dark-surface .svg-upload-preview { color: #dbeafe; background: linear-gradient(145deg, #18243d, #0b1020); border-color: #263653; }
.settings-image-item.is-dark-surface .svg-upload-preview:hover { background: linear-gradient(145deg, #22304d, #10172a); }
.settings-seo-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); align-items: start; gap: 22px; }
.settings-seo-fields { min-width: 0; }
.settings-seo-aside { display: grid; min-width: 0; gap: 14px; }
.settings-seo-live-preview { padding: 17px; overflow: hidden; background: #fbfcfe; border: 1px solid var(--line); border-radius: 13px; }
.settings-seo-live-preview > span, .settings-preview-label { display: block; margin-bottom: 12px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.settings-google-source { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.settings-google-favicon { display: inline-grid; width: 28px; height: 28px; overflow: hidden; place-items: center; flex: 0 0 auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 50%; }
.settings-google-favicon img { width: 100%; height: 100%; padding: 3px; object-fit: contain; }
.settings-google-favicon i { display: inline-grid; width: 100%; height: 100%; place-items: center; color: #fff; background: linear-gradient(135deg, #1a73e8, #6b5cf6); font: 700 11px/1 Arial, sans-serif; font-style: normal; }
.settings-google-favicon [hidden] { display: none !important; }
.settings-google-copy { display: flex; min-width: 0; flex-direction: column; }
.settings-google-source b { overflow: hidden; color: #202124; font: 500 11px/1.25 Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.settings-google-source small { margin-top: 1px; color: #4d5156; }
.settings-seo-live-preview strong { display: block; overflow: hidden; color: #1a0dab; font: 400 18px/1.25 Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.settings-seo-live-preview small { display: block; margin-top: 3px; color: #188038; font: 400 11px/1.3 Arial, sans-serif; }
.settings-seo-live-preview p { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: #4d5156; font: 400 12px/1.45 Arial, sans-serif; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.settings-seo-index-status { margin-top: 10px; padding: 7px 9px; color: #854a0e; background: #fffaeb; border: 1px solid #fedf89; border-radius: 7px; font-size: 9px; }
.settings-seo-index-status[hidden] { display: none; }
.settings-share-image { padding: 14px; background: #fcfcfd; border: 1px solid var(--line); border-radius: 13px; }
.settings-share-image .field { margin: 0; }
.settings-share-image .image-upload-card { grid-template-columns: 112px minmax(0, 1fr); }
.settings-share-image .image-upload-preview { width: 112px; }
.settings-noindex { margin-top: 4px; background: #fffdf7; border-color: #f5dfae; }
.settings-form-actions { margin-top: 16px; border-top-color: var(--line); }
.settings-form-actions .button { min-width: 174px; }
.settings-form-actions [data-settings-continue-arrow] { display: inline-flex; }
.settings-form-actions [data-settings-continue-arrow][hidden] { display: none; }
@media (max-width: 980px) {
    .settings-seo-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .settings-category-header, .settings-category-body { padding-inline: 17px; }
    .settings-image-grid-brand { grid-template-columns: 1fr; }
    .settings-form-actions .button { width: 100%; }
}

@media (max-width: 480px) {
    .settings-category-header { padding-block: 17px; }
    .settings-category-body { padding-block: 16px 18px; }
    .settings-image-item, .settings-share-image { padding: 10px; }
    .settings-share-image .image-upload-card { grid-template-columns: 82px minmax(0, 1fr); }
    .settings-share-image .image-upload-preview { width: 82px; }
}

/* Central de configurações globais */
.settings-section-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-bottom: 14px; padding: 5px; overflow-x: auto; }
.settings-section-tabs button { display: inline-flex; min-width: 112px; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; box-shadow: none; font-size: 11px; font-weight: 750; white-space: nowrap; }
.settings-section-tabs button:hover { color: #344054; background: #f8f8fd; transform: none; box-shadow: none; }
.settings-section-tabs button[aria-selected="true"] { color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(78, 70, 229, .1); }
.settings-section-tabs button:focus-visible { outline: 3px solid rgba(78, 70, 229, .16); outline-offset: 1px; }
.settings-section-tabs .icon { width: 16px; height: 16px; }
.settings-category-stack { min-height: 360px; }
.settings-category[hidden] { display: none !important; }
.settings-essential-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); align-items: start; gap: 24px; }
.settings-preview-stack { display: grid; min-width: 0; gap: 13px; }
.settings-social-preview { overflow: hidden; background: #fff; border: 1px solid #dfe3e8; border-radius: 13px; }
.social-preview-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; background: #fafbfc; border-bottom: 1px solid #e9ecef; }
.social-preview-label span { color: #344054; font-size: 10px; font-weight: 800; }
.social-preview-label small { color: var(--muted-light); font-size: 8px; }
.social-preview-media { display: grid; width: 100%; aspect-ratio: 1200 / 630; max-height: 230px; place-items: center; overflow: hidden; color: #98a2b3; background: linear-gradient(145deg, #f2f4f7, #e4e7ec); }
.social-preview-media img { width: 100%; height: 100%; object-fit: cover; }
.social-preview-media > span { display: inline-grid; place-items: center; }
.social-preview-media .icon { width: 30px; height: 30px; }
.social-preview-copy { padding: 11px 13px 13px; }
.social-preview-copy > small { display: block; overflow: hidden; color: #65676b; font-size: 8px; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.social-preview-copy > small span { display: inline; }
.social-preview-copy strong { display: block; margin-top: 3px; overflow: hidden; color: #1c1e21; font: 650 13px/1.3 Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.social-preview-copy p { display: -webkit-box; margin: 3px 0 0; overflow: hidden; color: #65676b; font: 400 10px/1.4 Arial, sans-serif; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.settings-social-preview.facebook .social-preview-copy { background: #f0f2f5; }
.settings-social-preview.whatsapp { padding-bottom: 12px; background: #e7f0e7; border-color: #d2dfd2; }
.settings-social-preview.whatsapp .social-preview-label { background: #f5faf5; border-color: #d9e5d9; }
.whatsapp-preview-bubble { width: calc(100% - 24px); margin: 12px 12px 0; overflow: hidden; background: #fff; border-radius: 9px; box-shadow: 0 1px 2px rgba(17, 27, 33, .13); }
.whatsapp-preview-bubble .social-preview-media { max-height: 165px; }
.whatsapp-preview-bubble .social-preview-copy strong { color: #111b21; }
.whatsapp-preview-bubble .social-preview-copy > small { margin-top: 6px; color: #667781; text-transform: lowercase; }
.settings-integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.settings-integration-grid.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.settings-integration-category + .settings-integration-category { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.settings-integration-category-heading { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.settings-integration-category-heading > span { display: inline-grid; width: 36px; height: 36px; flex-shrink: 0; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 10px; }
.settings-integration-category-heading h3 { margin: 0; font-size: 14px; }
.settings-integration-category-heading p { margin: 2px 0 0; font-size: 11px; }
.settings-instagram-heading { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.integration-secret-control { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.integration-secret-control > input { flex: 1 1 0; min-width: 0; }
.integration-secret-control > .icon-action { flex: 0 0 43px; width: 43px; height: auto; min-height: 43px; }
.integration-secret-control > .icon-action[aria-pressed="true"] { color: var(--danger); background: var(--danger-bg); }
[data-instagram-token-feedback]:empty, [data-youtube-feedback]:empty, [data-spotify-feedback]:empty, [data-agenda-feedback]:empty { display: none; }
[data-spotify-feedback] { overflow-wrap: anywhere; }
.youtube-connection { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border, #e3e6ee); }
.spotify-connection { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border, #e3e6ee); }
.agenda-connection { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border, #e3e6ee); }
.integration-test-field .button { width: 100%; min-height: 43px; justify-content: center; }
.module-settings-modal [data-module-structured-fields] label.modern-switch { display: flex; margin-bottom: 0; }
.module-settings-modal .optional { margin-left: .25em; }
.youtube-status { margin-bottom: 16px; }
.youtube-status p { margin: 0; font-size: 12px; }
.youtube-type-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.youtube-type-filter { padding: 8px 16px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.youtube-type-filter:hover, .youtube-type-filter:focus-visible { color: var(--brand); background: var(--brand-soft); }
.youtube-type-filter.is-active { color: var(--brand); background: var(--brand-soft); border-color: var(--line); }
[data-youtube-sync-form].is-syncing .icon { animation: spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { [data-youtube-sync-form].is-syncing .icon { animation: none; } }
.youtube-feature[aria-pressed="true"] svg { fill: currentColor; }
.spotify-list-table .actions-column { width: 150px; }
.spotify-actions form { margin: 0; }
.youtube-feedback { padding: 10px 14px; margin-bottom: 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 12px; }
.youtube-feedback.is-error { color: #b54149; }
@media (max-width: 600px) {
    .crud-toolbar { align-items: stretch; flex-direction: column; }
    .crud-toolbar-leading, .crud-toolbar-actions { width: 100%; }
    .crud-toolbar-leading { justify-content: flex-start; }
    .crud-toolbar-actions { justify-content: flex-end; }
    .youtube-type-filters { width: 100%; }
    .youtube-type-filter { flex: 1 1 0; text-align: center; }
}
.settings-integration-note, .settings-integration-notice { font-size: 11px; line-height: 1.6; }
.settings-integration-note code { overflow-wrap: anywhere; }
.settings-integration-notice { padding: 10px 12px; color: var(--warning); background: var(--warning-bg); border-radius: 9px; }
.instagram-feed-status { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.instagram-feed-status > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.instagram-feed-status p { flex-basis: 100%; margin: 0; font-size: 12px; }
.settings-integration-field { padding: 13px; background: #fcfcfd; border: 1px solid var(--line); border-radius: 11px; }
.settings-subsection-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.settings-subsection-heading.divided { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.settings-subsection-heading > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.settings-subsection-heading > strong { color: #344054; font-size: 12px; }
.settings-subsection-heading > div > strong { color: #344054; font-size: 12px; }
.settings-subsection-heading > div > small { color: var(--muted); font-size: 10px; }
.google-ads-conversion-warning { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px; padding: 10px 12px; color: #8a4b13; background: #fffaeb; border: 1px solid #fedf89; border-radius: 10px; font-size: 10px; line-height: 1.45; }
.google-ads-conversion-warning[hidden] { display: none; }
.google-ads-conversion-warning .icon { width: 16px; height: 16px; flex: 0 0 auto; }
.google-ads-conversion-list { display: grid; gap: 10px; }
.google-ads-conversion-row { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(210px, 1fr) minmax(220px, 1.1fr) auto; align-items: end; gap: 10px; padding: 12px; background: #fcfcfd; border: 1px solid var(--line); border-radius: 12px; }
.google-ads-conversion-row .field { min-width: 0; margin: 0; }
.google-ads-conversion-controls { display: flex; min-height: 43px; align-items: center; gap: 5px; }
.google-ads-conversion-status { min-height: 43px; padding: 7px 9px; border-radius: 9px; }
.google-ads-conversion-status .switch-track { width: 36px; height: 20px; }
.google-ads-conversion-status .switch-track::after { top: 3px; left: 3px; width: 14px; height: 14px; }
.google-ads-conversion-status input:checked + .switch-track::after { transform: translateX(16px); }
.google-ads-conversion-status .switch-copy strong { min-width: 38px; font-size: 10px; }
.google-ads-conversion-controls > .icon-action { width: 38px; height: 43px; min-height: 43px; }
.settings-company-grid { gap: 14px; }
.field-validation-feedback:empty { display: none; }
.field-validation-feedback { min-height: 16px; color: var(--muted-light); font-weight: 650; }
.field-validation-feedback.is-success { color: #067647; }
.field-validation-feedback.is-warning { color: #a15c07; }
.field-validation-feedback.is-error { color: var(--danger); }
@media (max-width: 1100px) {
    .google-ads-conversion-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .google-ads-conversion-controls { justify-content: flex-end; }
}
.field-validation-feedback.is-loading { display: flex; align-items: center; gap: 7px; color: var(--brand); }
.field-validation-feedback.is-loading::before { width: 11px; height: 11px; border: 2px solid rgba(78, 70, 229, .2); border-top-color: currentColor; border-radius: 50%; content: ""; animation: spin .7s linear infinite; }
.site-settings-form input[data-field-rule]:user-invalid { border-color: #e5a6a0; box-shadow: 0 0 0 3px rgba(180, 35, 24, .08); }
.site-settings-form input[data-field-rule]:user-valid { border-color: #9bd3b6; }
.settings-contact-collections { display: grid; gap: 14px; }
.settings-collection { overflow: hidden; background: #fcfcfd; border: 1px solid var(--line); border-radius: 12px; }
.settings-collection-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #f8f9fc; border-bottom: 1px solid var(--line); }
.settings-collection-header > div { display: flex; align-items: center; gap: 8px; }
.settings-collection-header strong { color: #344054; font-size: 11px; }
.settings-collection-header [data-collection-count] { display: inline-grid; min-width: 20px; height: 20px; padding: 0 5px; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 999px; font-size: 9px; font-weight: 800; }
.settings-collection-header .icon-action { width: 30px; height: 30px; min-height: 30px; }
.settings-collection-list, .settings-social-list { display: grid; }
.settings-contact-row { display: grid; grid-template-columns: minmax(130px, .55fr) minmax(220px, 1fr) auto 34px; align-items: end; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.settings-contact-row:last-child { border-bottom: 0; }
.settings-contact-row .field, .settings-social-row .field { margin: 0; }
.settings-primary-choice { display: inline-flex; min-height: 43px; align-items: center; cursor: pointer; }
.settings-primary-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.settings-primary-choice span { display: inline-flex; min-height: 34px; align-items: center; gap: 5px; padding: 7px 9px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 9px; font-weight: 750; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.settings-primary-choice .icon { width: 13px; height: 13px; }
.settings-primary-choice input:checked + span { color: #9a6700; background: #fffaeb; border-color: #fedf89; }
.settings-primary-choice input:focus-visible + span { outline: 3px solid rgba(78, 70, 229, .16); outline-offset: 1px; }
.settings-contact-row > .icon-action, .settings-social-row > .icon-action { align-self: end; width: 34px; height: 43px; min-height: 43px; }
.settings-collection-empty { padding: 17px; color: var(--muted-light); font-size: 10px; text-align: center; }
.settings-collection-empty[hidden] { display: none; }
.settings-social-list { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.settings-social-row { display: grid; grid-template-columns: minmax(130px, .75fr) minmax(130px, .75fr) minmax(220px, 1.5fr) 82px 34px; align-items: end; gap: 10px; padding: 12px; background: #fcfcfd; border-bottom: 1px solid var(--line); }
.settings-social-row:last-child { border-bottom: 0; }
.settings-social-row:not(.is-other) .settings-social-url { grid-column: 2 / span 2; }
.settings-social-row [hidden] { display: none; }

@media (max-width: 980px) {
    .settings-essential-layout { grid-template-columns: 1fr; }
    .settings-preview-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-seo-live-preview { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .settings-section-tabs { display: flex; }
    .settings-section-tabs button { flex: 0 0 auto; }
    .settings-preview-stack, .settings-integration-grid, .settings-integration-grid.three-columns { grid-template-columns: 1fr; }
    .settings-subsection-heading { align-items: stretch; flex-direction: column; }
    .settings-subsection-heading .button { width: 100%; }
    .google-ads-conversion-row { grid-template-columns: 1fr; }
    .google-ads-conversion-controls { justify-content: space-between; }
    .settings-seo-live-preview { grid-column: auto; }
    .settings-contact-row, .settings-social-row { grid-template-columns: 1fr; align-items: stretch; }
    .settings-social-row:not(.is-other) .settings-social-url { grid-column: auto; }
    .settings-primary-choice { min-height: 34px; }
    .settings-contact-row > .icon-action, .settings-social-row > .icon-action { width: 100%; height: 36px; min-height: 36px; }
}

@media (max-width: 700px) {
    .module-search-modal, .module-settings-modal { padding: 10px; }
    .module-settings-dialog { max-height: calc(100vh - 20px); border-radius: 15px; }
    .module-settings-grid, .module-image-field-header, .module-image-variant-list { grid-template-columns: 1fr; }
    .module-image-dimensions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .module-settings-section-heading { align-items: flex-start; }
    .module-image-primary-controls { justify-content: space-between; }
    .module-image-variations-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
}

@media (max-width: 480px) {
    .module-card-grid { grid-template-columns: 1fr; padding: 11px; }
    .module-card { padding: 13px; }
    .module-modal-header, .module-settings-body, .module-search-body { padding-inline: 16px; }
    .module-settings-footer { padding-inline: 16px; }
    .module-settings-footer .button { flex: 1; padding-inline: 10px; }
    .module-image-primary-controls { align-items: stretch; flex-direction: column; }
    .module-image-variant { grid-template-columns: 1fr; }
    .module-image-variant-dimensions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .temporary-domain-control { display: block; overflow: visible; border: 0; background: transparent; }
    .temporary-domain-control > span { min-height: 36px; border: 1px solid #d0d5dd; border-bottom: 0; border-radius: 10px 10px 0 0; }
    .temporary-domain-control input { width: 100%; border: 1px solid #d0d5dd; border-radius: 0 0 10px 10px; }
    .temporary-domain-control input:focus { border: 1px solid var(--brand); box-shadow: 0 0 0 3px rgba(78, 70, 229, .11); }
}

/* Atividades e visualização de auditoria */
.activity-table { min-width: 880px; table-layout: fixed; }
.activity-table th:nth-child(1) { width: 20%; }
.activity-table th:nth-child(2) { width: 23%; }
.activity-table th:nth-child(3) { width: 20%; }
.activity-table th:nth-child(4) { width: 37%; }
.activity-cell { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.activity-cell strong { overflow: hidden; color: #344054; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.activity-cell small { color: var(--muted); font-size: 10px; }
.activity-date strong { font-variant-numeric: tabular-nums; }
.activity-date small { color: #667085; }
.activity-event-cell { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 13px; }
.activity-event-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 5px; }
.activity-event-copy code { width: fit-content; max-width: 100%; overflow: hidden; color: #4f46c7; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.activity-event-copy small { display: -webkit-box; overflow: hidden; color: #475467; font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.activity-event-cell .icon-action { flex: 0 0 auto; }

.activity-detail-modal { position: fixed; inset: 0; z-index: 178; display: grid; padding: 20px; place-items: center; }
.activity-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; background: rgba(16, 24, 40, .62); border: 0; border-radius: 0; box-shadow: none; backdrop-filter: blur(4px); }
.activity-modal-backdrop:hover { background: rgba(16, 24, 40, .62); box-shadow: none; transform: none; }
.activity-modal-dialog { position: relative; z-index: 1; width: min(100%, 900px); max-height: calc(100vh - 40px); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); animation: modal-enter .18s ease-out; }
.activity-modal-dialog > [data-activity-modal-content] { display: flex; max-height: calc(100vh - 42px); flex-direction: column; }
.activity-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 19px 22px 16px; border-bottom: 1px solid var(--line); }
.activity-modal-header .eyebrow { margin-bottom: 4px; }
.activity-modal-header h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.activity-modal-header p { margin: 4px 0 0; font-size: 11px; }
.activity-modal-body { min-height: 0; padding: 20px 22px; overflow-y: auto; }
.activity-modal-event { display: flex; align-items: center; gap: 13px; padding: 14px; background: #fafbff; border: 1px solid #e5e7f5; border-radius: 12px; }
.activity-modal-event .detail-icon { width: 42px; height: 42px; border-radius: 11px; }
.activity-modal-event > div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.activity-modal-event strong { color: #344054; font-size: 13px; line-height: 1.45; }
.activity-modal-event > div span { color: var(--muted); font-size: 10px; }
.activity-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 16px 0 0; padding: 0; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 12px; }
.activity-detail-grid > div { min-width: 0; padding: 13px; background: #fff; }
.activity-detail-grid dt { margin-bottom: 5px; color: var(--muted-light); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.activity-detail-grid dd { margin: 0; overflow-wrap: anywhere; color: #344054; font-size: 11px; font-weight: 650; }
.activity-detail-grid dd small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 500; }
.activity-detail-grid dd code { color: #475467; font-size: 9px; }
.activity-audit-values { margin-top: 17px; padding: 0; }
.activity-audit-values h3 { margin: 0 0 7px; color: #344054; font-size: 12px; }
.activity-audit-values pre { max-height: 280px; font-size: 10px; }
.activity-modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; background: #fcfcfd; border-top: 1px solid var(--line); }
.generated-value:disabled { color: #667085; background: #f2f4f7; border-color: #e4e7ec; opacity: 1; cursor: not-allowed; }

@media (max-width: 700px) {
    .smart-icon-modal { padding: 10px; }
    .smart-icon-dialog { max-height: calc(100vh - 20px); border-radius: 14px; }
    .smart-icon-modal-header { padding: 15px 16px; }
    .smart-icon-modal-header p { display: none; }
    .smart-icon-modal-body { padding: 12px; }
    .smart-icon-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
    .smart-icon-option { min-height: 76px; }
    .activity-detail-modal { padding: 10px; }
    .activity-modal-dialog, .activity-modal-dialog > [data-activity-modal-content] { max-height: calc(100vh - 20px); }
    .activity-modal-header, .activity-modal-body, .activity-modal-footer { padding-inline: 16px; }
    .activity-modal-event { align-items: flex-start; }
    .activity-modal-event > .badge { display: none; }
    .activity-detail-grid, .activity-audit-values { grid-template-columns: 1fr; }
}

/* Compositor de páginas */
.page-composer-heading { align-items: flex-start; }
.page-composer-heading .heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.composer-page-meta { display: flex; align-items: center; gap: 9px; margin-top: 8px; }
.composer-page-meta strong { color: #344054; font-size: 12px; }
.composer-page-meta code { color: var(--muted); font-size: 11px; }
.page-composer { display: grid; gap: 12px; }
.composer-crud-card.page-composer { gap: 0; }
.composer-crud-toolbar { min-height: 62px; }
.composer-crud-context { min-width: 0; }
.composer-crud-context em { display: inline-flex; margin-top: 4px; color: var(--muted); font-size: 9px; font-style: normal; font-weight: 700; }
.composer-crud-context em[data-tone="saving"] { color: var(--brand); }
.composer-crud-context em[data-tone="success"] { color: var(--success); }
.composer-crud-context em[data-tone="error"] { color: var(--danger); }
.composer-crud-create { border-bottom: 1px solid var(--line); }
.composer-crud-create:not([open]) { display: none; }
.composer-crud-list { display: grid; }
.composer-crud-list-head { display: grid; min-height: 38px; grid-template-columns: minmax(0, 1fr) 140px 110px 34px; align-items: center; gap: 10px; padding: 0 17px 0 58px; color: var(--muted-light); background: #fcfcfd; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.composer-crud-card .composer-section-list { gap: 0; }
.composer-crud-card .composer-section-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.composer-crud-card .composer-section-card:last-child { border-bottom: 0; }
.composer-crud-card .composer-section-summary { min-height: 64px; grid-template-columns: 30px minmax(0, 1fr) 140px 110px 18px; padding: 10px 17px; }
.composer-crud-card .composer-section-summary > .mini-avatar { display: none; }
.composer-crud-card .composer-section-title small { margin-top: 2px; }
.composer-section-count { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.composer-crud-card .composer-section-body { padding: 13px 17px 16px; background: #fff; border-top: 1px solid var(--line); }
.composer-crud-card .composer-section-toolbar { min-height: 42px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.composer-crud-card .composer-section-toolbar small { display: none; }
.composer-crud-card .composer-slots { gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.composer-crud-card .composer-slot-card, .composer-crud-card .composer-add-slot { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.composer-crud-card .composer-add-slot:not([open]) { display: none; }
.composer-crud-card .composer-slot-card:last-child, .composer-crud-card .composer-add-slot:last-child { border-bottom: 0; }
.composer-crud-card .composer-slot-summary { min-height: 56px; grid-template-columns: 25px 34px minmax(0, 1fr) auto 18px; padding: 9px 12px; }
.page-composer > .card, .composer-section-list > .card { margin-bottom: 0; }
.composer-overview { display: grid; min-height: 74px; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 22px; padding: 13px 17px; }
.composer-overview-item { display: flex; align-items: center; gap: 9px; }
.composer-overview-item > span:last-child { display: flex; flex-direction: column; }
.composer-overview-item strong { color: #344054; font-size: 17px; line-height: 1.1; }
.composer-overview-item small, .composer-overview-copy small { color: var(--muted); font-size: 10px; }
.composer-overview-copy { min-width: 0; padding-left: 20px; border-left: 1px solid var(--line); }
.composer-overview-copy strong, .composer-overview-copy small { display: block; }
.composer-overview-copy strong { color: #344054; font-size: 12px; }
.composer-overview-copy small { margin-top: 3px; }
.composer-overview-copy em { display: inline-flex; margin-top: 5px; color: var(--muted); font-size: 9px; font-style: normal; font-weight: 700; }
.composer-overview-copy em[data-tone="saving"] { color: var(--brand); }
.composer-overview-copy em[data-tone="success"] { color: var(--success); }
.composer-overview-copy em[data-tone="error"] { color: var(--danger); }
.composer-panel, .composer-section-card { margin: 0; padding: 0; overflow: hidden; }
.composer-panel > form { padding: 18px 20px 0; border-top: 1px solid var(--line); }
.composer-panel-summary, .composer-section-summary, .composer-slot-summary { display: grid; align-items: center; gap: 11px; margin: 0; list-style: none; cursor: pointer; transition: background-color .16s ease; }
.composer-panel-summary { min-height: 68px; grid-template-columns: auto minmax(0, 1fr) auto; padding: 12px 17px; }
.composer-section-summary { min-height: 76px; grid-template-columns: 30px 38px minmax(0, 1fr) auto 18px; padding: 13px 17px; }
.composer-slot-summary { min-height: 68px; grid-template-columns: 26px 36px minmax(0, 1fr) auto 18px; padding: 11px 14px; }
.composer-panel-summary::-webkit-details-marker, .composer-section-summary::-webkit-details-marker, .composer-slot-summary::-webkit-details-marker, .composer-settings-panel > summary::-webkit-details-marker { display: none; }
.composer-panel-summary:hover, .composer-section-summary:hover, .composer-slot-summary:hover { background: #fafbff; }
.composer-panel[open] > .composer-panel-summary, .composer-section-card[open] > .composer-section-summary, .composer-slot-card[open] > .composer-slot-summary { background: linear-gradient(90deg, rgba(91, 91, 214, .055), transparent); border-bottom: 1px solid var(--line); }
.composer-panel-summary strong, .composer-section-title strong, .composer-slot-summary strong { display: block; color: #344054; font-size: 12px; line-height: 1.3; }
.composer-panel-summary small, .composer-section-title small, .composer-slot-summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.composer-summary-action { display: grid; place-items: center; color: var(--muted-light); transition: transform .18s ease; }
.composer-summary-action .icon { width: 16px; height: 16px; }
.composer-panel[open] > .composer-panel-summary .composer-summary-action, .composer-section-card[open] > .composer-section-summary .composer-summary-action, .composer-slot-card[open] > .composer-slot-summary .composer-summary-action, .composer-add-slot[open] > .composer-panel-summary .composer-summary-action { transform: rotate(180deg); }
.composer-drag-handle { display: inline-grid; width: 28px; height: 32px; min-height: 32px; padding: 0; place-items: center; color: var(--muted-light); background: transparent; border: 0; border-radius: 7px; box-shadow: none; cursor: grab; touch-action: none; }
.composer-drag-handle.small { width: 25px; height: 30px; min-height: 30px; }
.composer-drag-handle .icon { width: 16px; height: 16px; }
.composer-drag-handle:hover, .composer-drag-handle:focus-visible { color: var(--brand); background: var(--brand-soft); box-shadow: none; transform: none; }
.composer-drag-handle:active { cursor: grabbing; }
.is-page-sorting { cursor: grabbing; user-select: none; }
[data-page-sort-item] { transition: opacity .15s ease, border-color .15s ease, box-shadow .15s ease; }
[data-page-sort-item].is-dragging { z-index: 2; opacity: .58; border-color: #a9a6eb; box-shadow: 0 12px 28px rgba(78, 70, 229, .14); }
.composer-section-list, .composer-slots { display: grid; gap: 10px; }
.composer-section-card { border-color: #dde1ea; box-shadow: 0 4px 15px rgba(16, 24, 40, .035); }
.composer-section-body { display: grid; gap: 14px; padding: 15px 17px 17px; background: #fbfcfe; }
.composer-section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.composer-section-toolbar > div { min-width: 0; }
.composer-section-toolbar strong, .composer-section-toolbar small { display: block; }
.composer-section-toolbar strong { color: #344054; font-size: 12px; }
.composer-section-toolbar small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.composer-settings-panel { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.composer-settings-panel > summary { display: grid; min-height: 42px; grid-template-columns: 18px minmax(0, 1fr) 16px; align-items: center; gap: 8px; padding: 9px 12px; color: var(--muted); font-size: 11px; font-weight: 700; list-style: none; cursor: pointer; }
.composer-settings-panel > summary .icon { width: 15px; height: 15px; }
.composer-settings-panel > summary .icon:last-child { transition: transform .18s ease; }
.composer-settings-panel[open] > summary { color: var(--brand); background: #fafaff; border-bottom: 1px solid var(--line); }
.composer-settings-panel[open] > summary .icon:last-child { transform: rotate(180deg); }
.composer-settings-panel > form, .composer-slot-card > form, .composer-add-slot > form { padding: 15px 16px 0; }
.composer-slot-card, .composer-add-slot { margin: 0; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: none; }
.composer-slot-card[open] { border-color: #d7d6f4; box-shadow: 0 8px 22px rgba(78, 70, 229, .055); }
.composer-add-slot { border-style: dashed; background: #fcfcff; }
.composer-add-slot > .composer-panel-summary { min-height: 58px; padding: 9px 14px; }
.composer-status-field { margin-top: 1px; }
.composer-status-field .modern-switch { min-height: 52px; margin: 0; }
.composer-advanced-fields { margin: 1px 0 0; padding: 10px 12px; background: #f8fafc; border: 1px dashed var(--line); border-radius: 10px; }
.composer-advanced-fields > summary { color: var(--muted); font-size: 10px; font-weight: 750; list-style: none; cursor: pointer; }
.composer-advanced-fields > summary::-webkit-details-marker { display: none; }
.composer-advanced-fields > textarea, .composer-advanced-fields > input, .composer-advanced-fields > .form-grid-12 { margin-top: 10px; }
.composer-panel .form-actions, .composer-settings-panel .form-actions, .composer-slot-card .form-actions, .composer-add-slot .form-actions { width: calc(100% + 32px); margin: 15px -16px 0; padding: 12px 16px; }
.composer-panel > form > .form-actions { width: calc(100% + 40px); margin: 18px -20px 0; padding-inline: 20px; }
.composer-slot-actions { justify-content: space-between; }
.page-slot-items { margin-top: 14px; padding: 11px; background: #f8fafc; border: 1px dashed var(--line); border-radius: 11px; }
.slot-items-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.slot-items-header > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.slot-items-header strong { color: #344054; font-size: 11px; }
.slot-items-header small { color: var(--muted); font-size: 9px; }
.slot-items-list { display: grid; gap: 7px; }
.slot-items-empty { padding: 14px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 10px; text-align: center; }
.slot-item-pill { display: grid; min-width: 0; grid-template-columns: 26px 36px minmax(0, 1fr) 32px; align-items: center; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.slot-item-pill > span:first-of-type, .page-source-thumb { display: grid; width: 36px; height: 36px; overflow: hidden; place-items: center; color: var(--muted); background: #f2f4f7; border-radius: 8px; }
.slot-item-pill img, .page-source-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slot-item-pill strong { min-width: 0; overflow: hidden; color: #344054; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.slot-item-pill .icon-action { width: 32px; height: 32px; min-height: 32px; }
.slot-item-pill.collection-item-row { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; }
.collection-item-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 5px; }
.collection-item-copy > strong { max-width: 100%; font-size: 13px; }
.collection-item-row > .row-actions { gap: 6px; flex-wrap: nowrap; }
.slot-item-placeholder { width: 15px; height: 15px; background: linear-gradient(135deg, #cbd5e1, #e2e8f0); border-radius: 4px; }
.composer-inline-feedback { margin: 8px 0 0; padding: 8px 10px; color: #475467; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; }
.composer-inline-feedback[data-tone="warning"] { color: var(--warning); background: var(--warning-bg); border-color: #fedf89; }
.composer-source-empty { display: flex; min-height: 100px; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.composer-source-empty strong { color: #344054; font-size: 12px; }
.composer-source-empty small { max-width: 440px; margin-top: 4px; color: var(--muted); font-size: 10px; }
.composer-empty-state { margin-top: 0; }
.button.small { min-height: 34px; padding: 7px 11px; font-size: 10px; }
.page-source-modal[hidden], .page-slot-items[hidden], .automatic-rule-field[hidden], .slot-items-empty[hidden], .composer-inline-feedback[hidden] { display: none !important; }
.page-source-modal { position: fixed; inset: 0; z-index: 190; display: grid; padding: 18px; place-items: center; }
.page-source-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; background: rgba(16, 24, 40, .62); border: 0; border-radius: 0; box-shadow: none; backdrop-filter: blur(4px); }
.page-source-backdrop:hover { background: rgba(16, 24, 40, .62); box-shadow: none; transform: none; }
.page-source-dialog { position: relative; z-index: 1; display: grid; width: min(100%, 720px); max-height: calc(100vh - 36px); grid-template-rows: auto auto minmax(150px, 1fr) auto; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-lg); animation: modal-enter .18s ease-out; }
.page-source-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 17px 19px 14px; border-bottom: 1px solid var(--line); }
.page-source-dialog > header .eyebrow { margin-bottom: 4px; }
.page-source-dialog h2 { margin: 0; font-size: 18px; }
.page-source-dialog header p { margin: 3px 0 0; font-size: 10px; }
.page-source-search { display: flex; align-items: center; gap: 9px; margin: 13px 19px; padding: 0 11px; color: var(--muted); background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; }
.page-source-search .icon { width: 16px; height: 16px; }
.page-source-search input { min-height: 40px; padding: 8px 0; background: transparent; border: 0; box-shadow: none; }
.page-source-search input:focus { box-shadow: none; }
.page-source-results { display: grid; align-content: start; gap: 7px; min-height: 0; padding: 0 19px 14px; overflow-y: auto; }
.page-source-result { display: grid; width: 100%; min-height: 56px; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; color: #344054; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
.page-source-result:hover { background: #fafaff; border-color: #d9d9f8; box-shadow: none; transform: none; }
.page-source-result > span:nth-child(2) { min-width: 0; }
.page-source-result strong, .page-source-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-source-result strong { font-size: 11px; }
.page-source-result small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.page-source-add { color: var(--brand); font-size: 9px; font-weight: 750; }
.page-source-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 19px; background: #fcfcfd; border-top: 1px solid var(--line); }
.page-source-dialog > footer small { color: var(--muted); font-size: 9px; }
.empty-state.compact { min-height: 140px; padding: 18px; }

@media (max-width: 760px) {
    .page-composer-heading .heading-actions { width: 100%; justify-content: stretch; }
    .page-composer-heading .heading-actions .button { flex: 1; }
    .composer-crud-list-head { display: none; }
    .composer-crud-card .composer-section-summary { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 9px; }
    .composer-crud-card .composer-section-summary .composer-section-count { grid-column: 2; justify-self: start; }
    .composer-crud-card .composer-section-summary .badge { grid-column: 2; justify-self: start; }
    .composer-crud-card .composer-section-summary .composer-summary-action { grid-column: 3; grid-row: 1 / span 3; }
    .composer-overview { grid-template-columns: repeat(2, auto); gap: 12px; }
    .composer-overview-copy { grid-column: 1 / -1; padding: 10px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .composer-section-summary { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 9px; }
    .composer-section-summary .mini-avatar { display: none; }
    .composer-section-summary .badge { grid-column: 2; justify-self: start; }
    .composer-section-summary .composer-summary-action { grid-column: 3; grid-row: 1 / span 2; }
    .composer-slot-summary { grid-template-columns: 25px 34px minmax(0, 1fr) 18px; gap: 8px; }
    .composer-slot-summary .badge { display: none; }
    .composer-panel > form, .composer-settings-panel > form, .composer-slot-card > form, .composer-add-slot > form { padding: 14px 14px 0; }
    .composer-panel > form > .form-actions, .composer-settings-panel .form-actions, .composer-slot-card .form-actions, .composer-add-slot .form-actions { width: calc(100% + 28px); margin-inline: -14px; padding-inline: 14px; }
    .composer-section-body { padding: 12px; }
    .composer-section-toolbar small { display: none; }
    .slot-item-pill { grid-template-columns: 24px 34px minmax(0, 1fr) 30px; gap: 4px; }
    .slot-item-pill > span:first-of-type { width: 34px; height: 34px; }
    .slot-item-pill .icon-action { width: 30px; height: 30px; min-height: 30px; }
    .page-source-modal { padding: 8px; }
    .page-source-dialog { max-height: calc(100vh - 16px); border-radius: 13px; }
    .page-source-dialog > header, .page-source-dialog > footer { padding-inline: 14px; }
    .page-source-search { margin-inline: 14px; }
    .page-source-results { padding-inline: 14px; }
    .page-source-add { display: none; }
    .page-source-result { grid-template-columns: 40px minmax(0, 1fr); }
}

/* Hierarquia visual do compositor: página > seção > grupo */
.composer-context-path {
    display: grid;
    min-height: 72px;
    grid-template-columns: minmax(160px, 1fr) 18px minmax(160px, 1fr) 18px minmax(160px, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px 17px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fcfcfe 100%);
    border-bottom: 1px solid var(--line);
}
.composer-context-level { display: flex; min-width: 0; align-items: center; gap: 10px; }
.composer-context-level > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.composer-context-level small { color: var(--muted-light); font-size: 8px; font-weight: 850; letter-spacing: .09em; line-height: 1.2; text-transform: uppercase; }
.composer-context-level strong { margin-top: 3px; overflow: hidden; color: #344054; font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.composer-context-level.is-muted { opacity: .58; }
.composer-context-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; color: #5b5bd6; background: #eeeeff; border: 1px solid #ddddfb; border-radius: 10px; }
.composer-context-icon .icon { width: 16px; height: 16px; }
.composer-context-level.is-root .composer-context-icon { color: #fff; background: linear-gradient(135deg, #5b5bd6, #7878e8); border-color: transparent; box-shadow: 0 5px 14px rgba(91, 91, 214, .19); }
.composer-context-separator { display: grid; place-items: center; color: #b6bdca; }
.composer-context-separator .icon { width: 14px; height: 14px; }
.composer-crud-toolbar { background: #fff; }
.composer-crud-context > span:last-child { display: flex; flex-direction: column; }
.composer-crud-context > span:last-child > small + small { margin-top: 2px; }

.composer-level-label { margin: 0 0 3px !important; color: #6f70c9 !important; font-size: 7px !important; font-weight: 900 !important; letter-spacing: .1em; line-height: 1 !important; text-transform: uppercase; }
.composer-crud-card .composer-section-card[open] { box-shadow: inset 3px 0 0 #6565dd; }
.composer-crud-card .composer-section-card[open] > .composer-section-summary { background: linear-gradient(90deg, #f5f5ff 0%, #fbfbfe 58%, #fff 100%); }
.composer-crud-card .composer-section-card[open] > .composer-section-summary .composer-section-title strong { color: #3f3fa9; }
.composer-crud-card .composer-section-body { gap: 0; padding: 0 17px 17px 20px; background: #f8f9fc; }
.composer-section-scope { display: flex; align-items: center; gap: 10px; margin: 0 -17px 0 -20px; padding: 12px 17px 12px 20px; color: #475467; background: #fff; border-bottom: 1px solid var(--line); }
.composer-scope-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; color: #5b5bd6; background: #eeeefe; border-radius: 9px; }
.composer-scope-icon .icon { width: 15px; height: 15px; }
.composer-section-scope > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.composer-section-scope small { color: var(--muted-light); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.composer-section-scope strong { margin-top: 2px; color: #344054; font-size: 11px; }
.composer-section-scope strong i { padding: 0 5px; color: #b0b7c3; font-style: normal; }
.composer-section-scope em { margin-top: 2px; color: var(--muted); font-size: 9px; font-style: normal; }
.composer-crud-card .composer-section-toolbar { min-height: 62px; padding: 10px 0; }
.composer-crud-card .composer-section-toolbar small { display: block; }

.composer-context-editor:not([open]) { display: none; }
.composer-context-editor { margin: 0 0 12px; border-color: #dcdcf5; box-shadow: 0 8px 24px rgba(55, 54, 126, .06); }
.composer-context-editor > summary { min-height: 54px; color: #4545b3; background: #f5f5ff; border-bottom: 1px solid #e1e1f6; }
.composer-settings-panel.composer-context-editor > summary { grid-template-columns: minmax(0, 1fr) 18px; padding: 10px 14px; }
.composer-settings-panel.composer-context-editor > summary > span:first-child { display: flex; min-width: 0; flex-direction: column; }
.composer-context-editor > summary small { color: #7778b8; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.composer-context-editor > summary strong { margin-top: 2px; color: #3f3fa9; font-size: 12px; }

.composer-crud-card .composer-slots { position: relative; margin-left: 25px; background: #fff; border-color: #dfe3ea; box-shadow: 0 3px 12px rgba(16, 24, 40, .025); }
.composer-crud-card .composer-slots::before { position: absolute; top: 0; bottom: 0; left: -17px; width: 2px; background: #d8d9f6; border-radius: 2px; content: ""; }
.composer-crud-card .composer-slot-card { position: relative; }
.composer-crud-card .composer-slot-card::before, .composer-crud-card .composer-add-slot::before { position: absolute; top: 27px; left: -17px; width: 16px; height: 2px; background: #d8d9f6; content: ""; }
.composer-crud-card .composer-slot-card[open] { z-index: 1; background: #fff; box-shadow: inset 3px 0 0 #8a8ae7; }
.composer-crud-card .composer-slot-card[open] > .composer-slot-summary { background: #f7f7ff; }
.composer-crud-card .composer-slot-card[open] > .composer-slot-summary strong { color: #4545b3; }
.composer-slot-card > form { background: #fff; border-top: 1px solid #e0e1f2; }
.composer-editor-heading { display: flex; min-height: 55px; align-items: center; gap: 10px; margin: -15px -16px 15px; padding: 10px 16px; background: linear-gradient(90deg, #f5f5ff, #fafaff); border-bottom: 1px solid #e1e1f5; }
.composer-editor-heading-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; color: #5b5bd6; background: #e8e8fc; border-radius: 9px; }
.composer-editor-heading-icon .icon { width: 15px; height: 15px; }
.composer-editor-heading > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.composer-editor-heading small { color: #7778b8; font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.composer-editor-heading strong { margin-top: 2px; color: #38389b; font-size: 12px; }
.composer-editor-heading .icon-action { width: 30px; height: 30px; min-height: 30px; }
.composer-slot-actions > span { display: flex; align-items: center; gap: 8px; }
.composer-add-slot.composer-context-editor { margin-top: 12px; background: #fff; border: 1px solid #dcdcf5; border-radius: 11px; }
.composer-add-slot.composer-context-editor > .composer-panel-summary { background: #f5f5ff; }
.composer-status-field > label.modern-switch {
    display: grid;
    width: 100%;
    min-height: 58px;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 11px 13px;
}
.composer-status-field .modern-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    opacity: 0;
}
.composer-status-field .switch-track { grid-column: 1; align-self: center; pointer-events: none; }
.composer-status-field .switch-copy { grid-column: 2; gap: 2px; pointer-events: none; }
.composer-status-field .switch-copy strong { line-height: 1.25; }
.composer-status-field .switch-copy small { margin: 0; font-size: 10px; line-height: 1.35; }
.composer-status-field .modern-switch:has(input:checked) { background: #f8f8ff; border-color: #d8d7f5; }
.composer-status-field .modern-switch:has(input:focus-visible) { border-color: #8585ea; box-shadow: 0 0 0 4px rgba(91, 91, 214, .1); }

@media (max-width: 760px) {
    .composer-context-path { grid-template-columns: 1fr 1fr; gap: 0; padding: 10px 13px; }
    .composer-context-separator { display: none; }
    .composer-context-level { padding: 8px 5px; }
    .composer-context-level.is-root { grid-column: 1 / -1; padding-bottom: 11px; border-bottom: 1px solid #e5e7ef; }
    .composer-context-level:not(.is-root) { padding-top: 11px; }
    .composer-context-level strong { font-size: 10px; }
    .composer-context-icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; }
    .composer-crud-card .composer-section-body { padding: 0 10px 12px 13px; }
    .composer-section-scope { margin: 0 -10px 0 -13px; padding: 11px 10px 11px 13px; }
    .composer-section-scope em { display: none; }
    .composer-section-scope strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .composer-crud-card .composer-section-toolbar { min-height: 56px; }
    .composer-crud-card .composer-section-toolbar small { display: none; }
    .composer-crud-card .composer-slots { margin-left: 14px; }
    .composer-crud-card .composer-slots::before { left: -10px; }
    .composer-crud-card .composer-slot-card::before, .composer-crud-card .composer-add-slot::before { left: -10px; width: 9px; }
    .composer-editor-heading { margin: -14px -14px 14px; padding-inline: 14px; }
    .composer-slot-actions { align-items: center; }
    .composer-slot-actions > span { gap: 5px; }
}
