/* ==========================================================================
   r2-novo.css — Design system do Portal R2 (visual aprovado 31/10/2026)
   Marca: verde R2 #2FD9A4 sobre preto. Tokens únicos com prefixo --r2-
   (fonte da verdade: Especificação UX/UI, seção 3). Os nomes antigos
   (--brand, --surface, --text-secondary, --r2p-*, --pg-*...) ficam como
   mapa de compatibilidade apontando para os --r2-*.
   Ativo com <html data-look="novo"> (padrão). Carregado por último.
   ========================================================================== */

/* ---------- Tokens · escuro (padrão) ---------- */
html[data-look="novo"] {
  --r2-font: Inter, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r2-ease: cubic-bezier(.2, 0, 0, 1);
  --r2-dur-fast: 140ms; --r2-dur: 280ms; --r2-dur-num: 600ms;
  --r2-radius-field: 10px; --r2-radius: 16px; --r2-radius-lg: 22px; --r2-radius-pill: 999px;
  --r2-fs-xs: 12.5px; --r2-fs-sm: 13.5px; --r2-fs: 14px; --r2-fs-lg: 16px; --r2-fs-h3: 20px; --r2-fs-h1: 28px;
  --r2-touch: 44px;
  --r2-sidebar-w: 264px;
  --r2-mascot-space: 88px;
}
html[data-look="novo"][data-theme="dark"], html[data-look="novo"]:not([data-theme]) {
  color-scheme: dark;
  --r2-bg: #080A12; --r2-surface: #0F1220; --r2-surface-2: #161A2B; --r2-hover: #1C2136;
  --r2-line: rgba(255,255,255,.08); --r2-line-2: rgba(255,255,255,.14);
  --r2-text: #F2F3F8; --r2-text-2: #A9AFC7; --r2-text-3: #8D94B0;
  --r2-brand: #2FD9A4; --r2-brand-2: #2FD9A4; --r2-brand-deep: #087A5A; --r2-brand-ink: #04130D;
  --r2-brand-text: #2FD9A4; --r2-brand-soft: rgba(47,217,164,.14);
  --r2-ring: 0 0 0 3px rgba(47,217,164,.38);
  --r2-m-com: #5B9BFF; --r2-m-fin: #2DD4A0; --r2-m-pro: #FFB224; --r2-m-wa: #3DDC84; --r2-m-dir: #B79CFF;
  --r2-ok: #34D399; --r2-warn: #FBBF24; --r2-err: #F87171; --r2-info: #60A5FA;
  --r2-shadow: 0 24px 48px -24px rgba(0,0,0,.6);
  --r2-glow: 0 0 24px rgba(47,217,164,.28);
  --r2-scrim: rgba(5,6,12,.6);
  --r2-toast-bg: #F2F3F8; --r2-toast-text: #080A12;
}
html[data-look="novo"][data-theme="light"] {
  color-scheme: light;
  --r2-bg: #F4F5F9; --r2-surface: #FFFFFF; --r2-surface-2: #F8F9FC; --r2-hover: #EEF0F7;
  --r2-line: rgba(15,18,34,.10); --r2-line-2: rgba(15,18,34,.18);
  --r2-text: #0F1222; --r2-text-2: #464C6B; --r2-text-3: #666D8C;
  --r2-brand: #0A8F6A; --r2-brand-2: #12B88A; --r2-brand-deep: #087A5A; --r2-brand-ink: #FFFFFF;
  --r2-brand-text: #067052; --r2-brand-soft: rgba(10,143,106,.10);
  --r2-ring: 0 0 0 3px rgba(10,143,106,.30);
  --r2-m-com: #2563EB; --r2-m-fin: #087A5A; --r2-m-pro: #985800; --r2-m-wa: #117A3F; --r2-m-dir: #6B46E5;
  --r2-ok: #087A5A; --r2-warn: #985800; --r2-err: #C73A3A; --r2-info: #2563EB;
  --r2-shadow: 0 12px 32px -16px rgba(20,24,60,.18);
  --r2-glow: none;
  --r2-scrim: rgba(15,18,34,.42);
  --r2-toast-bg: #0F1222; --r2-toast-text: #FFFFFF;
}
/* ---------- Mapa de compatibilidade (nomes antigos → --r2-*) ---------- */
html[data-look="novo"][data-theme] {
  --bg: var(--r2-bg); --surface: var(--r2-surface); --surface-elevated: var(--r2-surface-2);
  --surface-muted: var(--r2-surface-2); --surface-hover: var(--r2-hover); --surface-alt: var(--r2-surface-2);
  --panel: var(--r2-surface); --sidebar: var(--r2-surface);
  --text: var(--r2-text); --text-primary: var(--r2-text); --ink: var(--r2-text); --impact: var(--r2-text);
  --text-secondary: var(--r2-text-2); --muted: var(--r2-text-2);
  --line: var(--r2-line); --separator: var(--r2-line); --border: var(--r2-line);
  --glass: color-mix(in srgb, var(--r2-bg) 84%, transparent);
  --brand: var(--r2-brand); --brand-deep: var(--r2-brand-deep); --accent: var(--r2-brand);
  --accent-soft: var(--r2-brand-soft); --brand-soft: var(--r2-brand-soft);
  --accent-text: var(--r2-brand-text); --green: var(--r2-brand-text); --mint: var(--r2-brand);
  --success: var(--r2-ok); --warning: var(--r2-warn); --error: var(--r2-err); --danger: var(--r2-err); --info: var(--r2-info);
  --shadow: var(--r2-shadow);
  --r2n-radius: var(--r2-radius-lg); --r2n-radius-sm: 12px; --r2n-ease: var(--r2-ease); --r2n-lift: var(--r2-shadow);
  --r2p-primary-bg: var(--r2-brand-deep); --r2p-primary-fg: #fff; --r2p-primary-hover: var(--r2-brand-deep);
  --r2p-primary-active: var(--r2-brand-deep); --r2p-focus: var(--r2-brand); --r2p-ring: var(--r2-ring);
  --r2p-hover-soft: var(--r2-surface-2); --r2p-hover-strong: var(--r2-hover); --r2p-danger: var(--r2-err);
  --r2p-ease: var(--r2-ease); --r2p-dur: var(--r2-dur-fast); --r2p-btn-h: 44px; --r2p-btn-radius: 12px;
  --spring: var(--r2-ease);
  font-family: var(--r2-font);
  letter-spacing: -0.003em;
}

/* ---------- Base ---------- */
html[data-look="novo"] body { background: var(--r2-bg); color: var(--r2-text); font-family: var(--r2-font); font-size: var(--r2-fs); -webkit-font-smoothing: antialiased; }
html[data-look="novo"] body :where(button, a, input, select, textarea, [tabindex]):focus-visible { outline: 0; box-shadow: var(--r2-ring); }
html[data-look="novo"] body :where(.num, .amount, .op-value, td, .stat > strong, .fd-kpi strong) { font-variant-numeric: tabular-nums; }
html[data-look="novo"] body .muted { color: var(--r2-text-2); }
html[data-look="novo"] body :where(small, .small, .hint, .field-hint, .base-note, .stat-label, .nav-count, .badge, .stage-pill, .caption, figcaption, .fd-footnote, .op-meta, .meta) { font-size: max(var(--r2-fs-xs), 0.78rem); }
html[data-look="novo"] body .eyebrow { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--r2-brand-text); }
html[data-look="novo"] body .heading-dot { display: none !important; }
html[data-look="novo"] body h1, html[data-look="novo"] body .page-heading h1 { font-size: clamp(24px, 2.2vw, var(--r2-fs-h1)); line-height: 1.15; letter-spacing: -.02em; font-weight: 780; }
html[data-look="novo"] body h2, html[data-look="novo"] body .section-heading { letter-spacing: -.01em; font-weight: 720; }
html[data-look="novo"] body a { color: inherit; }
html[data-look="novo"] body .text-btn, html[data-look="novo"] body a.link { color: var(--r2-brand-text); font-weight: 600; }

/* ---------- Logo oficial (SVG em currentColor: branco no escuro, preto no claro) ---------- */
html[data-look="novo"] body .official-logo { display: inline-grid; place-items: center; flex: none; color: var(--r2-text); background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; width: auto; height: auto; border-radius: 0; overflow: visible; }
html[data-look="novo"] body .official-logo svg { display: block; width: 44px; height: auto; }
html[data-look="novo"] body .official-logo img { filter: none !important; }
html[data-look="novo"] body .sidebar > .brand .official-logo svg { width: 46px; }
html[data-look="novo"] body .login-brand .official-logo svg { width: 64px; color: #fff; }
html[data-look="novo"] body .login-brand .official-logo { color: #fff; }
html[data-look="novo"] body .mini-brand .official-logo svg { width: 44px; }
html[data-look="novo"] body .portal-header .official-logo svg, html[data-look="novo"] body .strip-mark .official-logo svg { width: 52px; }

/* ---------- Barra superior fixa (módulos · busca · liberações · tema) ---------- */
html[data-look="novo"] body .r2-theme-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; min-height: 60px; padding: 8px 20px; background: color-mix(in srgb, var(--r2-bg) 84%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--r2-line); }
html[data-look="novo"] body .r2-module-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--r2-line); border-radius: 14px; background: var(--r2-surface); }
html[data-look="novo"] body .r2-module-switch a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--r2-text-2); text-decoration: none; transition: background var(--r2-dur-fast) var(--r2-ease), color var(--r2-dur-fast); }
html[data-look="novo"] body .r2-module-switch a:hover { background: var(--r2-hover); color: var(--r2-text); }
html[data-look="novo"] body .r2-module-switch a[aria-current="page"] { background: var(--r2-surface-2); color: var(--r2-text); box-shadow: inset 0 0 0 1px var(--r2-line-2); }
html[data-look="novo"] body .r2-module-switch a[href="/"] svg { color: var(--r2-m-dir); }
html[data-look="novo"] body .r2-module-switch a[href="/comercial"] svg { color: var(--r2-m-com); }
html[data-look="novo"] body .r2-module-switch a[href^="/financeiro"] svg { color: var(--r2-m-fin); }
html[data-look="novo"] body .r2-module-switch a[href^="/producao"] svg { color: var(--r2-m-pro); }
html[data-look="novo"] body .r2-module-select { display: none; }
html[data-look="novo"] body .r2-theme-bar > :is(button, a):not(.r2-cmdk-trigger):not(.r2-theme-switch) { min-height: 44px; border-radius: 14px; border: 1px solid var(--r2-line); background: var(--r2-surface); color: var(--r2-text-2); font-weight: 600; }
html[data-look="novo"] body .r2-theme-bar > :is(button, a):hover { background: var(--r2-hover); color: var(--r2-text); }
html[data-look="novo"] body .r2-theme-switch { width: 72px; flex: none; }
html[data-look="novo"] body .r2-cmdk-trigger { flex: 1 1 260px; max-width: 420px; margin-left: auto; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--r2-line); border-radius: 14px; background: var(--r2-surface); color: var(--r2-text-3); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; }
html[data-look="novo"] body .r2-cmdk-trigger:hover { border-color: var(--r2-line-2); color: var(--r2-text-2); }
html[data-look="novo"] body .r2-cmdk-trigger span { overflow: hidden; text-overflow: ellipsis; }
html[data-look="novo"] body .r2-cmdk-trigger kbd { margin-left: auto; flex: none; font: 600 11.5px var(--r2-font); border: 1px solid var(--r2-line-2); border-radius: 6px; padding: 1px 6px; color: var(--r2-text-2); background: transparent; }
html[data-look="novo"] body .r2-theme-bar > .r2-cmdk-trigger ~ * { margin-left: 0; }

/* ---------- Menu lateral ---------- */
html[data-look="novo"] body .sidebar { background: var(--r2-surface); border-right: 1px solid var(--r2-line); backdrop-filter: none; }
html[data-look="novo"] body .sidebar > .brand { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; margin-bottom: 10px; border: 0; background: none; border-radius: 14px; font-size: 15px; text-decoration: none; color: var(--r2-text); }
html[data-look="novo"] body .sidebar > .brand small { font-size: 12.5px; line-height: 1.25; letter-spacing: .06em; font-weight: 700; color: var(--r2-text-2); white-space: normal; }
html[data-look="novo"] body .system-return { font-size: 12.5px; color: var(--r2-text-3); }
html[data-look="novo"] body .nav-label { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--r2-text-3); font-weight: 700; opacity: 1; padding: 10px 10px 4px; }
html[data-look="novo"] body .sidebar nav button, html[data-look="novo"] body .r2-nav-group-title { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; height: auto; padding: 9px 12px; border-radius: 12px; color: var(--r2-text-2); text-align: left; font-size: 14px; font-weight: 560; line-height: 1.25; white-space: normal; transition: background var(--r2-dur-fast) var(--r2-ease), color var(--r2-dur-fast); }
html[data-look="novo"] body .sidebar nav button:hover { background: var(--r2-hover); color: var(--r2-text); }
html[data-look="novo"] body .sidebar nav button.active { background: var(--r2-brand-soft); color: var(--r2-text); animation: none; }
html[data-look="novo"] body .sidebar nav button.active::before { content: ""; position: absolute; left: -8px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--r2-brand); box-shadow: 0 0 12px var(--r2-brand); }
html[data-look="novo"] body .r2-nav-group-title { justify-content: space-between; font-weight: 650; }
html[data-look="novo"] body .r2-nav-subgroup { padding-left: 8px; }
html[data-look="novo"] body .nav-count { margin-left: auto; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--r2-surface-2); border: 1px solid var(--r2-line); color: var(--r2-text-2); }
html[data-look="novo"] body .sidebar nav button.active .nav-count { background: var(--r2-brand); color: var(--r2-brand-ink); border-color: transparent; }
html[data-look="novo"] body .profile { border: 1px solid var(--r2-line); border-radius: 14px; background: var(--r2-surface-2); padding: 10px; }
html[data-look="novo"] body .avatar { background: var(--r2-brand-deep); color: #fff; border-radius: 50%; font-weight: 750; }
html[data-look="novo"] body .live-dot { background: var(--r2-ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--r2-ok) 20%, transparent); }

/* ---------- Barra de contexto (trilha) ---------- */
html[data-look="novo"] body .topbar { height: auto; min-height: 52px; padding: 8px 28px; display: flex; align-items: center; gap: 12px; background: transparent; border-bottom: 1px solid var(--r2-line); backdrop-filter: none; font-size: 13.5px; color: var(--r2-text-2); }
html[data-look="novo"] body .topbar b { color: var(--r2-text); font-weight: 650; }
html[data-look="novo"] body .topbar .top-company { margin-left: auto; white-space: nowrap; }
html[data-look="novo"] body .workspace > main, html[data-look="novo"] body main.workspace-main { padding: 28px 28px calc(var(--r2-mascot-space) + 24px); max-width: 1360px; }

/* ---------- Cartões, painéis e métricas ---------- */
html[data-look="novo"] body :is(.panel, .stat, .op-card, .summary-card, .card, .welcome-strip, .kpi, .fd-kpi) { background: var(--r2-surface); border: 1px solid var(--r2-line); border-radius: 20px; box-shadow: var(--r2-shadow); animation: none; }
html[data-look="novo"] body :is(.stat, .op-card, .summary-card):hover { transform: none; border-color: var(--r2-line-2); }
html[data-look="novo"] body .panel.padded, html[data-look="novo"] body .card { padding: 20px; }
html[data-look="novo"] body .stat > strong { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
html[data-look="novo"] body .stat-label { color: var(--r2-text-2); font-weight: 600; font-size: 13px; }
html[data-look="novo"] body .stat-grid > .stat:first-child, html[data-look="novo"] body .r2-kpi-hi { position: relative; overflow: hidden; background: linear-gradient(135deg, #05523D 0%, var(--r2-brand-deep) 60%, #0A8463 100%) !important; border-color: transparent !important; color: #fff !important; box-shadow: var(--r2-glow), var(--r2-shadow); }
html[data-look="novo"] body .stat-grid > .stat:first-child::after, html[data-look="novo"] body .r2-kpi-hi::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(47,217,164,.45), transparent 65%); pointer-events: none; }
html[data-look="novo"] body .stat-grid > .stat:first-child :is(.stat-label, small, strong, span), html[data-look="novo"] body .r2-kpi-hi :is(small, strong, span, p) { color: #fff !important; opacity: 1; }
html[data-look="novo"] body .welcome-strip { background: var(--r2-surface); color: var(--r2-text); border: 1px solid var(--r2-line); }
html[data-look="novo"] body .welcome-strip :is(.muted, .eyebrow) { color: var(--r2-text-2); }
html[data-look="novo"] body .strip-mark { background: var(--r2-brand); }
html[data-look="novo"] body :is(.kpi, .summary-card)::before { background: var(--r2-brand) !important; }

/* ---------- Botões ---------- */
html[data-look="novo"] body :is(button, .button, a.button) { font-family: inherit; }
html[data-look="novo"] body :is(button.primary, a.primary, .primary:not(input):not(.stat):not(.panel)) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; background: var(--r2-brand-deep); color: #fff; font-weight: 650; box-shadow: var(--r2-glow); transition: transform var(--r2-dur-fast) var(--r2-ease), background var(--r2-dur-fast), box-shadow .2s; }
html[data-look="novo"] body :is(button.primary, a.primary):hover:not(:disabled) { background: #0A8C68; transform: none; }
html[data-look="novo"] body :is(button, .button):active:not(:disabled) { transform: scale(.97); }
html[data-look="novo"] body :is(button.secondary, a.secondary, .secondary:not(input)) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--r2-line-2); border-radius: 12px; background: var(--r2-surface); color: var(--r2-text); font-weight: 650; }
html[data-look="novo"] body :is(button.secondary, a.secondary):hover:not(:disabled) { background: var(--r2-hover); }
html[data-look="novo"] body :is(button.ghost, .r2-btn-ghost) { min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; color: var(--r2-text-2); font-weight: 600; }
html[data-look="novo"] body :is(button.ghost, .r2-btn-ghost):hover { background: var(--r2-hover); color: var(--r2-text); }
html[data-look="novo"] body :is(button.danger, .r2-btn-danger) { color: var(--r2-err); }
html[data-look="novo"] body button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
html[data-look="novo"] body .icon-btn { min-width: 44px; min-height: 44px; border-radius: 12px; border: 1px solid var(--r2-line); background: var(--r2-surface); color: var(--r2-text-2); display: inline-grid; place-items: center; }
html[data-look="novo"] body .icon-btn:hover { background: var(--r2-hover); color: var(--r2-text); }
html[data-look="novo"] body button.sm, html[data-look="novo"] body .r2-btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }

/* ---------- Formulários ---------- */
html[data-look="novo"] body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea) { min-height: 44px; background: var(--r2-surface-2); color: var(--r2-text); border: 1px solid var(--r2-line-2); border-radius: var(--r2-radius-field); font: inherit; font-size: 14px; transition: border-color var(--r2-dur-fast), box-shadow var(--r2-dur-fast), background var(--r2-dur-fast); }
html[data-look="novo"] body textarea { min-height: 88px; }
html[data-look="novo"] body :is(input, select, textarea):focus { border-color: var(--r2-brand); background: var(--r2-surface); box-shadow: var(--r2-ring); outline: 0; }
html[data-look="novo"] body :is(input, select, textarea)::placeholder { color: var(--r2-text-3); opacity: 1; }
html[data-look="novo"] body :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--r2-brand-deep); width: 18px; height: 18px; }
html[data-look="novo"] body :is(.field > .field-label, .field > span:first-child, label > span:first-child) { color: var(--r2-text-2); font-weight: 600; font-size: 13px; }
html[data-look="novo"] body .field-error, html[data-look="novo"] body .r2-field-error { display: block; margin-top: 6px; color: var(--r2-err); font-size: 12.5px; font-weight: 600; }
html[data-look="novo"] body [aria-invalid="true"] { border-color: var(--r2-err) !important; }

/* ---------- Tabelas ---------- */
html[data-look="novo"] body table { border-collapse: collapse; font-size: 13.5px; }
html[data-look="novo"] body :is(table thead th, .quote-table th) { position: sticky; top: 0; z-index: 1; text-align: left; color: var(--r2-text-3); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--r2-surface-2); border-bottom: 1px solid var(--r2-line); }
html[data-look="novo"] body table :is(td, th) { border-color: var(--r2-line); }
html[data-look="novo"] body table tbody tr:hover, html[data-look="novo"] body .row-link:hover { background: var(--r2-hover); }
html[data-look="novo"] body .table-scroll { border: 1px solid var(--r2-line); border-radius: 16px; overflow: auto; }

/* ---------- Abas, pílulas, badges ---------- */
html[data-look="novo"] body .tab-bar:not(nav) { gap: 4px; border-bottom: 1px solid var(--r2-line); }
html[data-look="novo"] body :is(.badge, .stage-pill, .r2-pill) { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: 0; background: var(--r2-surface-2); border: 1px solid var(--r2-line); color: var(--r2-text-2); }
html[data-look="novo"] body :is(.badge.aceito, .badge.ganho, .r2-pill.ok) { color: var(--r2-ok); background: color-mix(in srgb, var(--r2-ok) 12%, transparent); border-color: color-mix(in srgb, var(--r2-ok) 35%, transparent); }
html[data-look="novo"] body :is(.badge.enviado, .r2-pill.info) { color: var(--r2-info); background: color-mix(in srgb, var(--r2-info) 12%, transparent); border-color: color-mix(in srgb, var(--r2-info) 35%, transparent); }
html[data-look="novo"] body :is(.badge.recusado, .badge.perdido, .badge.cancelado, .r2-pill.err) { color: var(--r2-err); background: color-mix(in srgb, var(--r2-err) 12%, transparent); border-color: color-mix(in srgb, var(--r2-err) 35%, transparent); }
html[data-look="novo"] body :is(.r2-pill.warn, .badge.rascunho) { color: var(--r2-warn); background: color-mix(in srgb, var(--r2-warn) 12%, transparent); border-color: color-mix(in srgb, var(--r2-warn) 35%, transparent); }

/* ---------- Avisos, toasts e modais ---------- */
html[data-look="novo"] body .error:not(.dismiss) { color: var(--r2-err); }
html[data-look="novo"] body .error.dismiss { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--r2-err) 10%, var(--r2-surface)); border: 1px solid color-mix(in srgb, var(--r2-err) 40%, transparent); color: var(--r2-text); }
html[data-look="novo"] body .notice.toast-island, html[data-look="novo"] body .r2-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 14px; background: var(--r2-toast-bg); color: var(--r2-toast-text); font-weight: 600; box-shadow: var(--r2-shadow); animation: r2-toast-in .3s var(--r2-ease) both; }
@keyframes r2-toast-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
html[data-look="novo"] body :is(.modal, .modal-card, [role="dialog"] > .modal-card) { background: var(--r2-surface); color: var(--r2-text); border: 1px solid var(--r2-line-2); border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
html[data-look="novo"] body :is(.modal-backdrop, .scrim, .sidebar-scrim) { background: var(--r2-scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ---------- Carregando e vazio ---------- */
html[data-look="novo"] body .skeleton, html[data-look="novo"] body .r2-skel { border-radius: 12px; background: linear-gradient(90deg, var(--r2-surface-2) 25%, var(--r2-hover) 50%, var(--r2-surface-2) 75%); background-size: 200% 100%; animation: r2-shimmer 1.3s linear infinite; color: transparent !important; }
@keyframes r2-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
html[data-look="novo"] body .r2-skel-page { display: grid; gap: 16px; padding: 28px; max-width: 1200px; margin: 0 auto; }
html[data-look="novo"] body .r2-skel-page .r2-skel.h { height: 34px; width: 40%; }
html[data-look="novo"] body .r2-skel-page .r2-skel-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
html[data-look="novo"] body .r2-skel-page .r2-skel.k { height: 110px; border-radius: 20px; }
html[data-look="novo"] body .r2-skel-page .r2-skel.b { height: 260px; border-radius: 20px; }
html[data-look="novo"] body .r2-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border: 1px dashed var(--r2-line-2); border-radius: 16px; background: var(--r2-surface-2); }
html[data-look="novo"] body .r2-empty strong { font-size: 14.5px; }
html[data-look="novo"] body .r2-empty p { margin: 0; color: var(--r2-text-2); font-size: 13.5px; }
html[data-look="novo"] body .r2-empty .r2-empty-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--r2-brand-soft); color: var(--r2-brand-text); }

/* ---------- Mascote assistente (72 px, minimizável, nunca cobre conteúdo) ---------- */
html[data-look="novo"] body .r2-mascote { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: flex-end; gap: 10px; flex-direction: row-reverse; pointer-events: none; }
html[data-look="novo"] body .r2-mascote > * { pointer-events: auto; }
html[data-look="novo"] body .r2-mascote-bot { position: relative; width: 72px; height: 72px; padding: 0; border-radius: 22px; border: 1px solid var(--r2-line-2); background: var(--r2-surface); box-shadow: var(--r2-shadow), var(--r2-glow); display: grid; place-items: center; cursor: pointer; animation: r2-float 4s ease-in-out infinite; }
html[data-look="novo"] body .r2-mascote-bot img { width: 64px; height: 64px; object-fit: contain; }
html[data-look="novo"] body .r2-mascote-badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--r2-err); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--r2-bg); }
html[data-look="novo"] body .r2-mascote-say { max-width: 300px; padding: 12px 14px; border-radius: 16px 16px 4px 16px; background: var(--r2-surface); border: 1px solid var(--r2-line-2); box-shadow: var(--r2-shadow); font-size: 13.5px; color: var(--r2-text); animation: r2-in .35s var(--r2-ease) both; }
html[data-look="novo"] body .r2-mascote-say p { margin: 0 0 10px; }
html[data-look="novo"] body .r2-mascote-say .row { display: flex; gap: 8px; }
html[data-look="novo"] body .r2-mascote-min { position: absolute; top: -10px; left: -10px; width: 28px; height: 28px; min-height: 0 !important; padding: 0; border-radius: 50%; border: 1px solid var(--r2-line-2); background: var(--r2-surface-2); color: var(--r2-text-2); font-size: 16px; line-height: 1; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
html[data-look="novo"] body .r2-mascote:hover .r2-mascote-min, html[data-look="novo"] body .r2-mascote:focus-within .r2-mascote-min { opacity: 1; }
html[data-look="novo"] body .r2-mascote.is-min .r2-mascote-bot { width: 44px; height: 44px; border-radius: 14px; animation: none; }
html[data-look="novo"] body .r2-mascote.is-min .r2-mascote-bot img { width: 38px; height: 38px; }
html[data-look="novo"] body .r2-mascote.is-min .r2-mascote-min, html[data-look="novo"] body .r2-mascote.is-min .r2-mascote-say { display: none; }
html[data-look="novo"] body .r2-assistant-launcher { display: none !important; }
html[data-look="novo"] body .assistant-launcher, html[data-look="novo"] body .ask-r2-fab { right: 108px !important; }
@keyframes r2-float { 50% { transform: translateY(-4px); } }
@keyframes r2-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Paleta de comandos (Ctrl/⌘ + K) ---------- */
.r2-cmdk { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 14vh 16px 16px; background: var(--r2-scrim, rgba(5,6,12,.55)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.r2-cmdk-box { width: min(640px, 100%); max-height: 72vh; display: flex; flex-direction: column; background: var(--r2-surface, #0F1220); color: var(--r2-text, #F2F3F8); border: 1px solid var(--r2-line-2, rgba(255,255,255,.14)); border-radius: 20px; box-shadow: var(--r2-shadow); overflow: hidden; animation: r2-in .2s var(--r2-ease) both; }
.r2-cmdk-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--r2-line); }
.r2-cmdk-input input { flex: 1; height: 56px; min-height: 56px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--r2-text); font: inherit; font-size: 16px !important; padding: 0 !important; }
.r2-cmdk-input kbd { font: 600 11.5px var(--r2-font); border: 1px solid var(--r2-line-2); border-radius: 6px; padding: 1px 6px; color: var(--r2-text-2); }
.r2-cmdk-list { overflow: auto; padding: 6px 0 10px; margin: 0; list-style: none; }
.r2-cmdk-grp { padding: 10px 20px 4px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--r2-text-3); font-weight: 700; }
.r2-cmdk-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 20px; cursor: pointer; }
.r2-cmdk-item[aria-selected="true"], .r2-cmdk-item:hover { background: var(--r2-hover); }
.r2-cmdk-item .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c, var(--r2-brand)) 16%, transparent); color: var(--c, var(--r2-brand-text)); }
.r2-cmdk-item b { font-weight: 620; }
.r2-cmdk-item small { margin-left: auto; color: var(--r2-text-3); font-size: 12.5px; white-space: nowrap; }
.r2-cmdk-empty { padding: 22px 20px; color: var(--r2-text-2); }
.r2-cmdk-foot { display: flex; gap: 14px; padding: 10px 18px; border-top: 1px solid var(--r2-line); font-size: 12.5px; color: var(--r2-text-3); }

/* ---------- Barra inferior (celular) ---------- */
@media (max-width: 820px) {
  html[data-look="novo"] body .r2-theme-bar { padding: 8px 12px; gap: 8px; min-height: 56px; }
  html[data-look="novo"] body .r2-module-switch { display: none; }
  html[data-look="novo"] body .r2-module-select { display: block; flex: 0 1 150px; min-width: 0; min-height: 44px; }
  html[data-look="novo"] body .r2-cmdk-trigger { flex: 1 1 auto; max-width: none; margin-left: 0; padding: 0 12px; }
  html[data-look="novo"] body .r2-cmdk-trigger kbd { display: none; }
  html[data-look="novo"] body .r2-theme-bar :is(.r2-approvals-trigger, .r2-passkey-trigger) strong, html[data-look="novo"] body .r2-theme-bar .r2-passkey-label { display: none; }
  html[data-look="novo"] body .topbar { padding: 8px 14px; }
  html[data-look="novo"] body .workspace > main, html[data-look="novo"] body main.workspace-main { padding: 18px 14px calc(var(--r2-mascot-space) + 76px); }
  html[data-look="novo"] body nav.tab-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--r2-surface); border-top: 1px solid var(--r2-line); border-bottom: 0; }
  html[data-look="novo"] body nav.tab-bar button { display: grid; place-items: center; gap: 2px; min-height: 52px; border-radius: 12px; font-size: 11.5px; font-weight: 600; color: var(--r2-text-3); background: none; border: 0; box-shadow: none; }
  html[data-look="novo"] body nav.tab-bar button.active, html[data-look="novo"] body nav.tab-bar button[aria-current="page"] { color: var(--r2-text); background: var(--r2-brand-soft); }
  html[data-look="novo"] body .r2-mascote { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  html[data-look="novo"] body .r2-mascote-bot { width: 56px; height: 56px; border-radius: 18px; }
  html[data-look="novo"] body .r2-mascote-bot img { width: 48px; height: 48px; }
  html[data-look="novo"] body .r2-mascote-say { display: none; }
  html[data-look="novo"] body .r2-mascote-min { opacity: 1; }
  html[data-look="novo"] body .assistant-launcher, html[data-look="novo"] body .ask-r2-fab { right: 80px !important; }
}
@media (max-width: 560px) {
  html[data-look="novo"] body .stat > strong { font-size: 26px; }
}

/* ---------- Movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html[data-look="novo"] body *, html[data-look="novo"] body *::before, html[data-look="novo"] body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Tela de entrada (palco: grade de LED + feixes) ---------- */
html[data-look="novo"] body .login-novo { grid-template-columns: 1.15fr 1fr; background: var(--r2-bg); }
html[data-look="novo"] body .login-novo .login-story { position: relative; overflow: hidden; background: #05070D; color: #B4BACF; padding: 48px 7%; gap: 0; }
html[data-look="novo"] body .login-novo .login-story::after { display: none; }
html[data-look="novo"] body .login-grid { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(255,255,255,.10) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 90%); mask-image: linear-gradient(120deg, transparent 20%, #000 90%); }
html[data-look="novo"] body .login-blob { position: absolute; top: -40%; width: 180px; height: 200%; border-radius: 0; filter: blur(22px); opacity: .5; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(47,217,164,.35), transparent); animation: r2-sweep 10s ease-in-out infinite alternate; }
html[data-look="novo"] body .login-blob-a { left: 18%; }
html[data-look="novo"] body .login-blob-b { left: 62%; animation-delay: -5s; background: linear-gradient(90deg, transparent, rgba(91,155,255,.25), transparent); }
@keyframes r2-sweep { from { transform: translateX(-60px) rotate(18deg); } to { transform: translateX(80px) rotate(12deg); } }
html[data-look="novo"] body .login-novo .login-brand { position: relative; display: flex; align-items: center; gap: 14px; margin: 0; }
html[data-look="novo"] body .login-brand-text strong { color: #fff; font-size: 17px; font-weight: 800; }
html[data-look="novo"] body .login-brand-text small { color: #9AA1BA; font-size: 12.5px; }
html[data-look="novo"] body .login-copy { position: relative; margin: auto 0; max-width: 560px; }
html[data-look="novo"] body .login-novo .login-story .eyebrow { color: #2FD9A4; letter-spacing: .14em; }
html[data-look="novo"] body .login-novo .login-story h1 { color: #fff; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-size: clamp(36px, 3.6vw, 58px); margin: 16px 0 20px; }
html[data-look="novo"] body .login-novo .login-story em { color: #2FD9A4; font-style: normal; }
html[data-look="novo"] body .login-novo .login-story > .login-copy > p:not(.eyebrow) { color: #B4BACF; font-size: 16px; line-height: 1.55; }
html[data-look="novo"] body .login-pillars { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 460px; }
html[data-look="novo"] body .login-pillars li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
html[data-look="novo"] body .login-pillars b { color: #fff; font-size: 15px; }
html[data-look="novo"] body .login-pillars span { color: #9AA1BA; font-size: 12.5px; }
html[data-look="novo"] body .login-mascot { position: absolute; right: 5%; bottom: 72px; width: clamp(150px, 16vw, 230px); height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); pointer-events: none; }
html[data-look="novo"] body .login-novo .login-footer { position: relative; color: #8087A3; padding-top: 24px; font-size: 12.5px; }
html[data-look="novo"] body .login-novo .login-form { padding: 48px 32px; background: var(--r2-bg); }
html[data-look="novo"] body .login-novo .login-form form { max-width: 400px; background: var(--r2-surface); border: 1px solid var(--r2-line); border-radius: 24px; padding: 32px 30px; box-shadow: var(--r2-shadow); }
html[data-look="novo"] body .login-novo .mini-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
html[data-look="novo"] body .login-novo .mini-brand > span { margin: 0; font-size: 12px; letter-spacing: .14em; color: var(--r2-text-2); font-weight: 700; }
html[data-look="novo"] body .login-novo .login-form h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 6px; }
html[data-look="novo"] body .login-novo .login-form input { height: 52px; border-radius: 14px; font-size: 16px; }
html[data-look="novo"] body .login-novo .wide { min-height: 52px; border-radius: 14px; font-size: 16px; margin-top: 10px; width: 100%; }
@media (max-width: 960px) {
  html[data-look="novo"] body .login-novo { grid-template-columns: 1fr; }
  html[data-look="novo"] body .login-novo .login-story { padding: 28px 20px; min-height: 0; }
  html[data-look="novo"] body .login-mascot { display: none; }
  html[data-look="novo"] body .login-novo .login-form { padding: 24px 16px 40px; }
}

/* ---------- Liberações: só ícone + número (V8) ---------- */
html[data-look="novo"] body .r2-director-approvals { position: relative; display: inline-grid; place-items: center; width: 44px; min-width: 44px; height: 44px; padding: 0; gap: 0; flex: none; border-radius: 14px; border: 1px solid var(--r2-line); background: var(--r2-surface); color: var(--r2-text-2); text-decoration: none; }
html[data-look="novo"] body .r2-director-approvals:hover { background: var(--r2-hover); color: var(--r2-text); }
html[data-look="novo"] body .r2-director-approvals > :not(svg):not(.r2-approvals-count) { display: none !important; }
html[data-look="novo"] body .r2-approvals-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--r2-err); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--r2-bg); }
html[data-look="novo"] body .r2-director-approvals.check-failed .r2-approvals-count { background: var(--r2-warn); color: #1a1200; }
html[data-look="novo"] body .r2-theme-switch { min-height: 32px; }

/* ---------- Editor de orçamento: barra fixa e resumo fixo (V9) ---------- */
html[data-look="novo"] body .editor-heading { position: sticky; top: 60px; z-index: 20; margin: -8px -4px 14px; padding: 12px 14px; border: 1px solid var(--r2-line); border-radius: 18px; background: color-mix(in srgb, var(--r2-surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--r2-shadow); }
html[data-look="novo"] body .editor-heading h1 { font-size: 22px; margin: 2px 0 0; }
html[data-look="novo"] body .editor-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
html[data-look="novo"] body .save-state { font-size: 12.5px; color: var(--r2-text-2); font-weight: 600; }
html[data-look="novo"] body .save-state.dirty { color: var(--r2-warn); }
html[data-look="novo"] body .editor-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin-bottom: 16px; border: 1px solid var(--r2-line); border-radius: 14px; background: var(--r2-surface); }
html[data-look="novo"] body .editor-tabs button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--r2-text-2); font-weight: 650; padding: 0 12px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
html[data-look="novo"] body .editor-tabs button span { font-size: 12px; color: var(--r2-text-3); }
html[data-look="novo"] body .editor-tabs button.active { background: var(--r2-brand-soft); color: var(--r2-text); box-shadow: inset 0 0 0 1px var(--r2-brand); }
html[data-look="novo"] body .editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
html[data-look="novo"] body .quote-summary { position: sticky; top: 168px; max-height: calc(100vh - 190px); overflow: auto; background: var(--r2-surface); border: 1px solid var(--r2-line); border-radius: 20px; padding: 18px; box-shadow: var(--r2-shadow); }
@media (max-width: 1100px) { html[data-look="novo"] body .editor-layout { grid-template-columns: 1fr; } html[data-look="novo"] body .quote-summary { position: static; max-height: none; } }
@media (max-width: 820px) { html[data-look="novo"] body .editor-heading { top: 56px; margin: 0 0 12px; } html[data-look="novo"] body .editor-heading h1 { font-size: 18px; } }

/* ---------- Portal: cabeçalho leve com a logomarca oficial ---------- */
html[data-look="novo"] body .r2-portal { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
html[data-look="novo"] body .portal-header { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; min-height: 0; padding: 18px 0 6px; background: transparent !important; border: 0 !important; box-shadow: none; }
html[data-look="novo"] body .portal-header > a:not(.purchase-entry) { order: 1; display: inline-grid; place-items: center; background: none !important; padding: 0 !important; border-radius: 0; }
html[data-look="novo"] body .portal-header > a:not(.purchase-entry) .official-logo svg { width: 58px; }
html[data-look="novo"] body .portal-header > span { order: 2; margin-right: auto; font-size: 12.5px; letter-spacing: .1em; font-weight: 700; color: var(--r2-text-2); }
html[data-look="novo"] body .portal-header > a.purchase-entry { order: 3; flex: none; margin: 0; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--r2-line-2); background: var(--r2-surface) !important; color: var(--r2-text); font-weight: 650; text-decoration: none; }
html[data-look="novo"] body .portal-header > button { order: 4; margin-left: 0; }
html[data-look="novo"] body .r2-portal main { padding: 12px 0 calc(var(--r2-mascot-space) + 24px); }
html[data-look="novo"] body .academy-logo, html[data-look="novo"] body .automation-shell aside > a { background: none !important; }
@media (max-width: 820px) {
  html[data-look="novo"] body .r2-portal { padding: 0 16px; }
  html[data-look="novo"] body .portal-header { flex-wrap: wrap; gap: 10px; padding-top: 12px; }
  html[data-look="novo"] body .portal-header > a:not(.purchase-entry) .official-logo svg { width: 48px; }
  html[data-look="novo"] body .portal-header > a.purchase-entry { order: 5; flex: 1 1 100%; justify-content: center; }
  html[data-look="novo"] body .r2-theme-bar .r2-module-select { flex: 1 1 auto; max-width: none; }
  html[data-look="novo"] body .r2-cmdk-trigger { flex: 0 0 44px; width: 44px; padding: 0; justify-content: center; }
  html[data-look="novo"] body .r2-cmdk-trigger span { display: none; }
  html[data-look="novo"] body .r2-theme-bar > button.secondary[title^="Biometria"] { width: 44px; min-width: 44px; padding: 0; font-size: 0; position: relative; }
  html[data-look="novo"] body .r2-theme-bar > button.secondary[title^="Biometria"]::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 11v4M8 9a4 4 0 0 1 8 0v4a8 8 0 0 1-1 4M6 13V9a6 6 0 0 1 12 0M4 15V9a8 8 0 0 1 15-4M10 21a10 10 0 0 0 2-6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 11v4M8 9a4 4 0 0 1 8 0v4a8 8 0 0 1-1 4M6 13V9a6 6 0 0 1 12 0M4 15V9a8 8 0 0 1 15-4M10 21a10 10 0 0 0 2-6'/%3E%3C/svg%3E") center/contain no-repeat; }
}

html[data-look="novo"] body .login-brand-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
@media (min-width: 821px) { html[data-look="novo"] body .assistant-launcher { display: none !important; } }

/* ---------- Fonte mínima 12,5 px (V6) ---------- */
html[data-look="novo"] body :is(table td, table td *:not(svg):not(h1):not(h2):not(h3), .quote-table td) { font-size: 13.5px; }
html[data-look="novo"] body :is(table td) :is(small, .muted) { font-size: 12.5px; }
html[data-look="novo"] body :is(table th, .r2-tbl th) { font-size: 12.5px; }
html[data-look="novo"] body :is(.text-btn, .top-company, .footnote, .base-note, .system-return, .login-note, .op-interest, .op-meta, .op-pending, .op-owner, .stage-pill, .badge, .nav-count) { font-size: 13px; }
html[data-look="novo"] body :is(.muted, .app-footer, .app-footer *, .avatar, small) { font-size: max(12.5px, 0.95em); }
html[data-look="novo"] body .avatar { font-size: 12.5px; }
html[data-look="novo"] body :is(.r2-pill, .r2-lead .age, .r2-lead .who, .r2-lead .meta) { font-size: 12.5px; }
html[data-look="novo"] body kbd { font-size: 12px !important; }
html[data-look="novo"] body .login-novo .login-footer, html[data-look="novo"] body .login-novo .login-footer * { font-size: 12.5px; }
html[data-look="novo"] body .login-form :is(.muted, small, p) { font-size: 13px; }
html[data-look="novo"] body :is(.system-status, .portal-tool-status, .r2-portal > footer, .table-footer, .table-footer *, .profile strong, .profile small, .profile p, .sidebar-bottom p, .mini-brand > span) { font-size: 12.5px; }
html[data-look="novo"] body kbd { font-size: 12.5px !important; }
@media (max-width: 820px) { html[data-look="novo"] body .topbar .top-company { display: none; } html[data-look="novo"] body .topbar > span:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; } }

/* ---------- Logomarca oficial em telas que ainda usam <img> (Produção, Academy, cadastros) ---------- */
html[data-look="novo"] body img[src*="r2-oficial-branca.png"], html[data-look="novo"] body img[src*="r2-logo-branca.svg"] { content: url("/brand/r2-logo-branca.svg"); filter: none !important; background: none !important; object-fit: contain; }
html[data-look="novo"][data-theme="light"] body img[src*="r2-oficial-branca.png"], html[data-look="novo"][data-theme="light"] body img[src*="r2-logo-branca.svg"] { content: url("/brand/r2-logo-preta.svg"); }
html[data-look="novo"] body .sidebar .brand:has(img) { background: none; border: 0; }
html[data-look="novo"] body .sidebar .brand img { width: 46px !important; height: auto !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; background: none !important; }
/* Liberações em telas com a marcação antiga (Produção) */
html[data-look="novo"] body .r2-director-approvals:not(:has(svg))::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16V11a6 6 0 1 1 12 0v5l2 2H4z M10 21h4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16V11a6 6 0 1 1 12 0v5l2 2H4z M10 21h4'/%3E%3C/svg%3E") center/contain no-repeat; }
html[data-look="novo"] body .r2-director-approvals.has-pending:not(:has(svg)) > b { display: grid !important; position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--r2-err); color: #fff; font-size: 12px; font-weight: 800; place-items: center; box-shadow: 0 0 0 2px var(--r2-bg); }

/* ===== Navegação 1137: abas do editor, pendências, busca de itens, barra fixa no celular ===== */
html[data-look="novo"] body .editor-tabs button span { display:inline-grid; place-items:center; width:20px; height:20px; border-radius:999px; background:var(--r2-surface-2); font-size:11.5px; color:var(--r2-text-2); }
html[data-look="novo"] body .editor-tabs button.active span { background:var(--r2-brand); color:var(--r2-brand-ink); }
html[data-look="novo"] body .editor-tabs-mais { margin-left:auto; display:inline-flex; position:relative; flex:none; }
html[data-look="novo"] body .editor-tabs-mais select { width:auto; min-width:0; box-shadow:none; min-height:40px; border:0 !important; border-radius:10px; background:transparent; color:var(--r2-text-2); font-weight:650; padding:0 30px 0 12px; cursor:pointer; }
html[data-look="novo"] body .editor-tabs-mais.active select { background:var(--r2-brand-soft); color:var(--r2-text); box-shadow:inset 0 0 0 1px var(--r2-brand); }
html[data-look="novo"] body .r2-faltas { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin:0 0 14px; padding:10px 14px; border:1px solid color-mix(in srgb,var(--r2-warn) 55%,transparent); border-radius:14px; background:color-mix(in srgb,var(--r2-warn) 9%,transparent); }
html[data-look="novo"] body .r2-faltas.ok { border-color:color-mix(in srgb,var(--r2-ok) 50%,transparent); background:color-mix(in srgb,var(--r2-ok) 8%,transparent); }
html[data-look="novo"] body .r2-faltas > div:first-child { display:grid; gap:1px; }
html[data-look="novo"] body .r2-faltas > div:first-child span { font-size:12.5px; color:var(--r2-text-3); }
html[data-look="novo"] body .r2-faltas-chips { display:flex; flex-wrap:wrap; gap:6px; }
html[data-look="novo"] body .r2-chip { min-height:32px; padding:0 12px; border:1px solid var(--r2-line-2); border-radius:999px; background:var(--r2-surface); color:var(--r2-text); font-size:13px; font-weight:600; cursor:pointer; }
html[data-look="novo"] body .r2-chip:hover { border-color:var(--r2-brand); }
html[data-look="novo"] body .r2-item-add { display:grid; gap:8px; margin-bottom:14px; }
html[data-look="novo"] body .r2-item-busca { position:relative; }
html[data-look="novo"] body .r2-item-busca input { width:100%; min-height:46px; font-size:15px; border:1px dashed var(--r2-brand); border-radius:var(--r2-radius-field,12px); background:var(--r2-surface); color:var(--r2-text); padding:0 14px; }
html[data-look="novo"] body .r2-item-busca input:focus { border-style:solid; outline:none; box-shadow:0 0 0 3px var(--r2-ring); }
html[data-look="novo"] body .r2-item-busca-lista { position:absolute; z-index:40; left:0; right:0; top:calc(100% + 4px); max-height:340px; overflow:auto; margin:0; padding:6px; list-style:none; border:1px solid var(--r2-line-2); border-radius:14px; background:var(--r2-surface); box-shadow:var(--r2-shadow); }
html[data-look="novo"] body .r2-item-busca-grupo { display:block; padding:8px 10px 4px; font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--r2-text-3); }
html[data-look="novo"] body .r2-item-busca-lista button { display:flex; width:100%; justify-content:space-between; gap:10px; align-items:baseline; min-height:40px; padding:8px 10px; border:0; border-radius:10px; background:transparent; color:var(--r2-text); text-align:left; cursor:pointer; }
html[data-look="novo"] body .r2-item-busca-lista button.on { background:var(--r2-brand-soft); }
html[data-look="novo"] body .r2-item-busca-lista small { color:var(--r2-text-3); font-size:12.5px; white-space:nowrap; }
html[data-look="novo"] body .r2-base-avancada summary { cursor:pointer; font-size:13px; color:var(--r2-text-3); padding:2px 0; }
html[data-look="novo"] body .r2-base-avancada[open] { padding:12px; border:1px solid var(--r2-line); border-radius:14px; }
html[data-look="novo"] body .r2-parcela-remover { align-self:end; min-height:36px; background:none; border:0; color:var(--r2-err); font-size:13px; text-decoration:underline; padding:0 4px; }
html[data-look="novo"] body .r2-editor-bar { display:none; }
@media (max-width:720px){
  html[data-look="novo"] body .form-grid { grid-template-columns:1fr !important; }
  html[data-look="novo"] body .editor-tabs { flex-wrap:nowrap; }
  html[data-look="novo"] body .editor-tabs button { padding:0 10px; }
  html[data-look="novo"] body .r2-editor-bar { display:grid; grid-template-columns:repeat(auto-fit,minmax(0,1fr)); gap:8px; position:fixed; left:0; right:0; bottom:0; z-index:46; padding:10px 12px calc(10px + env(safe-area-inset-bottom)); background:var(--r2-bg); border-top:1px solid var(--r2-line); }
  html[data-look="novo"] body .r2-editor-bar button { min-height:48px; border-radius:12px; font-weight:700; }
  html[data-look="novo"] body:has(.r2-editor-bar) nav.tab-bar, html[data-look="novo"] body:has(.r2-editor-bar) .r2-mascote, html[data-look="novo"] body:has(.r2-editor-bar) .assistant-launcher { display:none !important; }
  html[data-look="novo"] body:has(.r2-editor-bar) main { padding-bottom:96px; }
}

@media (max-width:720px){
  html[data-look="novo"] body:has(.r2-editor-bar) .editor-heading { position:static !important; top:auto !important; }
  html[data-look="novo"] body:has(.r2-editor-bar) .editor-actions [data-acao] { display:none; }
}

html[data-look="novo"] body .r2-perigo { color: var(--r2-err) !important; }

html.r2-treino body::before{content:"TREINO · dados fictícios · zerado toda noite";position:fixed;top:0;left:50%;transform:translateX(-50%);z-index:2147483000;padding:3px 12px;border-radius:0 0 10px 10px;background:#F5B841;color:#1a1300;font:700 11.5px/1.4 system-ui,sans-serif;letter-spacing:.04em;pointer-events:none;white-space:nowrap}
