/* ==========================================================================
   Fácil Gado · Design system · Tokens
   Fonte única de cores, tipografia, espaçamento e raios usados em todo o
   sistema (público, área do cliente e administração).
   ========================================================================== */

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url(/build/assets/plus-jakarta-sans-latin-wght-normal-eXO_dkmS.woff2) format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url(/build/assets/plus-jakarta-sans-latin-ext-wght-normal-DmpS2jIq.woff2) format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Marca */
    --green-900: #0d2a1d;
    --green-800: #153f2c;
    --green-700: #1b5238;
    --green-600: #23704a;
    --green-500: #2f8a5c;
    --green-100: #dff0e6;
    --green-50: #eef6f1;

    --gold-700: #9a7115;
    --gold-600: #b8891d;
    --gold-500: #d7a72f;
    --gold-400: #e6bb4a;
    --gold-100: #fbf1d3;
    --gold-50: #fdf8e8;

    /* Neutros (quentes) */
    --n-0: #ffffff;
    --n-50: #f8f7f4;
    --n-100: #f1efea;
    --n-200: #e4e1d9;
    --n-300: #d0ccc2;
    --n-400: #a8a49a;
    --n-500: #7a776f;
    --n-600: #5c5a54;
    --n-700: #403f3a;
    --n-800: #2a2a26;
    --n-900: #191916;

    /* Semânticas */
    --success: #1f7a48;
    --success-bg: #e6f4ec;
    --warning: #a86d0f;
    --warning-bg: #fdf2dc;
    --danger: #b83a3a;
    --danger-bg: #fbe9e9;
    --info: #2b6ea6;
    --info-bg: #e7f0f8;
    --whatsapp: #1f8f55;

    /* Papéis */
    --primary: var(--green-800);
    --primary-hover: var(--green-900);
    --primary-soft: var(--green-50);
    --accent: var(--gold-500);
    --accent-hover: var(--gold-600);
    --accent-soft: var(--gold-50);

    --bg: #f6f5f1;
    --surface: var(--n-0);
    --surface-2: var(--n-50);
    --surface-3: var(--n-100);
    --ink: #1b1f1c;
    --ink-2: #4a4f4b;
    --muted: #6d726d;
    --muted-2: #9a9e99;
    --line: #e2e0d8;
    --line-strong: #cfcbc0;
    --focus: #2b6ea6;

    /* Tipografia */
    --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --fs-11: .6875rem;
    --fs-12: .75rem;
    --fs-13: .8125rem;
    --fs-14: .875rem;
    --fs-15: .9375rem;
    --fs-16: 1rem;
    --fs-18: 1.125rem;
    --fs-20: 1.25rem;
    --fs-22: 1.375rem;
    --fs-24: 1.5rem;
    --fs-28: 1.75rem;
    --fs-32: 2rem;
    --fs-40: 2.5rem;
    --fs-48: 3rem;

    /* Espaçamento */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;

    /* Raios e sombras */
    --r-sm: 4px;
    --r-md: 6px;
    --r-lg: 10px;
    --r-xl: 14px;
    --r-full: 999px;
    --shadow-sm: 0 1px 2px rgba(20, 24, 21, .06);
    --shadow-md: 0 8px 24px -10px rgba(20, 24, 21, .28);
    --shadow-lg: 0 24px 60px -20px rgba(20, 24, 21, .4);

    /* Layout */
    --container: 1200px;
    --container-wide: 1440px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 64px;
    --dock-h: 60px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);

    /* Movimento */
    --ease: cubic-bezier(.2, .7, .2, 1);
    --t-fast: 120ms;
    --t-base: 180ms;

    color-scheme: light;
}

@media (min-width: 1600px) {
    :root {
        --container: 1280px;
        --container-wide: 1560px;
    }
}

@media (min-width: 2400px) {
    :root {
        --container: 1400px;
        --container-wide: 1720px;
    }
}

/* ==========================================================================
   Base · reset, tipografia e utilitários
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    height: 100%;
}

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

body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font);
    font-size: var(--fs-16);
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
h1 { font-size: var(--fs-32); letter-spacing: -.02em; }
h2 { font-size: var(--fs-24); }
h3 { font-size: var(--fs-18); }
h4 { font-size: var(--fs-16); }
p { margin: 0; overflow-wrap: anywhere; }
p + p { margin-top: .75em; }
small { font-size: var(--fs-13); }
strong, b { font-weight: 700; }
em { font-style: normal; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }
code, kbd { font-family: var(--font-mono); font-size: .92em; }
kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: var(--r-sm); background: var(--surface); font-size: var(--fs-11); color: var(--muted); }
dialog { color: inherit; }
table { border-collapse: collapse; border-spacing: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: var(--gold-100); color: var(--ink); }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; top: -100px; left: 12px; z-index: 1000; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: var(--r-md); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Contêineres */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }

/* Utilitários de texto */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-12); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600); }
.eyebrow--muted { color: var(--muted); }
.eyebrow--light { color: var(--gold-400); }
.muted { color: var(--muted); }
.text-sm { font-size: var(--fs-14); }
.text-xs { font-size: var(--fs-13); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.prose { font-size: var(--fs-16); line-height: 1.7; color: var(--ink-2); }
.prose h2 { margin: 1.6em 0 .5em; font-size: var(--fs-20); color: var(--ink); }
.prose h3 { margin: 1.3em 0 .4em; font-size: var(--fs-16); }
.prose p { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }
.prose li { list-style: disc; margin: .3em 0; }

/* Utilitários de layout */
.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.stack-sm { display: flex; flex-direction: column; gap: var(--sp-2); }
.stack-lg { display: flex; flex-direction: column; gap: var(--sp-6); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.grow { flex: 1 1 auto; min-width: 0; }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); }
.hide-mobile { display: initial; }
.show-mobile { display: none !important; }

@media (max-width: 719px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: initial !important; }
}

.icon { flex: none; width: 1.25em; height: 1.25em; }
.icon--sm { width: 1em; height: 1em; }

/* ==========================================================================
   Formulários · campos, seleção, upload, grades
   ========================================================================== */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child,
.field-label { font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); line-height: 1.3; }
.field > span:first-child em,
.field-label em { font-weight: 500; color: var(--muted-2); }
.field small,
.field-hint { font-size: var(--fs-12); color: var(--muted); line-height: 1.4; }
.field-error { font-size: var(--fs-12); color: var(--danger); font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }

.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
.field select,
.field textarea,
.input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    font-size: var(--fs-15);
    line-height: 1.4;
    color: var(--ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(35, 112, 74, .16);
}
.field input:disabled, .field select:disabled, .field textarea:disabled { background: var(--surface-3); color: var(--muted); }
.field input[type="color"] { width: 64px; height: 44px; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); cursor: pointer; }
.field input[type="file"] { padding: 8px 0; font-size: var(--fs-14); }
.field input[type="date"], .field input[type="datetime-local"], .field input[type="time"] { min-width: 0; }
.field select {
    padding-right: 36px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d726d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.field--inline { flex-direction: row; align-items: center; gap: 10px; }

/* Grade de campos */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-all { grid-column: 1 / -1; }

@media (max-width: 719px) {
    .form-grid, .form-grid-3, .form-grid-4 { grid-template-columns: minmax(0, 1fr); }
    .span-2, .span-3, .span-all { grid-column: auto; }
}
@media (min-width: 720px) and (max-width: 979px) {
    .form-grid-3, .form-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .span-3 { grid-column: span 2; }
}

/* Grupo com prefixo (R$) e sufixo (kg) */
.input-group { display: flex; align-items: stretch; min-height: 44px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.input-group:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(35, 112, 74, .16); }
.input-group > i, .input-group > b { display: flex; align-items: center; padding: 0 12px; font-size: var(--fs-13); font-weight: 600; font-style: normal; color: var(--muted); background: var(--surface-2); border-right: 1px solid var(--line); white-space: nowrap; }
.input-group > b { border-right: 0; border-left: 1px solid var(--line); }
.field .input-group input, .input-group input { min-height: 0; border: 0 !important; border-radius: 0; box-shadow: none !important; background: transparent; }
.input-group input:focus { box-shadow: none; }

/* Campo de senha com alternância */
.password-field { position: relative; }
.password-field input { padding-right: 68px !important; }
.password-field button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 6px 10px; font-size: var(--fs-12); font-weight: 600; color: var(--green-600); border-radius: var(--r-sm); }
.password-field button:hover { background: var(--primary-soft); }

/* Campo de busca */
.search-field { position: relative; }
.search-field input { padding-left: 40px !important; }
.search-field > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* Checkbox e rádio */
.check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-14); color: var(--ink-2); cursor: pointer; line-height: 1.4; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green-700); cursor: pointer; }
.check a { font-weight: 600; }
.check--compact { font-size: var(--fs-13); }

/* Interruptor */
.switch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch > span:first-of-type { position: relative; flex: none; width: 40px; height: 22px; background: var(--n-300); border-radius: var(--r-full); transition: background var(--t-base); }
.switch > span:first-of-type::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform var(--t-base) var(--ease); }
.switch input:checked + span { background: var(--green-600); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.switch b { font-size: var(--fs-14); }
.switch small { font-size: var(--fs-12); color: var(--muted); }

/* Cartões de escolha (rádio visual) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-3); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice > span { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); font-size: var(--fs-14); font-weight: 600; color: var(--ink); transition: border-color var(--t-fast), background var(--t-fast); }
.choice > span .icon { color: var(--green-600); }
.choice:hover > span { border-color: var(--n-400); }
.choice input:checked + span { border-color: var(--green-700); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--green-700); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Chips de opções (checkbox em linha) */
.chip-options { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-options label { position: relative; cursor: pointer; }
.chip-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-options span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-full); font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); background: var(--surface); }
.chip-options input:checked + span { border-color: var(--green-700); background: var(--green-800); color: #fff; }
.chip-options input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Segmentos (rádio em barra) */
.segmented { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: var(--r-md); gap: 2px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span, .segmented a { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border-radius: 4px; font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.segmented input:checked + span, .segmented a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented a:hover { text-decoration: none; color: var(--ink); }
.segmented--block { display: flex; }
.segmented--block label, .segmented--block a { flex: 1; }
.segmented--block span { width: 100%; }

/* Upload */
.upload { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.upload:hover, .upload.is-dragging { border-color: var(--green-600); background: var(--primary-soft); }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload > .icon, .upload > i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; color: var(--green-700); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.upload > div, .upload > span:not(.icon) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.upload b { font-size: var(--fs-14); }
.upload small { font-size: var(--fs-12); color: var(--muted); }
.upload.has-file { border-style: solid; border-color: var(--green-600); }
.upload-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.upload-preview:empty { display: none; }
.upload-preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }

/* Resumo de erros */
.form-errors { padding: 12px 14px; background: var(--danger-bg); border: 1px solid rgba(184, 58, 58, .25); border-radius: var(--r-md); color: var(--danger); font-size: var(--fs-14); }
.form-errors b { display: block; margin-bottom: 4px; }
.form-errors li { list-style: disc; margin-left: 18px; }

/* Barra de ação de formulários */
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.form-actions--start { justify-content: flex-start; }
.form-note { font-size: var(--fs-12); color: var(--muted); }

/* Seções de formulário numeradas */
.form-section { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.form-section > header { display: flex; align-items: center; gap: 12px; }
.form-section > header > span:first-child { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green-800); color: #fff; font-size: var(--fs-12); font-weight: 700; }
.form-section > header h2 { font-size: var(--fs-16); }
.form-section > header p { font-size: var(--fs-13); color: var(--muted); }
.form-section[hidden] { display: none; }

/* Detalhes recolhíveis (opções avançadas) */
.disclosure { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary > span { display: flex; flex-direction: column; gap: 2px; }
.disclosure > summary b { font-size: var(--fs-14); }
.disclosure > summary small { font-size: var(--fs-12); color: var(--muted); }
.disclosure > summary > .icon { color: var(--muted); transition: transform var(--t-base); }
.disclosure[open] > summary > .icon { transform: rotate(180deg); }
.disclosure > summary > em { font-size: var(--fs-13); font-weight: 600; color: var(--green-600); }
.disclosure > div, .disclosure > .form-grid { padding: 4px 14px 14px; }
.disclosure > .form-grid { padding-top: 8px; }

/* ==========================================================================
   Componentes · botões, badges, painéis, tabelas, listas, abas, diálogos
   ========================================================================== */

/* Botões ------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    font-size: var(--fs-14);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    background: var(--surface);
    white-space: nowrap;
    text-decoration: none;
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-900); }
.btn-accent { background: var(--gold-500); color: var(--green-900); }
.btn-accent:hover { background: var(--gold-400); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--n-400); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn-danger { background: var(--surface); border-color: rgba(184, 58, 58, .4); color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #197845; }
.btn-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-light:hover { background: rgba(255, 255, 255, .2); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: var(--fs-13); gap: 6px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: var(--fs-15); }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; }
.btn-icon.btn-sm { width: 34px; min-height: 34px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-color: rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: fg-spin .7s linear infinite; }
.btn-secondary.is-loading::after, .btn-ghost.is-loading::after, .btn-danger.is-loading::after { border-color: var(--n-300); border-top-color: var(--ink); }
@keyframes fg-spin { to { transform: rotate(360deg); } }

.link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-14); font-weight: 600; color: var(--green-600); }
.link .icon { width: 16px; height: 16px; }
.link-muted { color: var(--muted); font-weight: 500; }
.link-muted:hover { color: var(--ink); }

/* Badges e status ---------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px; border-radius: var(--r-full); font-size: var(--fs-12); font-weight: 600; line-height: 1; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge--plain::before { display: none; }
.badge-success, .status--published, .status--accepted, .status--paid, .status--signed, .status--won, .status--ready, .status--delivered, .status--complete, .status--active, .status--authorized, .status--completed, .status--converted, .status--qualified { background: var(--success-bg); color: var(--success); }
.badge-warning, .status--negotiating, .status--countered, .status--pending, .status--partial, .status--sent, .status--proposal, .status--collecting, .status--review, .status--pending_email, .status--processing, .status--contacting, .status--contacted, .status--payment, .status--shipping, .status--formalization, .status--in_transit { background: var(--warning-bg); color: var(--warning); }
.badge-danger, .status--rejected, .status--expired, .status--cancelled, .status--lost, .status--attention, .status--suspended, .status--failed, .status--error { background: var(--danger-bg); color: var(--danger); }
.badge-info, .status--reserved, .status--new, .status--draft-info { background: var(--info-bg); color: var(--info); }
.badge-neutral, .status--draft, .status--archived, .status--sold, .status--withdrawn, .status--closed, .status--not_requested, .status--inactive { background: var(--surface-3); color: var(--muted); }
.badge-primary { background: var(--green-800); color: #fff; }
.badge-accent { background: var(--gold-100); color: var(--gold-700); }
.status { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px; border-radius: var(--r-full); font-size: var(--fs-12); font-weight: 600; line-height: 1; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.count-pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--r-full); background: var(--surface-3); font-size: var(--fs-12); font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.count-pill--accent { background: var(--gold-100); color: var(--gold-700); }
.count-pill--danger { background: var(--danger); color: #fff; }

/* Avatares ----------------------------------------------------------------- */
.avatar { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green-100); color: var(--green-800); font-size: var(--fs-13); font-weight: 700; text-transform: uppercase; }
.avatar--lg { width: 48px; height: 48px; font-size: var(--fs-16); }
.avatar--sm { width: 28px; height: 28px; font-size: var(--fs-11); }
.avatar--dark { background: rgba(255, 255, 255, .14); color: #fff; }

/* Painéis ------------------------------------------------------------------ */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.panel-head h2, .panel-head h3 { font-size: var(--fs-16); }
.panel-head p { font-size: var(--fs-13); color: var(--muted); }
.panel-head > .eyebrow { margin-bottom: 4px; }
.panel-body { padding: 20px; }
.panel-body--flush { padding: 0; }
.panel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: var(--fs-13); color: var(--muted); }
.panel--muted { background: var(--surface-2); }
.panel--dark { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.panel--dark h2, .panel--dark h3, .panel--dark b, .panel--dark strong { color: #fff; }
.panel--dark p, .panel--dark small { color: rgba(255, 255, 255, .72); }
.panel--accent { border-left: 3px solid var(--gold-500); }
.panel--danger { border-color: rgba(184, 58, 58, .35); }
@media (max-width: 719px) {
    .panel-head { padding: 14px 16px; }
    .panel-body { padding: 16px; }
    .panel-foot { padding: 12px 16px; }
}

/* Cabeçalho de seção (título + ação à direita) */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: var(--sp-4); }
.section-head > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.section-head h2 { font-size: var(--fs-20); }
.section-head p { font-size: var(--fs-14); color: var(--muted); }
.section-head > a, .section-head > .link, .section-head > nav { flex: none; }
@media (max-width: 719px) { .section-head { flex-wrap: wrap; align-items: flex-start; } .section-head > div { flex: 1 1 100%; } }

/* Indicadores (KPI) -------------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; color: inherit; }
a.stat:hover { border-color: var(--n-400); text-decoration: none; }
.stat > span { font-size: var(--fs-12); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat > strong { font-size: var(--fs-24); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--ink); }
.stat > small { font-size: var(--fs-12); color: var(--muted); }
.stat.is-alert { border-color: rgba(184, 58, 58, .4); }
.stat.is-alert > strong { color: var(--danger); }
.stat.is-warn > strong { color: var(--warning); }
.stat.is-good > strong { color: var(--success); }
.stat--inline { flex-direction: row; align-items: center; justify-content: space-between; }
@media (max-width: 479px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .stat { padding: 12px; }
    .stat > strong { font-size: var(--fs-20); }
}

/* Tabelas ------------------------------------------------------------------ */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; font-size: var(--fs-14); }
.table th { padding: 10px 14px; text-align: left; font-size: var(--fs-12); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table td small { display: block; font-size: var(--fs-12); color: var(--muted); }
.table td b { font-weight: 600; }
.table td strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.table .table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.table .table-empty { padding: 32px 14px; text-align: center; color: var(--muted); }
.table--compact th, .table--compact td { padding: 8px 12px; }
.table .num { text-align: right; }
.cell-primary { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-primary > .avatar, .cell-primary > .thumb { flex: none; }
.cell-primary > div { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cell-primary b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { width: 56px; height: 42px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-3); }
.thumb--sq { width: 44px; height: 44px; }

/* Tabela responsiva: em telas pequenas cada linha vira um cartão */
@media (max-width: 719px) {
    .table--responsive thead { display: none; }
    .table--responsive, .table--responsive tbody, .table--responsive tr, .table--responsive td { display: block; width: 100%; }
    .table--responsive tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
    .table--responsive tr:last-child { border-bottom: 0; }
    .table--responsive td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0; border: 0; }
    .table--responsive td[data-label]::before { content: attr(data-label); flex: none; font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
    .table--responsive td:empty, .table--responsive td[data-label=""]::before { display: none; }
    .table--responsive td.cell-full { display: block; }
    .table--responsive td.cell-full::before { display: none; }
    .table--responsive .table-actions { justify-content: flex-start; padding-top: 6px; }
    .table--responsive .table-empty { display: block; padding: 24px 0; text-align: center; }
    .table--responsive .table-empty::before { display: none; }
    .table--responsive tbody tr:hover td { background: transparent; }
}

/* Listas de linhas ----------------------------------------------------------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: inherit; min-width: 0; }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: var(--surface-2); text-decoration: none; }
.list-item > .icon-box { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--green-700); }
.list-item > .body, .list-item > div:not(.icon-box):not(.list-item-aside) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list-item b { font-size: var(--fs-14); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item small { font-size: var(--fs-12); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .list-item-aside { flex: none; display: flex; align-items: center; gap: 10px; text-align: right; }
.list-item .list-item-aside strong { font-variant-numeric: tabular-nums; }
.list-item.is-unread { background: var(--gold-50); }
.list--cards { gap: 10px; }
.list--cards .list-item { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
@media (max-width: 479px) {
    .list-item { flex-wrap: wrap; }
    .list-item .list-item-aside { width: 100%; justify-content: space-between; text-align: left; }
}

/* Lista de definição -------------------------------------------------------- */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 20px; margin: 0; }
.dl > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl dt { font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.dl dd { margin: 0; font-size: var(--fs-14); font-weight: 600; overflow-wrap: anywhere; }
.dl > .wide { grid-column: 1 / -1; }
.dl--stack { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.dl--rows > div { flex-direction: row; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dl--rows > div:last-child { border-bottom: 0; }
.dl--rows dd { text-align: right; }

/* Abas ------------------------------------------------------------------------ */
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs > button, .tabs > a { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: var(--fs-14); font-weight: 600; color: var(--muted); white-space: nowrap; }
.tabs > button:hover, .tabs > a:hover { color: var(--ink); text-decoration: none; }
.tabs > .is-active { color: var(--green-800); border-bottom-color: var(--green-800); }
.tabs .count-pill { min-width: 20px; height: 20px; font-size: var(--fs-11); }
.tab-panel[hidden] { display: none; }

/* Filtros em linha (chips de link) */
.chip-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-nav a, .chip-nav button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--surface); font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); }
.chip-nav a:hover { text-decoration: none; border-color: var(--n-400); }
.chip-nav .is-active { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.chip-nav small { font-weight: 500; opacity: .8; }

/* Barra de filtros ----------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.filters .field { flex: 1 1 160px; }
.filters .field--search { flex: 2 1 240px; }
.filters .field input, .filters .field select { min-height: 40px; font-size: var(--fs-14); }
.filters > .btn { flex: none; min-height: 40px; }
.filters .filters-clear { flex: none; align-self: center; font-size: var(--fs-13); font-weight: 600; color: var(--muted); }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-13); color: var(--muted); }
.active-filters b { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-full); background: var(--surface-3); color: var(--ink-2); font-weight: 600; }
.active-filters b small { font-weight: 500; color: var(--muted); }
@media (max-width: 719px) {
    .filters { padding: 12px; }
    .filters .field { flex-basis: 100%; }
    .filters > .btn { width: 100%; }
}

/* Cabeçalho de página --------------------------------------------------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: var(--sp-6); }
.page-head > div:first-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.page-head h1 { font-size: var(--fs-28); }
.page-head p { font-size: var(--fs-15); color: var(--muted); }
.page-head .eyebrow { margin-bottom: 4px; }
.page-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 719px) {
    .page-head { margin-bottom: var(--sp-4); }
    .page-head h1 { font-size: var(--fs-24); }
    .page-head p { font-size: var(--fs-14); }
    .page-head-actions { width: 100%; }
    .page-head-actions .btn { flex: 1 1 auto; }
}

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.back-link:hover { color: var(--ink); text-decoration: none; }
.back-link .icon { width: 16px; height: 16px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb b { color: var(--ink); font-weight: 600; }
.breadcrumb > span { color: var(--n-300); }

/* Alertas e notificações ------------------------------------------------------ */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); font-size: var(--fs-14); color: var(--ink-2); }
.alert > .icon { flex: none; margin-top: 1px; }
.alert > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.alert b { color: var(--ink); }
.alert-success { background: var(--success-bg); border-color: rgba(31, 122, 72, .25); color: var(--success); }
.alert-success b { color: var(--success); }
.alert-warning { background: var(--warning-bg); border-color: rgba(168, 109, 15, .25); color: var(--warning); }
.alert-warning b { color: var(--warning); }
.alert-danger { background: var(--danger-bg); border-color: rgba(184, 58, 58, .25); color: var(--danger); }
.alert-danger b { color: var(--danger); }
.alert-info { background: var(--info-bg); border-color: rgba(43, 110, 166, .25); color: var(--info); }
.alert-info b { color: var(--info); }
.alert .btn { flex: none; align-self: center; }

.flash-stack { position: fixed; z-index: 900; top: 12px; right: 12px; left: 12px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
@media (min-width: 720px) { .flash-stack { left: auto; width: 380px; } }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--ink); color: #fff; font-size: var(--fs-14); box-shadow: var(--shadow-md); pointer-events: auto; animation: fg-flash-in .22s var(--ease); }
.flash > .icon { flex: none; margin-top: 1px; }
.flash > span { flex: 1; min-width: 0; }
.flash > button { flex: none; width: 28px; height: 28px; margin: -4px -6px -4px 0; border-radius: var(--r-sm); color: rgba(255, 255, 255, .7); font-size: 20px; line-height: 1; }
.flash > button:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.flash--success { background: var(--green-800); }
.flash--error { background: var(--danger); }
.flash.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
@keyframes fg-flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.toast { position: fixed; z-index: 950; left: 50%; bottom: calc(var(--dock-h) + var(--safe-b) + 16px); transform: translateX(-50%); padding: 10px 16px; border-radius: var(--r-full); background: var(--ink); color: #fff; font-size: var(--fs-14); font-weight: 600; box-shadow: var(--shadow-md); max-width: calc(100% - 32px); text-align: center; }
@media (min-width: 980px) { .toast { bottom: 24px; } }

.network-status { position: fixed; z-index: 960; left: 50%; bottom: calc(var(--dock-h) + var(--safe-b) + 16px); transform: translateX(-50%); padding: 10px 16px; border-radius: var(--r-full); background: var(--green-800); color: #fff; font-size: var(--fs-13); font-weight: 600; box-shadow: var(--shadow-md); }
.network-status.is-offline { background: var(--danger); }
@media (min-width: 980px) { .network-status { bottom: 24px; } }

/* Estados vazios ---------------------------------------------------------------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; text-align: center; color: var(--muted); }
.empty > .icon { width: 36px; height: 36px; color: var(--n-400); }
.empty h2, .empty h3, .empty b { font-size: var(--fs-16); color: var(--ink); font-weight: 600; }
.empty p { font-size: var(--fs-14); max-width: 420px; }
.empty .btn { margin-top: 8px; }
.empty--compact { padding: 24px 16px; }
.empty--panel { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }

/* Progresso ----------------------------------------------------------------------- */
.progress { position: relative; height: 6px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.progress > b, .progress > i { display: block; height: 100%; border-radius: var(--r-full); background: var(--green-600); transition: width .4s var(--ease); }
.progress--accent > b, .progress--accent > i { background: var(--gold-500); }
.progress--danger > b, .progress--danger > i { background: var(--danger); }
.progress-row { display: flex; align-items: center; gap: 12px; }
.progress-row .progress { flex: 1; }
.progress-row strong { font-size: var(--fs-14); font-variant-numeric: tabular-nums; }

/* Linha do tempo -------------------------------------------------------------------- */
.timeline { display: flex; flex-direction: column; }
.timeline > article { position: relative; display: flex; gap: 14px; padding: 0 0 18px 0; }
.timeline > article::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: -4px; width: 1px; background: var(--line); }
.timeline > article:last-child::before { display: none; }
.timeline > article > i { flex: none; width: 11px; height: 11px; margin-top: 5px; border-radius: 50%; background: var(--green-600); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.timeline > article > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.timeline b { font-size: var(--fs-14); font-weight: 600; }
.timeline p { font-size: var(--fs-14); color: var(--ink-2); }
.timeline small, .timeline time { font-size: var(--fs-12); color: var(--muted); }
.timeline strong { font-variant-numeric: tabular-nums; }

/* Paginação ----------------------------------------------------------------------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: var(--sp-5); font-size: var(--fs-14); }
.pagination > a, .pagination > span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); font-weight: 600; color: var(--ink-2); }
.pagination > a:hover { border-color: var(--n-400); text-decoration: none; }
.pagination > span.is-disabled { opacity: .45; }
.pagination > div { display: flex; gap: 4px; }
.pagination > div a, .pagination > div strong, .pagination > div span { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--r-md); font-weight: 600; color: var(--ink-2); }
.pagination > div a:hover { background: var(--surface-3); text-decoration: none; }
.pagination > div strong { background: var(--green-800); color: #fff; }
@media (max-width: 479px) {
    .pagination > div { display: none; }
    .pagination > a, .pagination > span { flex: 1; justify-content: center; }
}

/* Diálogos e menus --------------------------------------------------------------------- */
dialog.modal { width: min(560px, calc(100% - 32px)); max-height: min(90vh, 90dvh); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
dialog.modal::backdrop { background: rgba(14, 20, 16, .55); backdrop-filter: blur(2px); }
dialog.modal--wide { width: min(900px, calc(100% - 32px)); }
dialog.modal--sm { width: min(420px, calc(100% - 32px)); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.modal-head > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.modal-head h2 { font-size: var(--fs-18); }
.modal-head p { font-size: var(--fs-14); color: var(--muted); }
.modal-close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin: -6px -8px 0 0; border-radius: var(--r-md); color: var(--muted); font-size: 24px; line-height: 1; }
.modal-close:hover { background: var(--surface-3); color: var(--ink); }
.modal-body { padding: 4px 20px 20px; overflow-y: auto; max-height: min(70vh, 70dvh); }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 719px) {
    dialog.modal { width: 100%; max-width: 100%; max-height: 100%; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; }
    dialog.modal--sheet-top { margin: 0 0 auto; border-radius: 0 0 var(--r-xl) var(--r-xl); }
    .modal-body { max-height: calc(100dvh - 160px); }
    .modal-foot { padding-bottom: calc(12px + var(--safe-b)); }
}

.popover { position: absolute; z-index: 60; min-width: 240px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.popover[hidden] { display: none; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: var(--r-md); font-size: var(--fs-14); font-weight: 500; color: var(--ink); text-align: left; }
.menu-item:hover { background: var(--surface-3); text-decoration: none; }
.menu-item .icon { color: var(--muted); }
.menu-item--danger { color: var(--danger); }
.menu-sep { height: 1px; margin: 6px 4px; background: var(--line); }

/* Grelha de métricas em painel (ficha) ---------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.facts > div, .facts > article { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface); min-width: 0; }
.facts small { font-size: var(--fs-12); color: var(--muted); font-weight: 600; }
.facts strong { font-size: var(--fs-16); font-weight: 700; overflow-wrap: anywhere; }
.facts span { font-size: var(--fs-12); color: var(--muted); }
@media (max-width: 479px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Lista de checagem (progresso de documentos etc.) */
.checklist { display: flex; flex-wrap: wrap; gap: 8px; }
.checklist span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-full); background: var(--surface-3); font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.checklist span.is-ready { background: var(--success-bg); color: var(--success); }

/* Ações de perigo */
.danger-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: var(--sp-6); padding: 16px 20px; border: 1px solid rgba(184, 58, 58, .3); border-radius: var(--r-lg); background: var(--surface); }
.danger-zone b { font-size: var(--fs-14); }
.danger-zone p { font-size: var(--fs-13); color: var(--muted); }

/* Marca ---------------------------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--green-800); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__word { font-size: var(--fs-20); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.brand__word em { color: var(--gold-600); font-style: normal; }
.brand__image { max-height: 36px; width: auto; max-width: 160px; object-fit: contain; }
.brand--light { color: #fff; }
.brand--light .brand__word em { color: var(--gold-400); }
.brand--sm .brand__mark { width: 28px; height: 28px; }
.brand--sm .brand__word { font-size: var(--fs-16); }
.brand--sm .brand__image { max-height: 28px; }
.brand__fallback { display: none; }
.brand.is-logo-missing .brand__image { display: none; }
.brand.is-logo-missing .brand__fallback { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }

/* ==========================================================================
   Layout público · cabeçalho, navegação, rodapé, cards de oportunidade
   ========================================================================== */

.site { display: flex; flex-direction: column; min-height: 100dvh; }
.site > main { flex: 1 0 auto; }

/* Cabeçalho ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: var(--r-md); font-size: var(--fs-14); font-weight: 600; color: var(--ink-2); }
.site-nav a:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.site-nav a.is-active { color: var(--green-800); background: var(--primary-soft); }
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-header__account { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: var(--r-full); font-size: var(--fs-13); font-weight: 600; color: var(--ink); }
.site-header__account:hover { border-color: var(--n-400); text-decoration: none; }
.site-header__account .avatar { width: 30px; height: 30px; font-size: var(--fs-12); }
.menu-button { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--r-md); color: var(--ink); }
.menu-button:hover { background: var(--surface-3); }
@media (max-width: 979px) {
    .site-nav, .site-header__account em, .site-header__logout { display: none; }
    .site-header__actions .btn { min-height: 38px; padding: 0 12px; font-size: var(--fs-13); }
    .menu-button { display: inline-flex; }
}
@media (max-width: 479px) {
    .site-header__actions .site-header__login { display: none; }
}

/* Menu móvel (folha lateral) */
dialog.site-menu { position: fixed; inset: 0; width: min(360px, 88vw); height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--surface); box-shadow: var(--shadow-lg); }
dialog.site-menu::backdrop { background: rgba(14, 20, 16, .5); }
.site-menu__inner { display: flex; flex-direction: column; height: 100%; padding-top: var(--safe-t); }
.site-menu__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.site-menu__nav { display: flex; flex-direction: column; padding: 8px; }
.site-menu__nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); color: var(--ink); font-weight: 600; }
.site-menu__nav a small { display: block; font-size: var(--fs-12); font-weight: 400; color: var(--muted); }
.site-menu__nav a:hover, .site-menu__nav a.is-active { background: var(--surface-3); text-decoration: none; }
.site-menu__nav a .icon { color: var(--green-700); }
.site-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 16px; padding-bottom: calc(16px + var(--safe-b)); border-top: 1px solid var(--line); }
.site-menu__foot .app-version { font-size: var(--fs-11); color: var(--muted-2); text-align: center; }

/* Navegação inferior (celular) ----------------------------------------------- */
.mobile-dock { position: sticky; bottom: 0; z-index: 40; display: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px 4px calc(6px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); }
.mobile-dock a, .mobile-dock button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; border-radius: var(--r-md); font-size: var(--fs-11); font-weight: 600; color: var(--muted); }
.mobile-dock a:hover, .mobile-dock button:hover { text-decoration: none; }
.mobile-dock .icon { width: 22px; height: 22px; }
.mobile-dock .is-active { color: var(--green-800); }
.mobile-dock .is-primary { color: var(--green-800); }
.mobile-dock .is-primary .icon { width: 40px; height: 40px; padding: 9px; margin-top: -14px; border-radius: 50%; background: var(--gold-500); color: var(--green-900); box-shadow: var(--shadow-md); }
@media (max-width: 979px) { .mobile-dock { display: grid; } }

/* Barra de ações contextual (página da oportunidade, celular) */
.action-bar { position: sticky; bottom: 0; z-index: 40; display: none; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); }
.action-bar .btn { flex: 1; min-height: 46px; }
.action-bar .btn-icon { flex: none; width: 46px; }
@media (max-width: 979px) { .action-bar { display: flex; } }

/* Rodapé ------------------------------------------------------------------- */
.site-footer { margin-top: auto; background: var(--green-900); color: rgba(255, 255, 255, .78); }
.site-footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; padding: 48px var(--gutter) 40px; }
.site-footer__brand p { max-width: 320px; margin-top: 12px; font-size: var(--fs-14); }
.site-footer h3 { margin-bottom: 12px; font-size: var(--fs-12); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.site-footer__col a, .site-footer__col button { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-14); color: rgba(255, 255, 255, .82); text-align: left; }
.site-footer__col a:hover, .site-footer__col button:hover { color: #fff; text-decoration: none; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 16px var(--gutter) calc(16px + var(--safe-b)); border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-12); color: rgba(255, 255, 255, .55); }
.social-links { display: flex; gap: 8px; margin-top: 16px; }
.social-links a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-md); background: rgba(255, 255, 255, .08); color: #fff; }
.social-links a:hover { background: rgba(255, 255, 255, .16); }
@media (max-width: 979px) { .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 36px var(--gutter) 28px; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .site-footer__top { grid-template-columns: minmax(0, 1fr); } }

/* Seções --------------------------------------------------------------------- */
.section { padding: clamp(36px, 6vw, 64px) 0; }
.section--tight { padding: clamp(24px, 4vw, 40px) 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Hero simples (páginas internas) */
.page-hero { padding: clamp(28px, 5vw, 48px) 0 clamp(20px, 3vw, 32px); }
.page-hero h1 { font-size: clamp(var(--fs-28), 3.6vw, var(--fs-40)); max-width: 20ch; }
.page-hero p { margin-top: 10px; max-width: 56ch; font-size: var(--fs-16); color: var(--ink-2); }
.page-hero--dark { background: var(--green-800); color: #fff; }
.page-hero--dark h1 { color: #fff; }
.page-hero--dark p { color: rgba(255, 255, 255, .78); }
.page-hero__grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Grade de cards --------------------------------------------------------------- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
@media (max-width: 719px) { .listing-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; } }
@media (max-width: 479px) { .listing-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1600px) { .listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Card de oportunidade */
.listing-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.listing-card:hover { border-color: var(--n-400); box-shadow: var(--shadow-md); }
.listing-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-3); overflow: hidden; }
.listing-card__media img, .listing-card__media video, .listing-card__media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.listing-card__tags { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.listing-card__tags span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: var(--r-full); background: rgba(255, 255, 255, .92); font-size: var(--fs-11); font-weight: 700; color: var(--ink); backdrop-filter: blur(4px); }
.listing-card__tags .is-featured { background: var(--gold-500); color: var(--green-900); }
.listing-card__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.listing-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-12); color: var(--muted); }
.listing-card__meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-card h3 { font-size: var(--fs-16); font-weight: 700; line-height: 1.3; }
.listing-card h3 a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-card h3 a::after { content: ""; position: absolute; inset: 0; }
.listing-card h3 a:hover { text-decoration: none; }
.listing-card__facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-13); color: var(--ink-2); }
.listing-card__facts b { font-weight: 700; color: var(--ink); }
.listing-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.listing-card__price { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.listing-card__price small { font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.listing-card__price strong { font-size: var(--fs-18); font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.listing-card__price span { font-size: var(--fs-12); color: var(--muted); }
.listing-card__save { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-full); font-size: var(--fs-12); font-weight: 600; color: var(--ink-2); background: var(--surface); }
.listing-card__save:hover { border-color: var(--n-400); }
.listing-card__save.is-selected { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.listing-card__save .icon { width: 15px; height: 15px; }
.listing-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--green-100); color: var(--green-700); font-weight: 800; letter-spacing: .06em; }
.media-preview__play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.media-preview__play::before { content: ""; width: 48px; height: 48px; border-radius: 50%; background: rgba(13, 42, 29, .7); }
.media-preview__play::after { content: ""; position: absolute; width: 0; height: 0; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }

/* Cards horizontais (listas compactas de oportunidades) */
.listing-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; }
.listing-row:hover { border-color: var(--n-400); text-decoration: none; }
.listing-row__media { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--surface-3); }
.listing-row__media img { width: 100%; height: 100%; object-fit: cover; }
.listing-row__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.listing-row__body small { font-size: var(--fs-12); color: var(--muted); }
.listing-row__body b { font-size: var(--fs-14); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-row__body strong { font-size: var(--fs-14); font-variant-numeric: tabular-nums; }

/* Faixa de chamada (CTA) --------------------------------------------------------- */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 28px 32px; background: var(--green-800); color: #fff; border-radius: var(--r-xl); }
.cta-band h2 { font-size: var(--fs-22); color: #fff; }
.cta-band p { margin-top: 4px; font-size: var(--fs-14); color: rgba(255, 255, 255, .78); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 719px) { .cta-band { padding: 22px 20px; } .cta-band__actions { width: 100%; } .cta-band__actions .btn { flex: 1; } }

/* Diálogos globais do público (salvos, comparação, compartilhar, instalação) ---------- */
.shortlist-dock { position: fixed; z-index: 45; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: var(--r-full); background: var(--green-800); color: #fff; font-size: var(--fs-13); font-weight: 600; box-shadow: var(--shadow-md); }
.shortlist-dock b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-full); background: var(--gold-500); color: var(--green-900); font-size: var(--fs-12); }
@media (max-width: 979px) { .shortlist-dock { display: none; } }
.shortlist-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shortlist-item:last-child { border-bottom: 0; }
.shortlist-item__thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--green-100); color: var(--green-700); font-weight: 800; font-size: var(--fs-12); }
.shortlist-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.shortlist-item__copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; color: inherit; }
.shortlist-item__copy small { font-size: var(--fs-12); color: var(--muted); }
.shortlist-item__copy strong { font-size: var(--fs-14); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shortlist-item__copy span { font-size: var(--fs-12); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shortlist-item__copy b { font-size: var(--fs-13); }
.shortlist-item__remove { width: 32px; height: 32px; border-radius: var(--r-md); color: var(--muted); font-size: 20px; }
.shortlist-item__remove:hover { background: var(--surface-3); color: var(--danger); }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.compare-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.compare-card__media { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--green-100); color: var(--green-700); font-weight: 800; }
.compare-card__media img { width: 100%; height: 100%; object-fit: cover; }
.compare-card small { font-size: var(--fs-12); color: var(--muted); }
.compare-card h3 { font-size: var(--fs-14); }
.compare-card__price strong { display: block; font-size: var(--fs-18); }
.compare-card__metric { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: var(--fs-13); }
.compare-card__metric span { color: var(--muted); }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.share-grid a, .share-grid button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-14); font-weight: 600; color: var(--ink); text-align: left; }
.share-grid a:hover, .share-grid button:hover { border-color: var(--n-400); text-decoration: none; }
.share-grid .icon { color: var(--green-700); }
.install-prompt { position: fixed; z-index: 46; left: 12px; right: 12px; bottom: calc(var(--dock-h) + var(--safe-b) + 12px); display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.install-prompt img { width: 44px; height: 44px; border-radius: 10px; }
.install-prompt > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.install-prompt b { font-size: var(--fs-14); }
.install-prompt p { font-size: var(--fs-12); color: var(--muted); }
.install-prompt__close { position: absolute; top: 4px; right: 6px; width: 28px; height: 28px; color: var(--muted); font-size: 18px; }
@media (min-width: 980px) { .install-prompt { display: none; } }
.consent { position: fixed; z-index: 47; left: 12px; right: 12px; bottom: calc(var(--dock-h) + var(--safe-b) + 12px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); font-size: var(--fs-13); }
.consent > div:first-child { flex: 1 1 320px; }
.consent b { display: block; font-size: var(--fs-14); }
.consent p { color: var(--muted); }
.consent__actions { display: flex; gap: 8px; }
@media (min-width: 980px) { .consent { left: auto; right: 24px; bottom: 24px; max-width: 520px; } }
.permission-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.permission-row:last-child { border-bottom: 0; }
.permission-row > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--green-700); }
.permission-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.permission-row b { font-size: var(--fs-14); }
.permission-row small { font-size: var(--fs-12); color: var(--muted); }
.permission-row em { font-size: var(--fs-11); color: var(--green-600); font-weight: 600; }
.permission-row button { flex: none; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); font-size: var(--fs-13); font-weight: 600; }
.permission-row button:disabled { opacity: .5; }

/* Splash do aplicativo instalado */
.app-launch { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: #fff; }
.app-launch img { width: 88px; height: 88px; border-radius: 22px; }
.app-launch.is-exiting { opacity: 0; transition: opacity .18s; }

/* ==========================================================================
   Páginas públicas · home, catálogo, oportunidade, ferramentas, conta, auth
   ========================================================================== */

/* Home ------------------------------------------------------------------------ */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 5vw, 56px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(var(--fs-32), 4.6vw, 52px); line-height: 1.08; letter-spacing: -.03em; max-width: 14ch; }
.hero h1 em { color: var(--green-600); }
.hero__lead { margin-top: 16px; max-width: 48ch; font-size: var(--fs-18); color: var(--ink-2); }
.hero__search { display: flex; margin-top: 24px; max-width: 560px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.hero__search:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(35, 112, 74, .16); }
.hero__search label { flex: 1; display: flex; align-items: center; gap: 10px; padding-left: 14px; min-width: 0; }
.hero__search label .icon { color: var(--muted); }
.hero__search input { flex: 1; min-width: 0; min-height: 52px; border: 0; background: transparent; font-size: var(--fs-16); }
.hero__search button { flex: none; margin: 5px; border-radius: var(--r-md); }
.hero__shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero__shortcuts a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--surface); font-size: var(--fs-13); font-weight: 600; color: var(--ink); }
.hero__shortcuts a:hover { border-color: var(--n-400); text-decoration: none; }
.hero__shortcuts a small { font-weight: 500; color: var(--muted); }
.hero__shortcuts .icon { color: var(--green-700); }
.hero__media { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-xl); overflow: hidden; background: var(--green-100); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media figcaption { position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; padding: 12px 16px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .94); backdrop-filter: blur(4px); }
.hero__media figcaption span { font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.hero__media figcaption strong { font-size: var(--fs-24); line-height: 1.1; }
.hero__media figcaption small { font-size: var(--fs-12); color: var(--muted); }
@media (max-width: 979px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr); }
    .hero__media { aspect-ratio: 16 / 9; order: -1; }
    .hero h1 { max-width: none; }
}
@media (max-width: 479px) {
    .hero { padding-top: 20px; }
    .hero__media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
    .hero__search button span { display: none; }
    .hero__search button { width: 44px; padding: 0; }
    .hero__lead { font-size: var(--fs-16); }
}

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps article { display: flex; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.steps article > span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-800); color: #fff; font-size: var(--fs-13); font-weight: 700; }
.steps b { display: block; font-size: var(--fs-16); }
.steps p { margin-top: 3px; font-size: var(--fs-14); color: var(--muted); }
@media (max-width: 719px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 10px; } .steps article { padding: 14px 16px; } }

.tool-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tool-links > a, .tool-links > button { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; text-align: left; }
.tool-links > a:hover, .tool-links > button:hover { border-color: var(--n-400); text-decoration: none; }
.tool-links i { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--green-700); }
.tool-links b { display: block; font-size: var(--fs-15); }
.tool-links small { display: block; margin-top: 2px; font-size: var(--fs-13); color: var(--muted); }
.tool-links em { margin-left: auto; color: var(--muted); }

.region-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.region-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); }
.region-nav a:hover { border-color: var(--n-400); text-decoration: none; }
.region-nav a.is-active { border-color: var(--green-700); background: var(--primary-soft); }
.region-nav b { font-size: var(--fs-16); }
.region-nav span { font-size: var(--fs-12); color: var(--muted); }

.pressure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pressure-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r-lg); color: inherit; }
.pressure-card:hover { text-decoration: none; border-color: var(--n-400); }
.pressure-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pressure-card header b { font-size: var(--fs-20); }
.pressure-card header span { font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.pressure-card__values { display: flex; align-items: center; gap: 12px; }
.pressure-card__values p { display: flex; flex-direction: column; }
.pressure-card__values small { font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pressure-card__values strong { font-size: var(--fs-18); }
.pressure-card__values i { color: var(--n-300); font-style: normal; }
.pressure-card footer { font-size: var(--fs-13); font-weight: 600; color: var(--green-600); }
.pressure-card--high, .pressure-card--hot { border-left-color: var(--danger); }
.pressure-card--balanced, .pressure-card--warm { border-left-color: var(--gold-500); }
.pressure-card--low, .pressure-card--cold, .pressure-card--quiet { border-left-color: var(--n-300); }

/* Catálogo ----------------------------------------------------------------------- */
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.catalog-filters { margin-bottom: 16px; }
.catalog-filters[hidden] { display: none; }
.catalog-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: var(--fs-14); color: var(--muted); }
.catalog-summary strong { font-size: var(--fs-18); color: var(--ink); }
@media (max-width: 719px) {
    dialog.catalog-sheet { width: 100%; max-width: 100%; margin: auto 0 0; }
}

/* Página da oportunidade ---------------------------------------------------------------- */
.op-head { padding: 20px 0 16px; }
.op-head .breadcrumb { margin-bottom: 12px; }
.op-head__grid { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; }
.op-head__title { min-width: 0; flex: 1 1 520px; display: flex; flex-direction: column; gap: 8px; }
.op-head__title h1 { font-size: clamp(var(--fs-24), 3vw, var(--fs-32)); }
.op-head__title p { font-size: var(--fs-16); color: var(--ink-2); max-width: 70ch; }
.op-head__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.op-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: var(--fs-14); color: var(--ink-2); }
.op-head__meta .icon { color: var(--green-700); }
.op-head__meta a { font-weight: 600; }
.op-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.op-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.op-aside { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.op-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
@media (max-width: 979px) { .op-grid { grid-template-columns: minmax(0, 1fr); } .op-aside { position: static; } }
@media (min-width: 1280px) { .op-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; } }

.gallery { display: flex; flex-direction: column; gap: 8px; }
.gallery__main { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--green-900); container-type: inline-size; }
.gallery__main .branded-media, .gallery__render { width: 100%; height: 100%; }
.gallery__render img, .gallery__render video, .gallery__render iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.gallery__render .listing-card__placeholder { height: 100%; }
.gallery__count { position: absolute; left: 12px; bottom: 12px; z-index: 8; display: flex; gap: 6px; }
.gallery__count span { padding: 4px 9px; border-radius: var(--r-full); background: rgba(13, 42, 29, .72); color: #fff; font-size: var(--fs-11); font-weight: 600; backdrop-filter: blur(4px); }
.gallery__fullscreen { position: absolute; right: 12px; bottom: 12px; z-index: 9; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: rgba(13, 42, 29, .72); color: #fff; backdrop-filter: blur(4px); }
.gallery__fullscreen:hover { background: rgba(13, 42, 29, .9); }
.gallery__rail { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery__rail button { position: relative; flex: none; width: 96px; aspect-ratio: 4 / 3; border: 2px solid transparent; border-radius: var(--r-md); overflow: hidden; background: var(--surface-3); opacity: .75; transition: opacity var(--t-fast), border-color var(--t-fast); }
.gallery__rail button:hover, .gallery__rail button.is-active { opacity: 1; }
.gallery__rail button.is-active { border-color: var(--green-700); }
.gallery__rail button .branded-media { width: 100%; height: 100%; }
.gallery__rail button i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 14px; font-style: normal; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.gallery__external { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; color: #fff; }
.gallery__external span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .15); font-size: 22px; }
.gallery__external b { font-size: var(--fs-16); }
.gallery__external small { color: rgba(255, 255, 255, .7); }
.gallery__main.is-overlay-fullscreen { position: fixed; inset: 0; z-index: 1500; aspect-ratio: auto; border-radius: 0; display: grid; place-items: center; }
.gallery__main.is-overlay-fullscreen .branded-media { width: var(--fg-video-width, 100vw); height: var(--fg-video-height, 100vh); }
.gallery__main:fullscreen, .gallery__main:-webkit-full-screen { aspect-ratio: auto; border-radius: 0; display: grid; place-items: center; background: #000; }
.gallery__main:fullscreen .branded-media { width: var(--fg-video-width, 100vw); height: var(--fg-video-height, 100vh); }
html.video-overlay-fullscreen-open { overflow: hidden; }

.op-panel { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.op-panel--price { border-color: var(--green-800); border-width: 1px; }
.op-price { display: flex; flex-direction: column; gap: 2px; }
.op-price > span { font-size: var(--fs-12); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.op-price > strong { font-size: var(--fs-32); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--green-800); }
.op-price > small { font-size: var(--fs-13); color: var(--muted); }
.op-price > p { font-size: var(--fs-13); color: var(--ink-2); margin-top: 6px; }
.op-availability { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-13); font-weight: 600; color: var(--success); }
.op-availability::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.op-availability.is-closed { color: var(--muted); }
.op-payment { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-13); }
.op-payment span { font-weight: 600; color: var(--muted); }
.op-panel__note { font-size: var(--fs-12); color: var(--muted); line-height: 1.5; }
.op-panel__assurance { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--fs-12); color: var(--muted); }
.op-panel__assurance span { display: inline-flex; align-items: center; gap: 6px; }
.op-panel__assurance .icon { width: 15px; height: 15px; color: var(--green-600); }
.quick-questions { display: flex; flex-direction: column; gap: 6px; }
.quick-questions span { font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.quick-questions a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-13); font-weight: 600; color: var(--ink); }
.quick-questions a:hover { border-color: var(--n-400); text-decoration: none; }
.quick-questions .icon { width: 16px; height: 16px; color: var(--whatsapp); }
.offer-form { display: flex; flex-direction: column; gap: 12px; }
.offer-calc { padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); font-size: var(--fs-13); color: var(--ink-2); }
.offer-calc:empty { display: none; }
.offer-calc b { display: block; font-size: var(--fs-14); color: var(--ink); margin: 2px 0; }
.offer-calc small { font-size: var(--fs-12); color: var(--muted); }
.offer-calc.is-negative small { color: var(--warning); }
.increment-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.increment-row > span { width: 100%; font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.increment-row button { min-height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-full); font-size: var(--fs-12); font-weight: 600; color: var(--ink-2); background: var(--surface); }
.increment-row button:hover { border-color: var(--n-400); }
.tool-callout { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: inherit; }
.tool-callout:hover { border-color: var(--n-400); text-decoration: none; }
.tool-callout > span { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: var(--r-md); background: var(--gold-100); color: var(--gold-700); }
.tool-callout > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tool-callout b { font-size: var(--fs-14); }
.tool-callout small { font-size: var(--fs-12); color: var(--muted); }
.op-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.op-facts > div { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--surface); }
.op-facts small { font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.op-facts strong { font-size: var(--fs-20); font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.op-facts span { font-size: var(--fs-12); color: var(--muted); }
@media (max-width: 479px) { .op-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .op-facts strong { font-size: var(--fs-18); } }
.op-section { display: flex; flex-direction: column; gap: 14px; }
.op-section > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.op-section > header h2 { font-size: var(--fs-20); }
.op-section > header p { font-size: var(--fs-13); color: var(--muted); }
.op-description { font-size: var(--fs-16); line-height: 1.7; color: var(--ink-2); }
.op-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.op-points article { display: flex; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.op-points article > span { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--green-700); }
.op-points b { display: block; font-size: var(--fs-14); }
.op-points p { margin-top: 2px; font-size: var(--fs-13); color: var(--ink-2); }
.op-summary { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.op-summary > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.op-summary > header h2 { font-size: var(--fs-18); }
.op-summary__score { text-align: right; }
.op-summary__score strong { display: block; font-size: var(--fs-24); line-height: 1; color: var(--green-800); }
.op-summary__score small { font-size: var(--fs-12); color: var(--muted); }
.op-summary__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.landed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.landed .field .input-group input { min-width: 0; }
.landed-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.landed-results article { padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); }
.landed-results small { display: block; font-size: var(--fs-12); color: var(--muted); }
.landed-results strong { font-size: var(--fs-16); font-variant-numeric: tabular-nums; }
.demand-pulse { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--gold-500); border-radius: var(--r-lg); background: var(--surface); }
.demand-pulse--hot, .demand-pulse--high { border-left-color: var(--danger); }
.demand-pulse--quiet, .demand-pulse--low { border-left-color: var(--n-300); }
.demand-pulse > div:first-child { flex: 1 1 260px; }
.demand-pulse h2 { font-size: var(--fs-16); }
.demand-pulse p { font-size: var(--fs-13); color: var(--ink-2); margin-top: 2px; }
.demand-pulse strong { font-size: var(--fs-20); }
.demand-pulse footer { width: 100%; font-size: var(--fs-11); color: var(--muted); }
.attribute-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 20px; margin: 0; }
.attribute-list > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.attribute-list dt { font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.attribute-list dd { margin: 2px 0 0; font-size: var(--fs-14); }

/* Ferramentas (ponto de compra / lote pronto) --------------------------------------- */
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.tool-grid > aside { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 979px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } .tool-grid > aside { position: static; } }
.tool-result { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--green-900); color: #fff; border-radius: var(--r-xl); }
.tool-result h2, .tool-result h3, .tool-result strong { color: #fff; }
.tool-result small, .tool-result p { color: rgba(255, 255, 255, .7); }
.tool-result__status { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.tool-result__status b { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-14); }
.tool-result__status b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.tool-result__status[data-state="good"] b::before { background: #5fd18a; }
.tool-result__status[data-state="attention"] b::before { background: var(--gold-400); }
.tool-result__status[data-state="risk"] b::before { background: #ff8a80; }
.tool-result__status small { font-size: var(--fs-13); }
.tool-result__ceiling > span { font-size: var(--fs-12); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: rgba(255, 255, 255, .6); }
.tool-result__ceiling > strong { display: block; font-size: var(--fs-40); line-height: 1.05; letter-spacing: -.02em; margin: 4px 0; color: var(--gold-400); font-variant-numeric: tabular-nums; }
.tool-result__ceiling > small { font-size: var(--fs-13); }
.tool-result__gap { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-12); }
.tool-result__gap i { display: block; height: 6px; border-radius: var(--r-full); background: rgba(255, 255, 255, .15); overflow: hidden; }
.tool-result__gap i em { display: block; height: 100%; width: 0; background: #5fd18a; transition: width .3s; }
.tool-result__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tool-result__kpis article { padding: 10px 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .07); }
.tool-result__kpis span { display: block; font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: rgba(255, 255, 255, .6); }
.tool-result__kpis strong { display: block; font-size: var(--fs-16); margin-top: 2px; font-variant-numeric: tabular-nums; }
.tool-result__kpis small { font-size: var(--fs-11); }
.tool-scenarios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tool-scenarios article { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: var(--r-md); background: rgba(255, 255, 255, .07); font-size: var(--fs-12); }
.tool-scenarios article b { font-size: var(--fs-14); }
.tool-scenarios article i { display: block; height: 4px; border-radius: var(--r-full); background: rgba(255, 255, 255, .15); overflow: hidden; }
.tool-scenarios article i em { display: block; height: 100%; width: 0; background: #5fd18a; }
.tool-bottleneck { padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, .07); }
.tool-bottleneck > span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--gold-400); }
.tool-bottleneck h3 { margin-top: 6px; font-size: var(--fs-14); }
.tool-bottleneck p { margin-top: 4px; font-size: var(--fs-13); }
.tool-result__actions { display: flex; flex-direction: column; gap: 8px; }
.tool-disclaimer { font-size: var(--fs-11); }
.tool-mobile-reading { display: none; position: sticky; top: var(--header-h); z-index: 30; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 10px 14px; border-radius: var(--r-lg); background: var(--green-900); color: #fff; }
.tool-mobile-reading small { display: block; font-size: var(--fs-11); color: rgba(255, 255, 255, .6); }
.tool-mobile-reading b { font-size: var(--fs-16); color: var(--gold-400); }
.tool-mobile-reading a { font-size: var(--fs-13); font-weight: 600; color: #fff; }
@media (max-width: 979px) { .tool-mobile-reading { display: flex; } }
.pp-field .input-group { min-height: 44px; }
.diagnostic-list { display: flex; flex-direction: column; gap: 8px; }
.diagnostic-list fieldset { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.diagnostic-list fieldset.is-ready { border-color: var(--success); background: var(--success-bg); }
.diagnostic-list legend { display: flex; align-items: center; gap: 12px; float: left; width: 100%; }
.diagnostic-list legend i { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--green-700); }
.diagnostic-list legend b { display: block; font-size: var(--fs-14); }
.diagnostic-list legend small { display: block; font-size: var(--fs-13); color: var(--muted); }
.diagnostic-list fieldset > div { display: flex; gap: 6px; width: 100%; padding-left: 48px; }
.diagnostic-list fieldset > div button { min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-full); font-size: var(--fs-13); font-weight: 600; background: var(--surface); }
.diagnostic-list fieldset > div button.is-active { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.gauge { --score: 0; position: relative; display: grid; place-items: center; width: 132px; height: 132px; margin: 0 auto; border-radius: 50%; background: conic-gradient(var(--gold-400) calc(var(--score) * 1%), rgba(255, 255, 255, .15) 0); }
.gauge::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--green-900); }
.gauge > span { position: relative; display: flex; flex-direction: column; align-items: center; }
.gauge strong { font-size: var(--fs-28); line-height: 1; }
.gauge small { font-size: var(--fs-11); text-transform: uppercase; letter-spacing: .04em; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-size: var(--fs-15); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 18px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 16px 14px; font-size: var(--fs-14); color: var(--ink-2); }

/* Formulário de interesse ---------------------------------------------------------------- */
.inquiry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 979px) { .inquiry-layout { grid-template-columns: minmax(0, 1fr); } .inquiry-layout > aside { order: -1; } }
.inquiry-form { display: flex; flex-direction: column; gap: 16px; }

/* Autenticação ---------------------------------------------------------------------------- */
.auth { display: grid; place-items: center; min-height: calc(100dvh - var(--header-h)); padding: 24px var(--gutter) 48px; }
.auth-card { width: 100%; max-width: 440px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.auth-card--wide { max-width: 640px; }
.auth-card > header { margin-bottom: 20px; }
.auth-card > header h1 { font-size: var(--fs-24); margin-top: 4px; }
.auth-card > header p { margin-top: 6px; font-size: var(--fs-14); color: var(--muted); }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-14); color: var(--muted); }
.auth-card__foot a { font-weight: 600; }
.auth-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.auth-steps span { flex: 1; height: 4px; border-radius: var(--r-full); background: var(--surface-3); }
.auth-steps span.is-active { background: var(--green-700); }
.auth-steps small { margin-left: 6px; font-size: var(--fs-12); color: var(--muted); white-space: nowrap; }
.code-field input { text-align: center; font-size: var(--fs-28); font-weight: 700; letter-spacing: .3em; }
@media (max-width: 479px) { .auth { padding-top: 12px; align-items: start; } .auth-card { padding: 24px 20px; border-radius: var(--r-lg); } }

/* Área do cliente --------------------------------------------------------------------------- */
.account-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 28px 0 20px; }
.account-head h1 { font-size: var(--fs-28); }
.account-head p { margin-top: 4px; font-size: var(--fs-14); color: var(--muted); }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 979px) { .account-grid { grid-template-columns: minmax(0, 1fr); } }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.quick-actions a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; }
.quick-actions a:hover { border-color: var(--n-400); text-decoration: none; }
.quick-actions .icon { flex: none; color: var(--green-700); }
.quick-actions b { display: block; font-size: var(--fs-14); }
.quick-actions small { display: block; font-size: var(--fs-12); color: var(--muted); }
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.match-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: inherit; }
.match-card:hover { border-color: var(--n-400); text-decoration: none; }
.match-card__media { aspect-ratio: 16 / 9; background: var(--surface-3); }
.match-card__media .branded-media { height: 100%; }
.match-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.match-card__body header { display: flex; justify-content: space-between; font-size: var(--fs-12); color: var(--muted); }
.match-card__body header strong { color: var(--success); }
.match-card h3 { font-size: var(--fs-15); }
.match-card p { font-size: var(--fs-13); color: var(--muted); }
.match-card__reasons { display: flex; flex-wrap: wrap; gap: 4px; }
.match-card__reasons span { padding: 2px 8px; border-radius: var(--r-full); background: var(--success-bg); color: var(--success); font-size: var(--fs-11); font-weight: 600; }
.match-card footer { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: var(--fs-13); }
.match-card footer b { font-size: var(--fs-15); }
.offer-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; }
.offer-row:hover { border-color: var(--n-400); text-decoration: none; }
.offer-row__media { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--surface-3); }
.offer-row__media .branded-media { height: 100%; }
.offer-row__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.offer-row__main small { font-size: var(--fs-12); color: var(--muted); }
.offer-row__main h3 { font-size: var(--fs-15); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-row__main p { font-size: var(--fs-13); color: var(--ink-2); }
.offer-row__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.offer-row__aside strong { font-size: var(--fs-14); font-variant-numeric: tabular-nums; }
.offer-row__aside strong.is-negative { color: var(--warning); }
@media (max-width: 479px) { .offer-row { grid-template-columns: 72px minmax(0, 1fr); } .offer-row__aside { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; } }
.state-block { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface-2); }
.state-block > i { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--green-800); color: #fff; font-style: normal; font-weight: 700; }
.state-block > i.is-success { background: var(--success); }
.state-block > i.is-muted { background: var(--n-300); color: var(--ink); }
.state-block h2 { font-size: var(--fs-16); margin-top: 2px; }
.state-block p { font-size: var(--fs-14); color: var(--ink-2); margin-top: 4px; }
.state-block span { font-size: var(--fs-12); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.doc-list { display: flex; flex-direction: column; gap: 6px; }
.doc-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); color: inherit; }
.doc-list a:hover { border-color: var(--n-400); text-decoration: none; }
.doc-list a .icon { flex: none; color: var(--green-700); }
.doc-list a > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-list b { font-size: var(--fs-14); }
.doc-list small { font-size: var(--fs-12); color: var(--muted); }

/* Gestão de fazendas (página comercial do Fácil Fazenda) --------------------------------- */
.ff-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); background: var(--green-900); color: #fff; }
.ff-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ff-hero__copy h1 { margin-top: 12px; font-size: clamp(var(--fs-32), 4.2vw, 50px); line-height: 1.08; letter-spacing: -.03em; color: #fff; max-width: 16ch; }
.ff-hero__copy > p { margin-top: 16px; max-width: 52ch; font-size: var(--fs-18); color: rgba(255, 255, 255, .78); }
.ff-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ff-hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.ff-hero__facts div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ff-hero__facts dt { font-size: var(--fs-11); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-400); }
.ff-hero__facts dd { margin: 0; font-size: var(--fs-13); color: rgba(255, 255, 255, .78); }
.ff-app { margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .12); }
.ff-app__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--green-800); color: #fff; font-size: var(--fs-12); }
.ff-app__bar b { font-size: var(--fs-13); }
.ff-app__bar small { margin-left: auto; color: rgba(255, 255, 255, .7); }
.ff-app__logo { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--gold-500); color: var(--green-900); font-size: 10px; font-weight: 800; }
.ff-app__body { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
.ff-app__nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-right: 1px solid var(--line); background: var(--surface-2); }
.ff-app__nav span { padding: 7px 10px; border-radius: var(--r-sm); font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.ff-app__nav span.is-active { background: var(--surface); color: var(--green-800); box-shadow: var(--shadow-sm); }
.ff-app__main { display: flex; flex-direction: column; gap: 12px; padding: 14px; min-width: 0; }
.ff-app__main > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ff-app__main > header small { display: block; font-size: var(--fs-11); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ff-app__main > header b { font-size: var(--fs-14); }
.ff-app__button { flex: none; padding: 6px 10px; border-radius: var(--r-sm); background: var(--green-800); color: #fff; font-size: var(--fs-12); font-weight: 700; }
.ff-app__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ff-app__kpis div { padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); }
.ff-app__kpis small { display: block; font-size: var(--fs-11); color: var(--muted); }
.ff-app__kpis b { display: block; margin-top: 2px; font-size: var(--fs-18); font-variant-numeric: tabular-nums; }
.ff-app__list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.ff-app__list > div { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); font-size: var(--fs-12); }
.ff-app__list-head { justify-content: space-between; border-top: 0 !important; background: var(--surface-2); font-size: var(--fs-11) !important; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ff-app__list i { flex: none; font-style: normal; font-weight: 700; color: var(--green-700); }
.ff-app__list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.ff-app__list em { flex: none; font-style: normal; font-weight: 600; color: var(--muted); }
.ff-app__list em.is-today { color: var(--danger); }
@media (max-width: 979px) {
    .ff-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .ff-hero__copy h1 { max-width: none; }
    .ff-hero__facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 479px) {
    .ff-app__body { grid-template-columns: minmax(0, 1fr); }
    .ff-app__nav { flex-direction: row; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
    .ff-app__nav span { flex: none; }
    .ff-app__kpis { grid-template-columns: minmax(0, 1fr); }
    .ff-hero__actions .btn { flex: 1 1 100%; }
}

.ff-bridge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.ff-bridge__copy h2 { margin-top: 10px; font-size: clamp(var(--fs-24), 2.6vw, var(--fs-32)); letter-spacing: -.02em; }
.ff-bridge__copy > p { margin-top: 12px; max-width: 52ch; font-size: var(--fs-16); color: var(--ink-2); }
.ff-bridge__copy > .link { margin-top: 20px; }
.ff-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.ff-steps li { display: flex; gap: 14px; list-style: none; }
.ff-steps li > span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green-800); color: #fff; font-size: var(--fs-13); font-weight: 700; }
.ff-steps b { display: block; font-size: var(--fs-15); }
.ff-steps p { margin-top: 2px; font-size: var(--fs-14); color: var(--muted); }
.ff-chart { margin: 0; padding: 20px 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.ff-chart figcaption { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.ff-chart figcaption b { display: block; font-size: var(--fs-16); margin-top: 4px; }
.ff-chart figcaption small { display: block; font-size: var(--fs-13); color: var(--muted); }
.ff-chart figcaption strong { flex: none; font-size: var(--fs-24); color: var(--green-700); font-variant-numeric: tabular-nums; }
.ff-chart svg { width: 100%; height: auto; display: block; font-family: var(--font); }
.ff-chart__grid { stroke: var(--line); stroke-width: 1; }
.ff-chart__tick { font-size: 11px; fill: var(--muted); }
.ff-chart__value { font-size: 12px; font-weight: 700; fill: var(--ink); }
.ff-chart__goal { stroke: var(--gold-500); stroke-width: 1.5; stroke-dasharray: 5 4; }
.ff-chart__goal-label { font-size: 11px; font-weight: 700; fill: var(--gold-700); }
.ff-chart__line { fill: none; stroke: var(--green-600); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ff-chart__dot { fill: var(--surface); stroke: var(--green-700); stroke-width: 2; }
.ff-chart__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ff-chart__facts small { display: block; font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ff-chart__facts b { display: block; margin-top: 2px; font-size: var(--fs-15); font-variant-numeric: tabular-nums; }
@media (max-width: 979px) { .ff-bridge { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479px) { .ff-chart { padding: 14px; } .ff-chart__facts { grid-template-columns: minmax(0, 1fr); } }

.ff-modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ff-modules article { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ff-modules article > i { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--green-700); }
.ff-modules article > span { font-size: var(--fs-11); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ff-modules h3 { font-size: var(--fs-16); }
.ff-modules p { font-size: var(--fs-14); color: var(--ink-2); }
@media (max-width: 979px) { .ff-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .ff-modules { grid-template-columns: minmax(0, 1fr); } }

.ff-cycle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ff-cycle article { position: relative; padding: 22px 20px; background: var(--green-800); color: #fff; border-radius: var(--r-lg); overflow: hidden; }
.ff-cycle article:nth-child(2) { background: var(--green-700); }
.ff-cycle article:nth-child(3) { background: var(--green-900); }
.ff-cycle span { position: absolute; right: 16px; top: 12px; font-size: var(--fs-40); font-weight: 800; letter-spacing: -.04em; color: rgba(255, 255, 255, .12); }
.ff-cycle h3 { font-size: var(--fs-20); color: #fff; }
.ff-cycle p { margin-top: 8px; font-size: var(--fs-14); color: rgba(255, 255, 255, .78); }
@media (max-width: 719px) { .ff-cycle { grid-template-columns: minmax(0, 1fr); } }

.ff-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.ff-principles { display: flex; flex-direction: column; gap: 10px; }
.ff-principles article { padding: 14px 16px; border-left: 3px solid var(--gold-500); background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0; }
.ff-principles b { font-size: var(--fs-15); }
.ff-principles p { margin-top: 3px; font-size: var(--fs-14); color: var(--muted); }
.ff-flow { display: flex; flex-direction: column; gap: 0; padding: 8px 0 0; }
.ff-flow li { position: relative; display: flex; gap: 14px; padding: 0 0 22px; list-style: none; }
.ff-flow li::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 1px; background: var(--line-strong); }
.ff-flow li:last-child::before { display: none; }
.ff-flow li > span { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); color: var(--green-700); }
.ff-flow b { display: block; font-size: var(--fs-16); margin-top: 8px; }
.ff-flow p { margin-top: 4px; font-size: var(--fs-14); color: var(--ink-2); }
@media (max-width: 979px) { .ff-how { grid-template-columns: minmax(0, 1fr); } }

.ff-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; }
.ff-brands li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.ff-brands b { font-size: var(--fs-13); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-brands small { font-size: var(--fs-11); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ff-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.ff-plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.ff-plan.is-featured { border-color: var(--green-800); box-shadow: 0 0 0 1px var(--green-800); }
.ff-plan__flag { position: absolute; top: -12px; left: 24px; padding: 4px 10px; border-radius: var(--r-full); background: var(--gold-500); color: var(--green-900); font-size: var(--fs-11); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ff-plan h3 { font-size: var(--fs-20); }
.ff-plan > p { font-size: var(--fs-14); color: var(--muted); min-height: 2.8em; }
.ff-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; padding: 10px 0 6px; }
.ff-plan__price small { font-size: var(--fs-14); font-weight: 700; color: var(--muted); }
.ff-plan__price strong { font-size: var(--fs-40); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ff-plan__price span { font-size: var(--fs-14); color: var(--muted); }
.ff-plan__price em { width: 100%; font-size: var(--fs-12); font-style: normal; color: var(--muted); }
.ff-plan__scale { font-size: var(--fs-13); font-weight: 700; color: var(--green-800); }
.ff-plan ul { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; padding: 0; }
.ff-plan li { display: flex; align-items: flex-start; gap: 8px; list-style: none; font-size: var(--fs-14); color: var(--ink-2); }
.ff-plan li .icon { flex: none; margin-top: 3px; color: var(--green-600); }
.ff-plan .btn { margin-top: auto; }
.ff-plans__note { margin-top: 16px; font-size: var(--fs-13); color: var(--muted); max-width: 80ch; }
.ff-plans__note a { font-weight: 600; }
.segmented small { margin-left: 4px; font-weight: 600; color: var(--green-600); }
@media (max-width: 979px) { .ff-plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
.ff-faq .faq { max-width: 760px; }

/* Páginas legais e de erro --------------------------------------------------------------- */
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.legal-grid > aside { position: sticky; top: calc(var(--header-h) + 16px); }
.legal-grid > aside p { margin-top: 8px; font-size: var(--fs-13); color: var(--muted); }
@media (max-width: 979px) { .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } .legal-grid > aside { position: static; } }
.error-page { display: grid; place-items: center; min-height: calc(100dvh - var(--header-h) - 200px); padding: 48px var(--gutter); text-align: center; }
.error-page > div { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 460px; }
.error-page span { font-size: var(--fs-48); font-weight: 800; color: var(--n-300); line-height: 1; }
.error-page h1 { font-size: var(--fs-24); }
.error-page p { color: var(--muted); }

/* Documentos compartilhados (contrato, mapa, lote pronto) ---------------------------------- */
.shared-doc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding: 24px 0 48px; }
.shared-doc > aside { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.shared-doc__text { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); font-size: var(--fs-15); line-height: 1.75; color: var(--ink-2); white-space: pre-line; }
@media (max-width: 979px) { .shared-doc { grid-template-columns: minmax(0, 1fr); } .shared-doc > aside { position: static; } }
.sale-map { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.sale-map > header h1, .sale-map > header h2 { font-size: var(--fs-22); }
.sale-map > header p { font-size: var(--fs-13); color: var(--muted); }
.sale-map__parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sale-map__parties article { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.sale-map__parties span { font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.sale-map__parties h2 { font-size: var(--fs-16); margin: 2px 0 6px; }
.sale-map__parties p { font-size: var(--fs-13); color: var(--ink-2); }
.sale-map__notes { display: flex; flex-direction: column; gap: 10px; }
.sale-map__notes span { font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.sale-map__notes p { font-size: var(--fs-14); }
.sale-map > footer { font-size: var(--fs-12); color: var(--muted); }
@media (max-width: 479px) { .sale-map__parties { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Administração · shell (barra lateral, topo, dock móvel) e diálogos
   ========================================================================== */

body.admin { background: #f3f4f1; font-size: var(--fs-15); }
body.admin { --sidebar-w: 248px; --sidebar-compact-w: 68px; --topbar-h: 60px; }

.admin-shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100dvh; transition: grid-template-columns var(--t-base) var(--ease); }
body.admin.nav-compact .admin-shell, html.nav-compact-pending body.admin .admin-shell { grid-template-columns: var(--sidebar-compact-w) minmax(0, 1fr); }
html.nav-compact-pending body.admin:not(.nav-compact) .admin-sidebar { visibility: hidden; }

/* Barra lateral -------------------------------------------------------------- */
.admin-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; background: var(--green-900); color: rgba(255, 255, 255, .8); overflow: hidden; }
.admin-sidebar__brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--topbar-h); padding: 0 14px 0 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-sidebar__collapse { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-md); color: rgba(255, 255, 255, .6); }
.admin-sidebar__collapse:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-sidebar__collapse .icon { transition: transform var(--t-base); }
.admin-nav { flex: 1; overflow-y: auto; padding: 12px 10px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.admin-nav__group { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; }
.admin-nav__group > span { padding: 8px 10px 6px; font-size: var(--fs-11); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .38); white-space: nowrap; }
.admin-nav a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 10px; border-radius: var(--r-md); font-size: var(--fs-14); font-weight: 500; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.admin-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.admin-nav a.is-active { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--gold-500); }
.admin-nav a .icon { flex: none; width: 20px; height: 20px; opacity: .85; }
.admin-nav a .count-pill { margin-left: auto; background: var(--gold-500); color: var(--green-900); }
.admin-sidebar__foot { padding: 12px 10px calc(12px + var(--safe-b)); border-top: 1px solid rgba(255, 255, 255, .08); }
.admin-sidebar__user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-md); color: #fff; }
.admin-sidebar__user:hover { background: rgba(255, 255, 255, .07); text-decoration: none; }
.admin-sidebar__user > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-sidebar__user b { font-size: var(--fs-13); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-sidebar__user small { font-size: var(--fs-11); color: rgba(255, 255, 255, .55); white-space: nowrap; }
.admin-sidebar__user button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-md); color: rgba(255, 255, 255, .6); }
.admin-sidebar__user button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.admin-sidebar__site { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; margin-bottom: 4px; border-radius: var(--r-md); font-size: var(--fs-13); color: rgba(255, 255, 255, .6); white-space: nowrap; }
.admin-sidebar__site:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.admin-sidebar__version { display: block; padding: 6px 10px 0; font-size: var(--fs-11); color: rgba(255, 255, 255, .35); white-space: nowrap; }

body.admin.nav-compact .admin-sidebar__brand { justify-content: center; padding: 0 8px; }
body.admin.nav-compact .admin-sidebar__brand .brand { display: none; }
body.admin.nav-compact .admin-sidebar__collapse .icon { transform: rotate(180deg); }
body.admin.nav-compact .admin-nav__group > span { text-align: center; padding-inline: 0; font-size: 0; height: 12px; border-top: 1px solid rgba(255, 255, 255, .08); margin: 4px 6px 6px; }
body.admin.nav-compact .admin-nav a { justify-content: center; padding: 0; }
body.admin.nav-compact .admin-nav a b, body.admin.nav-compact .admin-nav a .count-pill { display: none; }
body.admin.nav-compact .admin-sidebar__user > div, body.admin.nav-compact .admin-sidebar__site span, body.admin.nav-compact .admin-sidebar__version { display: none; }
body.admin.nav-compact .admin-sidebar__user { justify-content: center; padding: 6px 0; flex-wrap: wrap; }
body.admin.nav-compact .admin-sidebar__site { justify-content: center; padding: 0; }

/* Topo ------------------------------------------------------------------------- */
.admin-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; min-height: var(--topbar-h); padding: 0 24px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-topbar__context { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.admin-topbar__context span { font-size: var(--fs-11); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.admin-topbar__context strong { font-size: var(--fs-16); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-topbar__brand { display: none; }
.command-trigger { display: inline-flex; align-items: center; gap: 10px; width: 300px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface-2); font-size: var(--fs-14); color: var(--muted); }
.command-trigger:hover { border-color: var(--n-400); }
.command-trigger span { flex: 1; text-align: left; }
.command-trigger kbd { display: inline-flex; }
.admin-topbar .btn-primary { min-height: 40px; }
.notifications { position: relative; }
.notifications__button { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--r-md); color: var(--ink-2); background: var(--surface); }
.notifications__button:hover { border-color: var(--n-400); }
.notifications__button > span { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full); background: var(--danger); color: #fff; font-size: var(--fs-11); font-weight: 700; display: grid; place-items: center; }
.notifications__panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; width: 380px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.notifications__panel > header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notifications__panel > header h3 { font-size: var(--fs-14); }
.notifications__panel > header button { font-size: var(--fs-12); font-weight: 600; color: var(--green-600); }
.notifications__list { max-height: 60vh; overflow-y: auto; }
.notifications__list form { display: contents; }
.notifications__list form > button { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.notifications__list form > button:hover { background: var(--surface-2); }
.notifications__list form.is-unread > button { background: var(--gold-50); }
.notifications__list form > button > i { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--green-700); }
.notifications__list form > button > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.notifications__list form > button b { font-size: var(--fs-13); }
.notifications__list form > button small { font-size: var(--fs-12); color: var(--muted); }
.notifications__list form > button em { font-size: var(--fs-11); color: var(--muted-2); }
.notifications__empty { padding: 24px 14px; text-align: center; font-size: var(--fs-13); color: var(--muted); }
.admin-topbar__profile { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: var(--r-full); color: var(--ink); }
.admin-topbar__profile:hover { border-color: var(--n-400); text-decoration: none; }
.admin-topbar__profile .avatar { width: 30px; height: 30px; font-size: var(--fs-12); }
.admin-topbar__profile > div { display: flex; flex-direction: column; line-height: 1.15; }
.admin-topbar__profile small { font-size: var(--fs-11); color: var(--muted); }
.admin-topbar__profile b { font-size: var(--fs-13); }

/* Conteúdo ------------------------------------------------------------------------ */
.admin-content { min-width: 0; }
.admin-main { padding: 24px; max-width: var(--container-wide); width: 100%; margin-inline: auto; min-width: 0; }
.admin-main > .page-head:first-child { margin-top: 0; }
@media (min-width: 1600px) { .admin-main { padding: 32px 40px; } }

/* Dock móvel ---------------------------------------------------------------------- */
.admin-dock { position: sticky; bottom: 0; z-index: 40; display: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px 4px calc(6px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); }
.admin-dock a, .admin-dock button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; border-radius: var(--r-md); font-size: var(--fs-11); font-weight: 600; color: var(--muted); }
.admin-dock a:hover, .admin-dock button:hover { text-decoration: none; }
.admin-dock .icon { width: 22px; height: 22px; }
.admin-dock .is-active { color: var(--green-800); }
.admin-dock .admin-dock__create .icon { width: 40px; height: 40px; padding: 9px; margin-top: -14px; border-radius: 50%; background: var(--gold-500); color: var(--green-900); box-shadow: var(--shadow-md); }

@media (max-width: 979px) {
    .admin-shell, body.admin.nav-compact .admin-shell, html.nav-compact-pending body.admin .admin-shell { grid-template-columns: minmax(0, 1fr); }
    html.nav-compact-pending body.admin:not(.nav-compact) .admin-sidebar { visibility: visible; }
    .admin-sidebar { display: none; }
    .admin-topbar { padding: 0 14px; gap: 8px; }
    .admin-topbar__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
    .admin-topbar__brand .brand { flex: none; }
    .admin-topbar__brand > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
    .admin-topbar__brand small { font-size: var(--fs-11); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
    .admin-topbar__brand b { font-size: var(--fs-15); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .admin-topbar__context, .admin-topbar__profile > div, .admin-topbar .btn-primary span { display: none; }
    .command-trigger { width: 40px; padding: 0; justify-content: center; }
    .command-trigger span, .command-trigger kbd { display: none; }
    .admin-topbar .btn-primary { width: 40px; padding: 0; }
    .admin-topbar__profile { padding: 3px; border: 0; }
    .admin-main { padding: 16px 14px 24px; }
    .admin-dock { display: grid; }
    .notifications__panel { position: fixed; top: calc(var(--topbar-h) + 8px); right: 12px; left: 12px; width: auto; }
}
@media (max-width: 479px) { .admin-topbar__brand .brand__word { display: none; } }

/* Diálogos da administração ------------------------------------------------------- */
.command-results { display: flex; flex-direction: column; padding: 4px 0; }
.command-results a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); color: var(--ink); }
.command-results a:hover, .command-results a:focus-visible { background: var(--surface-3); text-decoration: none; }
.command-results a > i { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--green-800); font-size: var(--fs-11); font-weight: 700; font-style: normal; }
.command-results a > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.command-results a small { font-size: var(--fs-11); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.command-results a b { font-size: var(--fs-14); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-results a em { font-size: var(--fs-12); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-results a strong { color: var(--muted); }
.command-status { padding: 6px 12px; font-size: var(--fs-12); color: var(--muted); }
.command-empty { padding: 24px 12px; text-align: center; font-size: var(--fs-14); color: var(--muted); }
.command-empty b { display: block; color: var(--ink); }
.command-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.command-head .icon { color: var(--muted); }
.command-head label { flex: 1; }
.command-head input { width: 100%; min-height: 40px; border: 0; background: transparent; font-size: var(--fs-16); }
.command-foot { padding: 8px 14px; border-top: 1px solid var(--line); font-size: var(--fs-12); color: var(--muted); }
.quick-create { display: grid; gap: 6px; padding: 4px 0; }
.quick-create a { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); }
.quick-create a:hover { border-color: var(--n-400); text-decoration: none; }
.quick-create a > i { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--green-700); }
.quick-create a > span { flex: 1; display: flex; flex-direction: column; }
.quick-create b { font-size: var(--fs-14); }
.quick-create small { font-size: var(--fs-12); color: var(--muted); }
.more-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 4px 0; }
.more-nav a { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); font-size: var(--fs-14); font-weight: 600; color: var(--ink); }
.more-nav a:hover, .more-nav a.is-active { background: var(--primary-soft); border-color: var(--green-700); text-decoration: none; }
.more-nav a .icon { color: var(--green-700); }
.more-user { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.more-user > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.more-user b { font-size: var(--fs-14); }
.more-user small { font-size: var(--fs-12); color: var(--muted); }

/* Alerta de nova proposta (modal do painel) */
.offer-alert-card { display: flex; flex-direction: column; gap: 8px; text-align: center; padding: 8px 20px 20px; }
.offer-alert-card strong { font-size: var(--fs-28); color: var(--green-800); }

/* ==========================================================================
   Administração · páginas (painel, formulários, CRM, mesa, match, etc.)
   ========================================================================== */

/* Painel (Hoje) -------------------------------------------------------------- */
.next-action { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 20px 24px; margin-bottom: 20px; background: var(--green-800); color: #fff; border-radius: var(--r-lg); }
.next-action > div { flex: 1 1 320px; min-width: 0; }
.next-action span { font-size: var(--fs-12); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-400); }
.next-action h2 { margin-top: 4px; font-size: var(--fs-20); color: #fff; }
.next-action p { margin-top: 4px; font-size: var(--fs-14); color: rgba(255, 255, 255, .75); }
.next-action aside { display: flex; align-items: center; gap: 16px; }
.next-action aside strong { font-size: var(--fs-40); line-height: 1; letter-spacing: -.02em; color: var(--gold-400); font-variant-numeric: tabular-nums; }
.next-action--red { background: #6e2727; }
.next-action--red span, .next-action--red aside strong { color: #ffc9c9; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 979px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.task-list { display: flex; flex-direction: column; }
.task-list a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.task-list a:last-child { border-bottom: 0; }
.task-list a:hover { background: var(--surface-2); text-decoration: none; }
.task-list a > i { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--surface-3); color: var(--ink-2); }
.task-list .is-red > i { background: var(--danger-bg); color: var(--danger); }
.task-list .is-sun > i { background: var(--gold-100); color: var(--gold-700); }
.task-list .is-green > i { background: var(--success-bg); color: var(--success); }
.task-list .is-blue > i { background: var(--info-bg); color: var(--info); }
.task-list a > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.task-list a > span small { font-size: var(--fs-11); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.task-list a > span b { font-size: var(--fs-14); }
.task-list a > span em { font-size: var(--fs-12); color: var(--muted); }
.task-list a > strong { font-size: var(--fs-18); font-variant-numeric: tabular-nums; }
.launchpad { display: grid; gap: 6px; }
.launchpad a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); }
.launchpad a:hover { border-color: var(--n-400); text-decoration: none; }
.launchpad a > i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--green-700); }
.launchpad a > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.launchpad b { font-size: var(--fs-14); }
.launchpad small { font-size: var(--fs-12); color: var(--muted); }
.system-alert { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--warning-bg); color: var(--warning); }
.system-alert.is-error { background: var(--danger-bg); color: var(--danger); }
.system-alert > span { flex: 1; display: flex; flex-direction: column; }
.system-alert b { font-size: var(--fs-14); }
.system-alert small { font-size: var(--fs-12); opacity: .85; }

/* Formulários com painel lateral ---------------------------------------------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.form-layout > .form-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form-layout > aside { position: sticky; top: calc(var(--topbar-h) + 16px); display: flex; flex-direction: column; gap: 12px; }
.publish-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.publish-card > span { font-size: var(--fs-11); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.publish-card h3 { font-size: var(--fs-16); overflow-wrap: anywhere; }
.publish-card__meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--fs-12); }
.publish-card__meta span { color: var(--muted); }
.publish-card__meta b { text-align: right; }
.save-dock { display: none; }
@media (max-width: 979px) {
    .form-layout { grid-template-columns: minmax(0, 1fr); }
    .form-layout > aside { position: static; }
    .save-dock { position: sticky; bottom: calc(var(--dock-h) + var(--safe-b)); z-index: 30; display: flex; gap: 8px; margin: 12px -14px -8px; padding: 10px 14px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); }
    .save-dock .btn { flex: 1; }
}
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-grid article { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.media-grid .media-grid__preview { aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-3); }
.media-grid .media-grid__preview .branded-media { height: 100%; }
.media-grid small { font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.media-grid__actions { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-12); }
.media-grid__actions button, .media-grid__actions a { font-weight: 600; color: var(--green-600); }
.media-grid__actions button.is-danger { color: var(--danger); }
.media-grid__actions span { color: var(--muted); font-weight: 600; }
.video-links { display: flex; flex-direction: column; gap: 8px; }
.video-links__row { display: flex; gap: 6px; }
.video-links__row .field { flex: 1; }
.video-links__row button { flex: none; width: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-md); color: var(--muted); font-size: 20px; }
.video-links__row button:hover { color: var(--danger); border-color: var(--danger); }
.video-links__add { align-self: flex-start; }

/* Listas de registros (financeiro, contratos, fechamentos) --------------------- */
.record-list { display: flex; flex-direction: column; gap: 8px; }
.record-list > article { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px 16px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.record-list > article:hover { border-color: var(--n-400); }
.record-list__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.record-list__main .badge { align-self: flex-start; }
.record-list__main a { color: var(--ink); }
.record-list__main a b { display: block; font-size: var(--fs-14); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-list__main a small, .record-list__main > small { font-size: var(--fs-12); color: var(--muted); }
.record-list__main em { font-size: var(--fs-11); font-weight: 600; color: var(--green-600); }
.record-list__col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.record-list__col strong { font-size: var(--fs-15); font-variant-numeric: tabular-nums; }
.record-list__col small { font-size: var(--fs-12); color: var(--muted); }
.record-list__actions { display: flex; align-items: center; gap: 6px; }
@media (max-width: 719px) {
    .record-list > article { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .record-list__main { grid-column: 1 / -1; }
    .record-list__actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Cards de dossiê e Lote Pronto ------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.record-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.record-card:hover { border-color: var(--n-400); }
.record-card__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.record-card > * { position: relative; }
.record-card > header { display: flex; align-items: flex-start; gap: 12px; }
.record-card > header > .icon-box { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--green-700); }
.record-card > header > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.record-card > header span { font-size: var(--fs-12); color: var(--muted); }
.record-card h2 { font-size: var(--fs-15); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-card small { font-size: var(--fs-12); color: var(--muted); }
.record-card > header .badge { flex: none; }
.record-card__route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); }
.record-card__route > div { display: flex; flex-direction: column; min-width: 0; }
.record-card__route small { font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.record-card__route b { font-size: var(--fs-13); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-card__route i { color: var(--muted); }
.record-card > footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--fs-12); color: var(--muted); }
.record-card > footer span { display: inline-flex; align-items: center; gap: 4px; }
.record-card > footer time { margin-left: auto; }
.score-ring { --score: 0; display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: conic-gradient(var(--green-600) calc(var(--score) * 1%), var(--surface-3) 0); }
.score-ring::before { content: ""; grid-area: 1 / 1; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); }
.score-ring > span { grid-area: 1 / 1; font-size: var(--fs-11); font-weight: 700; font-variant-numeric: tabular-nums; }
.score-ring--lg { width: 88px; height: 88px; }
.score-ring--lg::before { width: 70px; height: 70px; }
.score-ring--lg > span { font-size: var(--fs-16); }
.record-card.tone--danger, .tone--danger .score-ring { --ring: var(--danger); }
.tone--danger .score-ring { background: conic-gradient(var(--danger) calc(var(--score) * 1%), var(--surface-3) 0); }
.tone--warning .score-ring { background: conic-gradient(var(--gold-500) calc(var(--score) * 1%), var(--surface-3) 0); }

/* Detalhe com coluna lateral -------------------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.detail-grid > main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.detail-grid > aside { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--topbar-h) + 16px); }
.detail-grid--wide { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 979px) { .detail-grid, .detail-grid--wide { grid-template-columns: minmax(0, 1fr); } .detail-grid > aside { position: static; } }
.jump-nav { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; scrollbar-width: none; }
.jump-nav::-webkit-scrollbar { display: none; }
.jump-nav a { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--surface); font-size: var(--fs-13); font-weight: 600; color: var(--ink-2); }
.jump-nav a:hover { border-color: var(--n-400); text-decoration: none; }
.jump-nav a.is-active { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.summary-band { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 18px 20px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.summary-band > div:not(.score-ring) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.summary-band > div:first-child:not(.score-ring), .summary-band > .score-ring + div { flex: 1 1 260px; }
.summary-band > .score-ring { flex: none; }
.summary-band span { font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.summary-band h1, .summary-band h2 { font-size: var(--fs-18); }
.summary-band strong { font-size: var(--fs-20); font-variant-numeric: tabular-nums; }
.summary-band p { font-size: var(--fs-13); color: var(--ink-2); }
.summary-band .progress { width: 160px; }
.check-list { display: flex; flex-direction: column; gap: 8px; }
.check-list details { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.check-list summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.check-list summary::-webkit-details-marker { display: none; }
.check-list summary > i { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); color: var(--muted); }
.check-list details.is-ready summary > i { background: var(--success-bg); color: var(--success); }
.check-list details.is-expired summary > i { background: var(--danger-bg); color: var(--danger); }
.check-list details.is-pending summary > i { background: var(--warning-bg); color: var(--warning); }
.check-list summary > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.check-list summary b { font-size: var(--fs-14); }
.check-list summary small { font-size: var(--fs-12); color: var(--muted); }
.check-list summary > em { font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.check-list form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 4px 14px 14px; }
.check-list form .span-2 { grid-column: 1 / -1; }
@media (max-width: 479px) { .check-list form { grid-template-columns: minmax(0, 1fr); } .check-list form .span-2 { grid-column: auto; } }
.stage-track { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; scrollbar-width: none; }
.stage-track form { flex: 1; min-width: 110px; }
.stage-track button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: var(--fs-13); font-weight: 600; color: var(--muted); white-space: nowrap; }
.stage-track button i { width: 8px; height: 8px; border-radius: 50%; background: var(--n-300); }
.stage-track button.is-past { color: var(--ink-2); }
.stage-track button.is-past i { background: var(--green-600); }
.stage-track button.is-current { border-color: var(--green-800); background: var(--green-800); color: #fff; }
.stage-track button.is-current i { background: var(--gold-400); }
.party-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.party-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.party-card > header { display: flex; align-items: center; gap: 10px; }
.party-card > header i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green-800); color: #fff; font-style: normal; font-weight: 700; font-size: var(--fs-13); }
.party-card > header span { font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.party-card > header h3, .party-card > header b { display: block; font-size: var(--fs-14); }
.party-card p { font-size: var(--fs-13); color: var(--ink-2); white-space: pre-line; }
.party-card em { font-size: var(--fs-12); font-weight: 600; color: var(--green-600); }
.party-card .form-grid { margin-top: 4px; }

/* Equipe ------------------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.team-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.team-card > header { display: flex; align-items: center; gap: 12px; }
.team-card > header > div { flex: 1; min-width: 0; }
.team-card > header span { font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.team-card h2 { font-size: var(--fs-16); }
.team-card p { font-size: var(--fs-13); color: var(--muted); }
.team-card__permissions { display: flex; flex-wrap: wrap; gap: 4px; }
.team-card__permissions span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--r-full); background: var(--surface-3); font-size: var(--fs-11); font-weight: 600; color: var(--ink-2); }
.team-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.team-card > footer > div { display: flex; gap: 4px; }
.permission-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.permission-grid label { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); font-size: var(--fs-13); font-weight: 600; cursor: pointer; }
.permission-grid label:has(input:checked) { border-color: var(--green-700); background: var(--primary-soft); }
.permission-grid input { width: 16px; height: 16px; accent-color: var(--green-700); }
.permission-grid .icon { color: var(--green-700); }

/* CRM ----------------------------------------------------------------------------- */
.pipeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.pipeline__col { display: flex; flex-direction: column; min-height: 320px; background: var(--surface-3); border-radius: var(--r-lg); scroll-snap-align: start; }
.pipeline__col.is-drag-over { outline: 2px dashed var(--green-600); outline-offset: -2px; }
.pipeline__col > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: var(--fs-13); font-weight: 700; }
.pipeline__col > header i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--n-400); }
.pipeline__col--new > header i { background: var(--info); }
.pipeline__col--contacting > header i, .pipeline__col--proposal > header i { background: var(--gold-500); }
.pipeline__col--qualified > header i, .pipeline__col--negotiating > header i { background: var(--green-600); }
.pipeline__col--won > header i { background: var(--success); }
.pipeline__col--lost > header i { background: var(--danger); }
.pipeline__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 0 8px 8px; }
.pipeline__empty { padding: 20px 8px; text-align: center; font-size: var(--fs-12); color: var(--muted); }
.lead-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); cursor: grab; }
.lead-card.is-dragging { opacity: .5; }
.lead-card.is-overdue { border-left: 3px solid var(--danger); }
.lead-card > header { display: flex; flex-wrap: wrap; gap: 4px; }
.lead-card__name { font-size: var(--fs-14); font-weight: 700; color: var(--ink); }
.lead-card p { font-size: var(--fs-12); color: var(--muted); }
.lead-card__next { padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); font-size: var(--fs-12); }
.lead-card__next small { display: block; font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.lead-card__next b { display: block; font-size: var(--fs-13); }
.lead-card__next span { color: var(--muted); }
.lead-card__next.is-overdue { background: var(--danger-bg); }
.lead-card__next.is-overdue span { color: var(--danger); font-weight: 600; }
.lead-card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-11); color: var(--muted); }
.lead-card__meta .is-stalled { color: var(--warning); font-weight: 600; }
.lead-card > footer { display: flex; align-items: center; gap: 6px; }
.lead-card > footer .grow { flex: 1; }
.lead-card > footer form { display: flex; gap: 4px; flex: 1; }
.lead-card > footer select { flex: 1; min-height: 32px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: var(--fs-12); background: var(--surface); }
.crm-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.next-step-card { padding: 16px 18px; border-radius: var(--r-lg); background: var(--green-800); color: #fff; }
.next-step-card.is-overdue { background: #7a2b2b; }
.next-step-card span { font-size: var(--fs-11); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.next-step-card h2 { margin-top: 4px; font-size: var(--fs-16); color: #fff; }
.next-step-card strong { display: block; margin-top: 6px; font-size: var(--fs-14); color: var(--gold-400); }
.next-step-card small { display: block; margin-top: 4px; font-size: var(--fs-12); color: rgba(255, 255, 255, .7); }
.interest-list { display: flex; flex-direction: column; gap: 8px; }
.interest-list article { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.interest-list article > span { font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--green-600); }
.interest-list article > b { display: block; font-size: var(--fs-14); }
.interest-list article > p { margin-top: 4px; font-size: var(--fs-13); color: var(--ink-2); }
.interest-list article > footer { display: flex; gap: 12px; margin-top: 6px; font-size: var(--fs-12); font-weight: 600; }
.import-progress { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--green-600); border-radius: var(--r-lg); }
.import-progress > header { display: flex; align-items: center; gap: 12px; }
.import-progress > header > div { flex: 1; min-width: 0; }
.import-progress > header strong { font-size: var(--fs-24); font-variant-numeric: tabular-nums; }
.import-progress.is-error { border-color: var(--danger); }
.import-progress.is-complete { border-color: var(--success); }
.import-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.import-stats div { padding: 8px 10px; border-radius: var(--r-md); background: var(--surface-2); font-size: var(--fs-12); color: var(--muted); }
.import-stats b { display: block; font-size: var(--fs-16); color: var(--ink); }

/* Match (radar) ---------------------------------------------------------------------- */
.match-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.match-layout > aside { position: sticky; top: calc(var(--topbar-h) + 16px); }
@media (max-width: 979px) { .match-layout { grid-template-columns: minmax(0, 1fr); } .match-layout > aside { position: static; } }
.match-item { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.match-item--strong { border-left: 3px solid var(--success); }
.match-item--good { border-left: 3px solid var(--gold-500); }
.match-item > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.match-item > header > div { display: flex; flex-direction: column; }
.match-item > header b { font-size: var(--fs-14); }
.match-item > header small { font-size: var(--fs-12); color: var(--muted); }
.match-score { display: flex; flex-direction: column; align-items: center; padding: 6px 12px; border-radius: var(--r-md); background: var(--primary-soft); color: var(--green-800); }
.match-score strong { font-size: var(--fs-20); line-height: 1; }
.match-score span { font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.match-bridge { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.match-bridge > section { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); min-width: 0; }
.match-bridge > section > span:first-child { font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.match-bridge__connector { display: flex; align-items: center; color: var(--green-600); }
.match-bridge .listing-row { padding: 0; border: 0; background: transparent; }
@media (max-width: 719px) { .match-bridge { grid-template-columns: minmax(0, 1fr); } .match-bridge__connector { justify-content: center; transform: rotate(90deg); } }
.match-reasons { display: flex; flex-wrap: wrap; gap: 4px; }
.match-reasons small { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--r-full); background: var(--success-bg); color: var(--success); font-size: var(--fs-11); font-weight: 600; }
.match-reasons small.is-warning { background: var(--warning-bg); color: var(--warning); }
.match-item > footer { display: flex; flex-wrap: wrap; gap: 8px; }
.demand-list article { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.demand-list article:last-child { border-bottom: 0; }
.demand-list article > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.demand-list b { font-size: var(--fs-14); }
.demand-list span, .demand-list small { font-size: var(--fs-12); color: var(--muted); }
.demand-list a { flex: none; font-size: var(--fs-13); font-weight: 600; }
.priority-badge { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--surface-3); font-size: var(--fs-14); font-weight: 700; }
.priority-badge.is-high, .priority-badge.is-urgent { background: var(--danger-bg); color: var(--danger); }
.priority-badge.is-medium { background: var(--gold-100); color: var(--gold-700); }
.bar-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.bar-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); font-size: var(--fs-13); }
.bar-list a:hover { border-color: var(--n-400); text-decoration: none; }
.bar-list a > span { height: 6px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.bar-list a > span i { display: block; height: 100%; background: var(--green-600); }
.field-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.field-presets button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-full); font-size: var(--fs-13); font-weight: 600; }
.field-presets button.is-active { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.voice-button { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--fs-13); font-weight: 600; color: var(--green-600); }
.voice-button.is-listening { color: var(--danger); }

/* Mesa de negócios -------------------------------------------------------------------- */
.desk-lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1279px) { .desk-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px) { .desk-lanes { grid-template-columns: minmax(0, 1fr); } }
.desk-lane { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--surface-3); border-radius: var(--r-lg); }
.desk-lane > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.desk-lane > header > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.desk-lane > header i { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green-800); color: #fff; font-size: var(--fs-11); font-weight: 700; font-style: normal; }
.desk-lane > header b { display: block; font-size: var(--fs-14); }
.desk-lane > header small { display: block; font-size: var(--fs-12); color: var(--muted); }
.desk-lane > header em { font-size: var(--fs-14); font-weight: 700; color: var(--muted); font-style: normal; }
.desk-lane__cards { display: flex; flex-direction: column; gap: 8px; }
.desk-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.desk-card.is-danger, .desk-card.is-red { border-left: 3px solid var(--danger); }
.desk-card.is-warning, .desk-card.is-sun { border-left: 3px solid var(--gold-500); }
.desk-card > span { font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.desk-card h3 { font-size: var(--fs-14); }
.desk-card p, .desk-card small { font-size: var(--fs-12); color: var(--muted); }
.desk-card strong { font-size: var(--fs-15); margin-top: 2px; font-variant-numeric: tabular-nums; }
.desk-card > footer { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: var(--fs-13); font-weight: 600; }
.desk-lane__all { font-size: var(--fs-13); font-weight: 600; text-align: center; }
.attention-list article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.attention-list article:last-child { border-bottom: 0; }
.attention-list article > i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-md); background: var(--gold-100); color: var(--gold-700); font-size: var(--fs-12); font-weight: 700; font-style: normal; }
.attention-list article > div { display: flex; flex-direction: column; min-width: 0; }
.attention-list span { font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.attention-list b { font-size: var(--fs-14); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention-list small { font-size: var(--fs-12); color: var(--muted); }
.attention-list strong { font-size: var(--fs-14); font-variant-numeric: tabular-nums; }
.attention-list a { font-size: var(--fs-13); font-weight: 600; white-space: nowrap; }
@media (max-width: 719px) { .attention-list article { grid-template-columns: auto minmax(0, 1fr); } .attention-list article > strong, .attention-list article > a { grid-column: 2; } }

/* Performance ------------------------------------------------------------------------- */
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.funnel a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); background: var(--surface); }
.funnel a:hover { border-color: var(--n-400); text-decoration: none; }
.funnel span { font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.funnel strong { font-size: var(--fs-22); font-variant-numeric: tabular-nums; }
.funnel small { font-size: var(--fs-12); color: var(--muted); }
.funnel em { font-size: var(--fs-12); font-weight: 600; color: var(--muted); }
.funnel em.is-up { color: var(--success); }
.funnel em.is-down { color: var(--danger); }
.bar-chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; height: 160px; padding-top: 8px; }
.bar-chart > div { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.bar-chart__bars { display: flex; align-items: flex-end; gap: 2px; flex: 1; width: 100%; }
.bar-chart__bars i, .bar-chart__bars b { flex: 1; display: block; height: var(--bar, 4%); min-height: 3px; border-radius: 3px 3px 0 0; }
.bar-chart__bars i { background: var(--n-300); }
.bar-chart__bars b { background: var(--green-600); }
.bar-chart small { font-size: var(--fs-11); color: var(--muted); white-space: nowrap; }
.bar-chart-legend { display: flex; gap: 16px; margin-top: 8px; font-size: var(--fs-12); color: var(--muted); }
.bar-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bar-chart-legend i, .bar-chart-legend b { width: 12px; height: 12px; border-radius: 3px; }
.bar-chart-legend i { background: var(--n-300); }
.bar-chart-legend b { background: var(--green-600); }
.rank-table { display: flex; flex-direction: column; }
.rank-table > div, .rank-table > article { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-14); }
.rank-table > div { font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rank-table > article:last-child { border-bottom: 0; }
.rank-table article small { display: block; font-size: var(--fs-12); color: var(--muted); }
.rank-table article b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 719px) { .rank-table > div { display: none; } .rank-table > article { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rank-table > article > div { grid-column: 1 / -1; } }

/* Configurações ------------------------------------------------------------------------ */
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-nav { position: sticky; top: calc(var(--topbar-h) + 16px); display: flex; flex-direction: column; gap: 2px; }
.settings-nav button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: var(--r-md); font-size: var(--fs-14); font-weight: 600; color: var(--ink-2); text-align: left; }
.settings-nav button:hover { background: var(--surface); }
.settings-nav button.is-active { background: var(--green-800); color: #fff; }
.settings-savebar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 16px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--r-lg); }
.settings-savebar p { font-size: var(--fs-13); color: var(--muted); }
@media (max-width: 979px) {
    .settings-layout { grid-template-columns: minmax(0, 1fr); }
    .settings-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    .settings-nav button { flex: none; }
    .settings-savebar { bottom: calc(var(--dock-h) + var(--safe-b)); }
    .settings-savebar p { display: none; }
    .settings-savebar .btn { width: 100%; }
}
.brand-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.brand-icons article { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
.brand-icons__preview { display: grid; place-items: center; height: 80px; border-radius: var(--r-sm); background: repeating-conic-gradient(var(--surface-3) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.brand-icons__preview img { max-height: 56px; max-width: 56px; }
.brand-icons b { font-size: var(--fs-14); }
.brand-icons p, .brand-icons small { font-size: var(--fs-12); color: var(--muted); }
.logo-preview { display: grid; place-items: center; min-height: 96px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: repeating-conic-gradient(var(--surface-3) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.logo-preview img { max-height: 64px; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.social-grid label { display: flex; flex-direction: column; gap: 6px; }
.social-grid label > span { display: flex; align-items: center; gap: 8px; font-size: var(--fs-13); font-weight: 600; }
.social-grid label > span .icon { color: var(--green-700); }
.social-grid input { min-height: 42px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); font-size: var(--fs-14); }
.link-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-13); font-weight: 600; }
.link-row a { display: inline-flex; align-items: center; gap: 6px; }

/* Sistema ------------------------------------------------------------------------------- */
.audit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.audit-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.audit-card > header { display: flex; align-items: center; gap: 8px; font-size: var(--fs-11); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.audit-card > header i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.audit-card.is-ok > header { color: var(--success); }
.audit-card.is-warn > header { color: var(--warning); }
.audit-card.is-error > header { color: var(--danger); }
.audit-card h2 { font-size: var(--fs-14); }
.audit-card p { font-size: var(--fs-13); color: var(--muted); }
.audit-card a { font-size: var(--fs-13); font-weight: 600; }
.system-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 18px 20px; margin-bottom: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.system-status > div { flex: 1 1 260px; }
.system-status h2 { font-size: var(--fs-18); }
.system-status p, .system-status small { font-size: var(--fs-13); color: var(--muted); }
.system-status--ok { border-left: 4px solid var(--success); }
.system-status--warn { border-left: 4px solid var(--warning); }
.system-status--error { border-left: 4px solid var(--danger); }
.system-status aside { display: flex; gap: 8px; }
.system-status aside span { padding: 4px 10px; border-radius: var(--r-full); background: var(--surface-3); font-size: var(--fs-12); font-weight: 600; color: var(--ink-2); }

/* Negociação (oferta) ------------------------------------------------------------------- */
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 20px; }
.decision-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; }
.decision-option input { margin-top: 3px; accent-color: var(--green-700); }
.decision-option b { display: block; font-size: var(--fs-14); }
.decision-option small { font-size: var(--fs-12); color: var(--muted); }
.decision-option:has(input:checked) { border-color: var(--green-700); background: var(--primary-soft); }
.counter-fields { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--r-md); background: var(--surface-2); }
.counter-fields.is-hidden { display: none; }
.readiness { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r-md); background: var(--warning-bg); }
.readiness.is-ready { background: var(--success-bg); }
.readiness > div { display: flex; align-items: center; gap: 10px; }
.readiness > div > p { flex: 1; min-width: 0; }
.readiness b { display: block; font-size: var(--fs-14); }
.readiness small { font-size: var(--fs-12); color: var(--ink-2); }
.readiness strong { font-size: var(--fs-18); }
.readiness details summary { font-size: var(--fs-13); font-weight: 600; cursor: pointer; }
.readiness details li { list-style: disc; margin-left: 18px; font-size: var(--fs-13); }

/* Editor de CG do vídeo ----------------------------------------------------------------- */
.cg-editor { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 16px; }
@media (max-width: 979px) { .cg-editor { grid-template-columns: minmax(0, 1fr); } }
.cg-editor__screen { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--green-900); container-type: inline-size; }
.cg-editor__surface, .cg-editor__surface > img, .cg-editor__surface > video, .cg-editor__surface > iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.cg-editor__surface > iframe { pointer-events: none; }
.cg-editor__placeholder { display: grid; place-content: center; gap: 8px; height: 100%; color: rgba(255, 255, 255, .7); text-align: center; font-size: var(--fs-13); }
.cg-editor__placeholder span { display: grid; place-items: center; width: 44px; height: 44px; margin: auto; border-radius: 50%; background: var(--gold-500); color: var(--green-900); }
.cg-editor__controls { display: flex; flex-direction: column; gap: 12px; }
.cg-editor__toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cg-editor__toggles label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-md); font-size: var(--fs-13); font-weight: 600; cursor: pointer; }
.cg-editor__toggles label:has(input:checked) { border-color: var(--green-700); background: var(--primary-soft); }
.cg-editor__toggles input { width: 16px; height: 16px; accent-color: var(--green-700); }
.export-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 20px; }
@media (max-width: 979px) { .export-layout { grid-template-columns: minmax(0, 1fr); } }
.export-preview { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.export-preview canvas { width: 100%; height: 100%; object-fit: contain; }
.export-preview video { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.export-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: var(--fs-13); }
.export-meta span { color: var(--muted); }
.export-meta b { font-variant-numeric: tabular-nums; }

/* Seletores de registro (busca com resultados flutuantes) ----------------------------- */
.lookup { position: relative; }
.lookup__results { top: 100%; left: 0; right: 0; margin-top: 4px; max-height: 300px; overflow-y: auto; }
.lookup__results .menu-item { align-items: flex-start; }
.lookup__results .menu-item > span { flex: 1; min-width: 0; font-size: var(--fs-14); }
.lookup__results .menu-item small { font-size: var(--fs-12); color: var(--muted); }
.lookup__results .menu-item > i { flex: none; font-size: var(--fs-12); font-weight: 600; font-style: normal; color: var(--green-600); }
.lookup__selected { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--green-600); border-radius: var(--r-md); background: var(--primary-soft); }
.lookup__selected > .icon { flex: none; color: var(--green-700); }
.lookup__selected > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lookup__selected b { font-size: var(--fs-14); }
.lookup__selected small { font-size: var(--fs-12); color: var(--muted); }
.popover-details { position: relative; }
.popover-details > summary { list-style: none; cursor: pointer; }
.popover-details > summary::-webkit-details-marker { display: none; }
.popover-details[open] > form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 320px; max-width: calc(100vw - 32px); padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); flex-wrap: nowrap; }
.summary-band.tone--success { border-left: 4px solid var(--success); }
.summary-band.tone--danger { border-left: 4px solid var(--danger); }
.summary-band.tone--warning { border-left: 4px solid var(--gold-500); }

/* ==========================================================================
   Mídia protegida · marca d'água, tarja comercial e CG do vídeo
   Os tamanhos usam unidades de contêiner (cqw) para acompanhar o vídeo.
   ========================================================================== */

.branded-media { position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate; container-type: inline-size; background: var(--green-900); }
.branded-media > img, .branded-media > video, .branded-media > iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.branded-media > video[data-video-thumbnail], .branded-media > .media-thumbnail-frame { pointer-events: none; }

/* Marca d'água distribuída */
.media-watermark__field { position: absolute; inset: 10% 0; z-index: 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: space-around; justify-items: center; pointer-events: none; user-select: none; transform: rotate(-14deg) scale(1.15); opacity: .14; }
.media-watermark__field i { font-size: clamp(9px, 3.2cqw, 16px); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); white-space: nowrap; font-style: normal; }
.branded-media--subtle .media-watermark__field { opacity: .08; }
.branded-media--strong .media-watermark__field { opacity: .24; }

/* Selo discreto (mídia ampliada sem tarja) */
.media-watermark__badge { position: absolute; right: 10px; bottom: 10px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: var(--r-md); background: rgba(13, 42, 29, .78); color: #fff; font-size: 11px; font-weight: 700; pointer-events: none; backdrop-filter: blur(4px); }
.media-watermark__badge img { height: 16px; width: auto; max-width: 64px; object-fit: contain; }
.media-watermark__badge span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--gold-500); color: var(--green-900); font-size: 10px; font-weight: 800; }
.branded-media--compact .media-watermark__badge { display: none; }

/* CG do vídeo (lower third) · somente para lotes de gado */
.video-cg { --cg-accent: var(--gold-400); --cg-panel: rgba(9, 28, 19, .9); --cg-panel-soft: rgba(35, 112, 74, .3); --cg-text: #fff; --cg-muted: rgba(255, 255, 255, .7); position: absolute; inset: 0; z-index: 7; pointer-events: none; user-select: none; container-type: inline-size; }
.video-cg--night { --cg-accent: #e9b63c; --cg-panel: rgba(5, 11, 17, .92); --cg-panel-soft: rgba(22, 32, 42, .6); }
.video-cg--sand { --cg-accent: #143e2c; --cg-panel: rgba(245, 236, 212, .95); --cg-panel-soft: rgba(255, 250, 237, .6); --cg-text: #102219; --cg-muted: rgba(16, 34, 25, .66); }
.video-cg.is-disabled { opacity: .35; }
.video-cg__watermark { position: absolute; inset: 8% 3% 22%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 4%; opacity: .1; transform: rotate(-14deg) scale(1.08); }
.video-cg__watermark span { overflow: hidden; font-size: clamp(9px, 3cqw, 18px); font-weight: 800; letter-spacing: .12em; text-align: center; text-transform: uppercase; white-space: nowrap; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.video-cg__antifraud { position: absolute; top: 2cqw; left: 2cqw; display: inline-flex; align-items: center; gap: .8cqw; max-width: 60%; padding: .6cqw 1.2cqw; border-radius: 6px; background: rgba(0, 0, 0, .62); color: #fff; font-size: clamp(7px, 1.4cqw, 12px); font-weight: 700; }
.video-cg__antifraud span { padding: 1px 5px; border-radius: 3px; background: var(--gold-500); color: var(--green-900); font-size: clamp(6px, 1.1cqw, 10px); letter-spacing: .06em; }
.video-cg__antifraud b { white-space: nowrap; }
.video-cg__antifraud small { color: rgba(255, 255, 255, .65); font-size: clamp(6px, 1.1cqw, 10px); white-space: nowrap; }
.video-cg__brand { position: absolute; top: 2cqw; right: 2cqw; display: inline-flex; align-items: center; gap: .8cqw; max-width: 42%; padding: .6cqw 1.2cqw; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: clamp(8px, 1.5cqw, 13px); font-weight: 700; }
.video-cg__brand img { height: clamp(12px, 2.4cqw, 22px); width: auto; max-width: 30cqw; object-fit: contain; }
.video-cg__brand > span { display: grid; place-items: center; width: clamp(14px, 2.6cqw, 22px); height: clamp(14px, 2.6cqw, 22px); border-radius: 4px; background: var(--gold-500); color: var(--green-900); font-size: clamp(7px, 1.2cqw, 11px); font-weight: 800; }
.video-cg__brand b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-cg__lower-third { position: absolute; left: 2cqw; right: 2cqw; bottom: 2cqw; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: stretch; border-radius: 8px; overflow: hidden; background: var(--cg-panel); color: var(--cg-text); backdrop-filter: blur(6px); }
.video-cg__lower-third > div { display: flex; flex-direction: column; justify-content: center; gap: .3cqw; min-width: 0; padding: 1.4cqw 1.8cqw; border-right: 1px solid rgba(255, 255, 255, .1); }
.video-cg--sand .video-cg__lower-third > div { border-right-color: rgba(16, 34, 25, .12); }
.video-cg__lower-third > div:last-child { border-right: 0; }
.video-cg__lot { align-items: center; text-align: center; background: var(--cg-accent); color: var(--green-900); }
.video-cg--sand .video-cg__lot { color: #fff; }
.video-cg__lot small, .video-cg__prices small, .video-cg__stats small { display: block; font-size: clamp(6px, 1cqw, 10px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cg-muted); }
.video-cg__lot small { color: inherit; opacity: .8; }
.video-cg__lot b { font-size: clamp(10px, 2cqw, 20px); font-weight: 800; white-space: nowrap; }
.video-cg__identity b { display: block; overflow: hidden; font-size: clamp(11px, 2.2cqw, 20px); font-weight: 800; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.video-cg__identity span { display: block; overflow: hidden; font-size: clamp(8px, 1.3cqw, 12px); color: var(--cg-muted); text-overflow: ellipsis; white-space: nowrap; }
.video-cg__prices, .video-cg__stats { gap: .6cqw; }
.video-cg__prices b, .video-cg__stats b { display: block; font-size: clamp(10px, 1.9cqw, 18px); font-weight: 800; line-height: 1.05; white-space: nowrap; }
.video-cg__prices > div:first-child b { color: var(--cg-accent); }
.video-cg--sand .video-cg__prices > div:first-child b { color: #143e2c; }
.video-cg__stats { display: none; }
@container (min-width: 640px) { .video-cg__stats { display: flex; } }
.video-cg--compact .video-cg__lower-third { left: 6px; right: 6px; bottom: 6px; grid-template-columns: auto minmax(0, 1fr) auto; border-radius: 6px; }
.video-cg--compact .video-cg__lower-third > div { padding: 5px 8px; }
.video-cg--compact .video-cg__stats { display: none; }
.video-cg--compact .video-cg__watermark { bottom: 30%; }
.video-cg--compact .video-cg__antifraud, .video-cg--compact .video-cg__brand { top: 6px; padding: 3px 6px; }
.video-cg--compact .video-cg__antifraud { left: 6px; }
.video-cg--compact .video-cg__brand { right: 6px; }
.video-cg--compact .video-cg__antifraud small { display: none; }
