/* =====================================================================
   Phoenix Soluções — Design System v11
   Tipografia: Inter (interface) + Cinzel (marca)
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #171313; --ink-2: #2a2322; --ink-3: #4a403e;
  --muted: #7a6f6c; --muted-2: #a39896;
  --line: #ebe5e3; --line-2: #f3efee;
  --bg: #f7f4f3; --surface: #ffffff; --surface-2: #fbf9f8;
  --red: #d7261e; --red-2: #b81d16; --red-soft: #fdeceb; --red-ink: #9b1812;
  --ember: #f2a93b; --ember-soft: #fff4e2; --ember-ink: #8a5300;
  --green: #1f9d57; --green-soft: #e7f7ee; --green-ink: #10693a;
  --blue: #2f6fdf; --blue-soft: #ebf2ff; --blue-ink: #1d4fa8;
  --violet: #7a4fd6; --violet-soft: #f2edfd; --violet-ink: #5b34b0;
  --gray-soft: #f1eeed;
  --sidebar: #151111; --sidebar-2: #221b1a; --sidebar-ink: #e9e2e0; --sidebar-muted: #9d918e;
  --radius: 14px; --radius-sm: 10px; --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(23, 19, 19, .06);
  --shadow: 0 1px 3px rgba(23, 19, 19, .06), 0 8px 24px -12px rgba(23, 19, 19, .14);
  --shadow-lg: 0 24px 60px -20px rgba(23, 19, 19, .35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --brand-font: 'Cinzel', Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
code { background: var(--gray-soft); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: rgba(215, 38, 30, .16); }
:focus-visible { outline: 3px solid rgba(215, 38, 30, .35); outline-offset: 2px; }

/* ---------------------------------------------------------------- botões */
.btn { --b: var(--surface); --c: var(--ink); --bd: var(--line); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--bd); background: var(--b); color: var(--c); font: 600 13px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s; text-decoration: none !important; }
.btn:hover { border-color: #d9cfcc; box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { --b: var(--red); --c: #fff; --bd: var(--red); box-shadow: 0 6px 16px -8px rgba(215, 38, 30, .7); }
.btn.primary:hover { --b: var(--red-2); }
.btn.dark { --b: var(--ink); --c: #fff; --bd: var(--ink); }
.btn.green { --b: var(--green); --c: #fff; --bd: var(--green); }
.btn.soft-green { --b: var(--green-soft); --c: var(--green-ink); --bd: transparent; }
.btn.soft-red, .btn.danger { --b: var(--red-soft); --c: var(--red-ink); --bd: transparent; }
.btn.ghost { --b: transparent; --bd: transparent; --c: var(--ink-3); }
.btn.ghost:hover { --b: var(--gray-soft); box-shadow: none; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn.xs { height: 26px; padding: 0 9px; font-size: 11px; border-radius: 7px; gap: 5px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.icon { width: 40px; padding: 0; }
.btn.sm.icon { width: 32px; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.sm .icon-svg, .btn.xs .icon-svg { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- formulários */
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > label, .label { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.field .req::after, .req::after { content: ' *'; color: var(--red); }
.field small, .help { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
input, select, textarea { font: inherit; color: var(--ink); width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #e1d9d7; border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 38, 30, .12); }
input[readonly], input:disabled, select:disabled { background: var(--surface-2); color: var(--ink-3); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--red); background: #fffafa; }
.field .error-text { color: var(--red); font-size: 11.5px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; cursor: pointer; line-height: 1.45; }
.check input { width: 18px; min-height: 18px; height: 18px; margin-top: 1px; accent-color: var(--red); flex: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.switch input { appearance: none; width: 40px; min-height: 22px; height: 22px; padding: 0; border-radius: 99px; background: #ddd4d2; border: 0; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }
.input-icon { position: relative; }
.input-icon .icon-svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.input-icon input { padding-left: 38px; }
.money-input { position: relative; }
.money-input::before { content: 'R$'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; font-weight: 600; }
.money-input input { padding-left: 36px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 8px 0 2px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.step-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 11px; letter-spacing: 0; }

/* ---------------------------------------------------------------- cartões e blocos */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card.flat { box-shadow: none; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head p { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.callout { border-radius: 12px; padding: 12px 14px; background: var(--blue-soft); color: var(--blue-ink); font-size: 13px; line-height: 1.5; border: 1px solid #dbe6fb; }
.callout.ok { background: var(--green-soft); color: var(--green-ink); border-color: #cdebd9; }
.callout.warn { background: var(--ember-soft); color: var(--ember-ink); border-color: #f7dfb7; }
.callout.danger { background: var(--red-soft); color: var(--red-ink); border-color: #f6d0cd; margin-bottom: 12px; }
.callout > b:first-child { display: block; margin-bottom: 2px; }
.plain-list { margin: 6px 0 0; padding-left: 18px; }
.plain-list li { margin: 3px 0; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 14px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi .kpi-label { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi .kpi-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--tone, var(--gray-soft)); color: var(--tone-ink, var(--ink-3)); }
.kpi .kpi-ico .icon-svg { width: 16px; height: 16px; }
.kpi strong { display: block; font-size: 24px; font-weight: 800; margin-top: 8px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: 11.5px; }
.kpi.clickable { cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s; }
.kpi.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi.alert { border-color: #f4c9c6; background: linear-gradient(180deg, #fff 0%, #fff7f6 100%); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  background: var(--gray-soft); color: var(--ink-3); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.badge.plain::before { display: none; }
.badge.green { background: var(--green-soft); color: var(--green-ink); }
.badge.red { background: var(--red-soft); color: var(--red-ink); }
.badge.amber { background: var(--ember-soft); color: var(--ember-ink); }
.badge.blue { background: var(--blue-soft); color: var(--blue-ink); }
.badge.violet { background: var(--violet-soft); color: var(--violet-ink); }
@media (max-width: 700px) { .hide-sm { display: none; } }
.badge.dark { background: var(--ink); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: var(--gray-soft); font-size: 12px; font-weight: 600; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 14px; line-height: 1; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* avatar */
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; color: #fff;
  background: linear-gradient(135deg, var(--red), #e8662e); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; font-size: 10.5px; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.avatar.xl { width: 96px; height: 96px; font-size: 28px; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tabela */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #fcfaf9; }
.table tr.clickable { cursor: pointer; }
.table .t-title b { display: block; }
.table .t-title small { color: var(--muted); font-size: 11.5px; }
.table td.money, .money { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.pos { color: var(--green-ink); } .neg { color: var(--red-ink); }

/* toolbar e abas */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1; min-width: 200px; }
.toolbar input, .toolbar select { min-height: 38px; height: 38px; padding-top: 6px; padding-bottom: 6px; }
.toolbar select { width: auto; min-width: 150px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--gray-soft); border-radius: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; height: 34px; padding: 0 14px; border-radius: 9px; font: 600 13px var(--font); color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.tab .count { font-size: 11px; background: var(--red); color: #fff; border-radius: 99px; padding: 1px 7px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 0 12px; height: 36px; font: 600 12.5px var(--font); color: var(--ink-3); cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.active { background: var(--ink); color: #fff; }

/* barras de vagas */
.fill { height: 8px; border-radius: 99px; background: var(--gray-soft); overflow: hidden; display: flex; }
.fill i { display: block; height: 100%; background: var(--green); transition: width .6s var(--ease); }
.fill i.p { background: var(--ember); }
.fill.full i { background: var(--red); }
.slot-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; font-size: 12px; }
.slot-line .fill { grid-column: 1 / -1; }

/* estado vazio */
.empty { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty .empty-ico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.empty .empty-ico .icon-svg { width: 26px; height: 26px; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.empty p { max-width: 420px; margin: 0 auto 14px; }

/* timeline/listas */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.date-box { width: 46px; flex: none; text-align: center; border-radius: 10px; background: var(--red-soft); color: var(--red-ink); padding: 5px 0; line-height: 1.1; }
.date-box b { display: block; font-size: 17px; font-weight: 800; }
.date-box small { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.detail { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.detail span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.detail b { display: block; font-size: 13.5px; margin-top: 2px; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- modal, drawer, toast */
.overlay { position: fixed; inset: 0; background: rgba(23, 17, 16, .5); backdrop-filter: blur(3px); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.modal { background: #fff; border-radius: var(--radius-lg); width: min(760px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(.98); transition: transform .25s var(--ease); }
.overlay.open .modal { transform: none; }
.modal.sm { width: min(460px, 100%); }
.modal.lg { width: min(1040px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line-2); }
.modal-head p { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.modal-body { padding: 18px 22px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line-2); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); flex-wrap: wrap; }
.x-btn { border: 0; background: var(--gray-soft); width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink-3); flex: none; }
.drawer-layer { position: fixed; inset: 0; z-index: 70; background: rgba(23, 17, 16, .35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-layer.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; z-index: 71; box-shadow: var(--shadow-lg); transform: translateX(105%);
  transition: transform .3s var(--ease); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer .modal-body { flex: 1; }
.toast-zone { position: fixed; bottom: 20px; right: 20px; z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center;
  animation: toastIn .3s var(--ease); max-width: 380px; }
.toast.ok::before { content: '✓'; color: #6ee7a0; font-weight: 800; }
.toast.err { background: var(--red-2); }
.toast.err::before { content: '!'; font-weight: 800; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.confirm-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); margin-bottom: 12px; }
.confirm-ico.info { background: var(--blue-soft); color: var(--blue); }

/* ---------------------------------------------------------------- layout administrativo */
.app { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--sidebar); color: var(--sidebar-ink); display: flex; flex-direction: column; z-index: 40; }
.sidebar .brand { padding: 20px 18px 14px; display: flex; align-items: center; gap: 10px; }
.sidebar .brand img { height: 42px; width: auto; }
.brand-word { font-family: var(--brand-font); font-weight: 700; letter-spacing: .08em; font-size: 17px; line-height: 1; }
.brand-word small { display: block; font-family: var(--font); font-size: 9.5px; letter-spacing: .32em; color: var(--sidebar-muted); margin-top: 5px; font-weight: 600; }
.nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; scrollbar-width: thin; scrollbar-color: #3a302e transparent; }
.nav-group { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #7d716e; padding: 16px 10px 6px; text-transform: uppercase; }
.nav-btn { width: 100%; display: flex; align-items: center; gap: 11px; border: 0; background: transparent; color: #cfc6c4; padding: 9px 10px; border-radius: 10px; font: 500 13.5px var(--font);
  cursor: pointer; text-align: left; transition: background .15s, color .15s; position: relative; }
.nav-btn:hover { background: var(--sidebar-2); color: #fff; }
.nav-btn.active { background: linear-gradient(90deg, rgba(215, 38, 30, .22), rgba(215, 38, 30, .06)); color: #fff; }
.nav-btn.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.nav-btn .icon-svg { width: 18px; height: 18px; opacity: .85; }
.nav-btn .nav-count { margin-left: auto; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.sidebar-foot { padding: 12px; border-top: 1px solid #2a2220; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.me b { display: block; font-size: 13px; color: #fff; }
.me small { color: var(--sidebar-muted); font-size: 11px; }
.me .btn.ghost { --c: #cfc6c4; margin-left: auto; }
.me .btn.ghost:hover { --b: var(--sidebar-2); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(247, 244, 243, .86); backdrop-filter: blur(10px); display: flex; align-items: center; gap: 12px; padding: 12px 28px;
  border-bottom: 1px solid var(--line); }
.topbar .search { flex: 1; max-width: 460px; }
.topbar .search input { height: 40px; min-height: 40px; background: #fff; }
.topbar .spacer { flex: 1; }
.bell { position: relative; }
.bell .dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800;
  display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--bg); }
.menu-btn { display: none; }
.content { padding: 26px 28px 60px; max-width: 1440px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 5px; max-width: 680px; }
.page-head .actions { flex-wrap: wrap; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; display: block; }
.help-box { border: 1px dashed #e4cfcb; background: #fffaf9; border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 18px; display: flex; gap: 12px; align-items: flex-start; }
.help-box .icon-svg { color: var(--red); margin-top: 1px; }
.help-box b { color: var(--ink); }
.help-box ol { margin: 4px 0 0; padding-left: 18px; }
.view-enter { animation: viewIn .28s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
.skeleton { background: linear-gradient(90deg, #f0ebea 25%, #f8f5f4 37%, #f0ebea 63%); background-size: 400% 100%; animation: sk 1.2s ease infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* escalas */
.scale-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.scale-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; display: flex; flex-direction: column; gap: 12px;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .2s, border-color .2s; position: relative; }
.scale-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #e3d6d3; }
.scale-card .sc-top { display: flex; gap: 12px; align-items: flex-start; }
.scale-card h3 { font-size: 15px; }
.scale-card .sc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12px; }
.scale-card .sc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.scale-card .sc-meta .icon-svg { width: 14px; height: 14px; }
.scale-card .sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.lock-flag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--red-ink); }
.app-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.app-row:last-child { border-bottom: 0; }
.app-group-title { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.queue-n { width: 26px; height: 26px; border-radius: 8px; background: var(--ember-soft); color: var(--ember-ink); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }

/* kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kan-col { background: var(--gray-soft); border-radius: 14px; padding: 10px; min-height: 320px; transition: background .15s; }
.kan-col.over { background: var(--red-soft); }
.kan-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 10px; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.kan-head small { color: var(--muted); font-weight: 600; }
.deal { background: #fff; border-radius: 11px; padding: 12px; margin-bottom: 8px; box-shadow: var(--shadow-sm); cursor: grab; border: 1px solid var(--line); }
.deal:hover { border-color: #e0cfcb; }
.deal b { display: block; font-size: 13px; }
.deal .money { font-size: 15px; margin: 6px 0 2px; display: block; }

/* gráficos simples */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bars .bar i { width: 100%; max-width: 44px; background: linear-gradient(180deg, var(--red), #ef6a3a); border-radius: 8px 8px 3px 3px; min-height: 3px; transition: height .6s var(--ease); position: relative; }
.bars .bar i.alt { background: var(--ink); }
.bars .bar small { font-size: 11px; color: var(--muted); }
.bars .bar em { font-style: normal; font-size: 11px; font-weight: 700; }
.hbar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 110px; gap: 10px; align-items: center; font-size: 12.5px; margin: 8px 0; }
.hbar .track { height: 10px; background: var(--gray-soft); border-radius: 99px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--red); border-radius: 99px; }

/* DRE */
.dre { width: 100%; border-collapse: collapse; font-size: 13px; }
.dre td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.dre td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.dre .grp td { font-weight: 800; background: var(--surface-2); }
.dre .sub td:first-child { padding-left: 28px; color: var(--ink-3); }
.dre .total td { font-weight: 800; font-size: 15px; background: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- telas de acesso */
.auth-body { min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, #3a1512 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #2b1210 0%, transparent 60%), #120e0e; }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 520px); }
.auth-art { position: relative; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-art .logo { width: 240px; }
.auth-art h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; line-height: 1.08; max-width: 560px; letter-spacing: -.02em; }
.auth-art h1 em { font-style: normal; color: var(--ember); }
.auth-art p { color: #cbbfbc; max-width: 520px; margin-top: 16px; font-size: 15px; }
.auth-points { display: grid; gap: 12px; margin-top: 30px; max-width: 520px; }
.auth-points div { display: flex; gap: 12px; align-items: flex-start; color: #e8dfdd; font-size: 14px; }
.auth-points .icon-svg { color: var(--ember); margin-top: 2px; }
.embers { position: absolute; inset: 0; pointer-events: none; }
.embers i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: radial-gradient(circle, var(--ember), var(--red) 70%, transparent);
  animation: rise linear infinite; opacity: 0; }
@keyframes rise { 10% { opacity: .9; } 100% { transform: translate(var(--dx, 20px), -95vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .embers { display: none; } * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.auth-panel { background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px; border-radius: 28px 0 0 28px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h2 { font-size: 24px; font-weight: 800; }
.auth-box > p { color: var(--muted); margin: 6px 0 22px; }
.auth-box .stack { gap: 14px; }
.auth-switch { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; color: var(--muted); height: 32px; width: 32px; border-radius: 8px; }
.pw-wrap button:hover { background: var(--gray-soft); }
.pw-meter { height: 5px; border-radius: 99px; background: var(--gray-soft); overflow: hidden; margin-top: 6px; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .3s, background .3s; }

.install-wrap { max-width: 760px; margin: 0 auto; padding: 40px 16px; }
.install-card { padding: 32px; }
.install-card h1 { margin: 18px 0 6px; }
.install-card form { margin-top: 20px; }
.install-logo { width: 220px; }
.install-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.install-foot { color: #9a8e8b; text-align: center; font-size: 12px; margin-top: 16px; }
.ok-text { color: var(--green-ink); font-style: normal; font-weight: 600; }
.warn { color: var(--ember-ink); }

/* ---------------------------------------------------------------- portal do colaborador */
.portal-top { position: sticky; top: 0; z-index: 30; background: var(--sidebar); color: #fff; }
.portal-top .inner { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.portal-top .logo { height: 40px; width: auto; }
.pnav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.pnav button { border: 0; background: transparent; color: #cfc6c4; font: 600 13.5px var(--font); padding: 9px 13px; border-radius: 10px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; position: relative; }
.pnav button:hover { color: #fff; background: var(--sidebar-2); }
.pnav button.active { color: #fff; background: rgba(215, 38, 30, .25); }
.pnav button .nav-count { background: var(--red); color: #fff; font-size: 10px; border-radius: 99px; padding: 0 6px; }
.portal-main { max-width: 1180px; margin: 0 auto; padding: 26px 20px 100px; }
.hero { border-radius: 22px; padding: 28px; color: #fff; background: radial-gradient(600px 300px at 90% -20%, rgba(242, 169, 59, .35), transparent 60%), linear-gradient(135deg, #1c1413, #3b1411 70%, #6b1a12);
  position: relative; overflow: hidden; margin-bottom: 18px; }
.hero h1 { font-size: 28px; }
.hero p { color: #e9dcd9; margin-top: 6px; max-width: 620px; }
.hero .hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero .btn.ghost { --c: #fff; --bd: rgba(255,255,255,.3); border-style: solid; }
.hero .btn.ghost:hover { --b: rgba(255,255,255,.1); }
.hero-sym { position: absolute; right: -30px; bottom: -40px; width: 220px; opacity: .12; }
.steps-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
.step-card .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--gray-soft); color: var(--ink-3); flex: none; }
.step-card.done .n { background: var(--green); color: #fff; }
.step-card.now { border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 38, 30, .08); }
.step-card.now .n { background: var(--red); color: #fff; }
.step-card b { display: block; font-size: 13.5px; }
.step-card small { color: var(--muted); font-size: 12px; }
.opp { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.opp-head { padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.opp-head h3 { font-size: 16px; }
.opp-body { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.opp-slot { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.opp-slot.incompatible { opacity: .6; }
.opp-slot .row b { font-size: 13.5px; }
.opp-foot { margin-top: auto; padding: 12px 16px; background: var(--surface-2); border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.status-banner { border-radius: 10px; padding: 9px 12px; font-size: 12.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.status-banner.PENDENTE { background: var(--blue-soft); color: var(--blue-ink); }
.status-banner.APROVADA { background: var(--green-soft); color: var(--green-ink); }
.status-banner.ESPERA { background: var(--ember-soft); color: var(--ember-ink); }
.status-banner.RECUSADA, .status-banner.CANCELADA, .status-banner.REMOVIDA { background: var(--red-soft); color: var(--red-ink); }
.status-banner.DESISTENCIA { background: var(--gray-soft); color: var(--ink-3); }
.bottom-nav { display: none; }

/* teste */
.quiz { max-width: 780px; margin: 0 auto; }
.quiz-progress { position: sticky; top: 60px; z-index: 5; background: var(--bg); padding: 10px 0; }
.quiz-progress .fill { height: 10px; }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); }
.q-card .q-topic { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.q-card h3 { font-size: 18px; margin: 8px 0 16px; line-height: 1.35; }
.q-opt { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 13px 14px; margin-bottom: 10px;
  cursor: pointer; font: 500 14px var(--font); color: var(--ink); transition: border-color .15s, background .15s, transform .1s; }
.q-opt:hover { border-color: #d9c4c0; background: #fffafa; }
.q-opt .letter { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--gray-soft); font-weight: 800; font-size: 12px; }
.q-opt.sel { border-color: var(--red); background: var(--red-soft); }
.q-opt.sel .letter { background: var(--red); color: #fff; }
.q-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.q-dots button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: 700 11px var(--font); cursor: pointer; color: var(--ink-3); }
.q-dots button.ans { background: var(--ink); color: #fff; border-color: var(--ink); }
.q-dots button.cur { outline: 2px solid var(--red); outline-offset: 1px; }
.score-ring { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: conic-gradient(var(--ring, var(--green)) calc(var(--p) * 1%), var(--gray-soft) 0); }
.score-ring div { width: 118px; height: 118px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 800; }
.review-item { padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.review-item .ok { color: var(--green-ink); font-weight: 700; }
.review-item .no { color: var(--red-ink); font-weight: 700; }

/* ---------------------------------------------------------------- cadastro público */
.reg-shell { max-width: 1120px; margin: 0 auto; padding: 24px 16px 60px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 28px; align-items: start; }
.reg-top { max-width: 1120px; margin: 0 auto; padding: 18px 16px 0; display: flex; align-items: center; justify-content: space-between; }
.reg-top img { height: 48px; }
.reg-intro { color: #fff; position: sticky; top: 20px; }
.reg-intro h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.reg-intro h1 em { font-style: normal; color: var(--ember); }
.reg-intro p { color: #cbbfbc; margin-top: 12px; }
.locked-role { margin-top: 18px; border: 1px solid rgba(242, 169, 59, .4); background: rgba(242, 169, 59, .1); border-radius: 14px; padding: 14px; color: #fff; display: flex; gap: 12px; align-items: center; }
.locked-role .icon-svg { color: var(--ember); width: 24px; height: 24px; }
.locked-role small { color: #d9c9c6; display: block; }
.reg-steps { display: flex; gap: 8px; margin: 22px 0 6px; flex-wrap: wrap; }
.reg-steps span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.07); color: #bdb1ae; font-size: 12.5px; font-weight: 600; }
.reg-steps span b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 11px; }
.reg-steps span.active { background: var(--red); color: #fff; }
.reg-steps span.done { color: #fff; }
.reg-steps span.done b { background: var(--green); }
.reg-card { background: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg); }
.reg-card .form-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.reg-card .form-head p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.progress-circle { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--red) calc(var(--p) * 1%), var(--gray-soft) 0); flex: none; }
.progress-circle span { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.reg-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.hp { position: absolute; left: -9999px; }
.success { text-align: center; padding: 18px 6px; }
.success .mark { width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 36px; margin: 0 auto 14px; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 1100px) {
  .g-main, .g3 { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { padding: 28px 24px 10px; }
  .auth-art .auth-points, .auth-art .foot { display: none; }
  .auth-art h1 { font-size: 26px; margin-top: 18px; }
  .auth-panel { border-radius: 24px 24px 0 0; padding: 28px 20px; }
  .reg-shell { grid-template-columns: minmax(0, 1fr); }
  .reg-intro { position: static; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; width: 280px; transform: translateX(-102%); transition: transform .28s var(--ease); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 10px 16px; }
  .topbar .search { display: none; }
  .content { padding: 18px 16px 90px; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-3 { grid-column: 1 / -1; }
  .app-row { grid-template-columns: minmax(0, 1fr); }
  .app-row .actions { justify-content: flex-start; flex-wrap: wrap; }
  .hbar { grid-template-columns: 100px minmax(0, 1fr) 90px; }
  .steps-track { grid-template-columns: minmax(0, 1fr); }
  .pnav { display: none; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .bottom-nav button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 600 10.5px var(--font); color: var(--muted); padding: 4px 6px; cursor: pointer; position: relative; flex: 1; }
  .bottom-nav button.active { color: var(--red); }
  .bottom-nav .nav-count { position: absolute; top: 0; right: 18%; background: var(--red); color: #fff; border-radius: 99px; font-size: 9.5px; padding: 0 5px; }
  .quiz-progress { top: 56px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: 1 / -1; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi strong { font-size: 19px; }
  .modal-body, .modal-head, .modal-foot { padding-left: 16px; padding-right: 16px; }
  .scale-cards { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 22px 18px; }
  .hero h1 { font-size: 23px; }
  .reg-card { padding: 20px 16px; }
  .toast-zone { left: 12px; right: 12px; bottom: 80px; align-items: stretch; }
  .table-cards thead { display: none; }
  .table-cards tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table-cards td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 5px 14px; text-align: right; }
  .table-cards td::before { content: attr(data-l); color: var(--muted); font-size: 11.5px; font-weight: 600; text-align: left; }
  .table-cards td.t-main { display: block; text-align: left; }
  .table-cards td.t-main::before { display: none; }
  .table-cards .actions { justify-content: flex-end; }
}

/* ---------------------------------------------------------------- impressão */
@media print {
  .sidebar, .topbar, .no-print, .toast-zone, .bottom-nav, .portal-top { display: none !important; }
  .app { display: block; } .content { padding: 0; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ddd; }
}
.toolbar .switch input { width: 40px; height: 22px; min-height: 22px; padding: 0; }

/* ===================================================== v12 — avaliação, ranking, mensagens */
.stars { display: inline-flex; gap: 2px; }
.stars button { width: 30px; height: 30px; border: 0; background: none; padding: 0; font-size: 22px; line-height: 1; color: #ddd4d2; cursor: pointer; transition: transform .12s var(--ease), color .12s; }
.stars button.on { color: var(--ember); }
.stars button:hover { transform: scale(1.15); }
.eval-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; background: var(--surface); }
.eval-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 16px; align-items: end; }
.eval-grid .span-all, .span-all { grid-column: 1 / -1; }
.eval-row.absent { background: var(--surface-2); }
.eval-row.absent .eval-grid > :not(.switch) { opacity: .35; pointer-events: none; }
.eval-total { font-variant-numeric: tabular-nums; }
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 14px; align-items: end; margin-bottom: 18px; }
.podium-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 14px 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; transition: transform .18s var(--ease); min-width: 0; }
.podium-card:hover { transform: translateY(-3px); }
.podium-card b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-card small { color: var(--muted); font-size: 11.5px; }
.podium-card strong { font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.podium-card .medal { position: absolute; top: -14px; font-size: 28px; }
.podium-card.p1 { order: 2; padding-top: 32px; background: linear-gradient(180deg, #fff8ea 0%, #fff 70%); border-color: #f4dcae; }
.podium-card.p1 strong { color: var(--red); font-size: 36px; }
.podium-card.p2 { order: 1; } .podium-card.p3 { order: 3; }
.table tr.sel td { background: var(--red-soft); }
.msg { max-width: 86%; padding: 10px 12px; border-radius: 14px; margin: 8px 0; font-size: 13px; }
.msg b { display: block; font-size: 11.5px; margin-bottom: 2px; }
.msg small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.msg.in { background: var(--gray-soft); border-bottom-left-radius: 4px; }
.msg.out { background: var(--red-soft); color: var(--red-ink); margin-left: auto; border-bottom-right-radius: 4px; }
.msg.sys { max-width: 100%; text-align: center; background: none; color: var(--muted); font-size: 12px; padding: 4px; }
.contract-box { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface-2); font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.contract-box h4 { font-size: 13px; margin: 14px 0 4px; }
.store-offer { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: var(--radius); background: linear-gradient(120deg, #141010 0%, #2a1513 100%); color: #f3ecea; box-shadow: var(--shadow); }
.store-offer img { width: 96px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.store-offer b { font-size: 15px; display: block; }
.store-offer p { color: #c9bdba; font-size: 12.5px; margin: 4px 0 10px; }
.store-offer .price { color: var(--ember); font-weight: 800; }
@media (max-width: 560px) {
  .podium { grid-template-columns: 1fr; } .podium-card.p1, .podium-card.p2, .podium-card.p3 { order: 0; }
  .store-offer { grid-template-columns: 72px 1fr; } .store-offer img { width: 72px; }
}
@media (max-width: 1440px) { .pnav button { padding: 8px 9px; gap: 6px; font-size: 13px; } .portal-top .inner { gap: 12px; } }
@media (max-width: 1380px) { .pnav button .icon-svg { display: none; } .portal-top .inner { max-width: 1280px; } }
@media (max-width: 1060px) { .pnav button { padding: 8px 7px; font-size: 12.5px; } }

/* ===================================================== dashboard de resultado de inventário */
.idash { display: block; }
.id-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 30px; border-radius: var(--radius-lg);
  background: radial-gradient(700px 300px at 100% 0%, rgba(215,38,30,.45), transparent 60%), radial-gradient(500px 260px at 0% 100%, rgba(242,169,59,.16), transparent 60%), linear-gradient(135deg, #151111, #2a1714); color: #fff; box-shadow: var(--shadow-lg); margin-bottom: 18px; }
.id-hero h1 { color: #fff; font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin: 8px 0 10px; letter-spacing: -.02em; }
.id-actions { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.id-actions .sp { flex: 1; }
.id-actions .btn.ghost { --c: #e9e2e0; }
.id-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.id-chips span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #e9e2e0; }
.id-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 700; color: #fff; }
.id-status i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.id-ring { display: grid; justify-items: center; gap: 4px; }
.id-ring small { color: #cfc4c1; font-size: 12px; }
.id-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.id-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.id-kpi > span { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.id-kpi strong { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.id-kpi strong em { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 600; }
.id-kpi small { color: var(--muted); font-size: 11.5px; }
.id-kpi.neg strong { color: var(--red-ink); } .id-kpi.pos strong { color: var(--blue-ink); }
.dl { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; width: fit-content; }
.dl.up { background: var(--green-soft); color: var(--green-ink); } .dl.down { background: var(--red-soft); color: var(--red-ink); } .dl.eq { background: var(--gray-soft); color: var(--ink-3); }
.id-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.dv { display: grid; gap: 9px; }
.dv-row { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
.dv-label { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.dv-track { position: relative; height: 14px; background: var(--gray-soft); border-radius: 4px; }
.dv-zero { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink-3); border-radius: 2px; }
.dv-bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; transition: width .8s var(--ease); }
.dv-val { font-variant-numeric: tabular-nums; font-size: 12.5px; min-width: 64px; text-align: right; }
.dv-legend, .share-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.dv-legend i, .share-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.share-bar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; gap: 2px; background: #fff; }
.share-bar i { display: block; height: 100%; min-width: 3px; }
.share-legend b { color: var(--ink); }
.mini { height: 6px; background: var(--gray-soft); border-radius: 99px; width: 90px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.mini i { display: block; height: 100%; border-radius: 99px; }
.ins { display: grid; gap: 10px; }
.ins-i { display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.55; }
.ins-i i { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--blue); }
.ins-i.good i { background: var(--green); } .ins-i.warn i { background: var(--ember); } .ins-i.bad i { background: var(--red); }
@media (max-width: 1100px) { .id-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .id-grid { grid-template-columns: 1fr; } .id-hero { grid-template-columns: 1fr; } .id-ring { justify-self: center; } }
@media (max-width: 560px) { .id-kpis { grid-template-columns: 1fr 1fr; } .id-hero { padding: 20px; } .dv-row { grid-template-columns: 90px 1fr auto; } }
@media print { .id-actions { display: none; } }

/* ===================================================== painel analítico (tema claro) */
.ix { --bg: #f6f3f2; --card: #ffffff; --card2: #faf8f7; --ln: #ece6e4; --tx: #1f1a19; --mu: #6f6461; --soft: #8a7f7c;
  background: linear-gradient(180deg, #fbf9f8, var(--bg)); color: var(--tx); border-radius: 22px; padding: 18px; border: 1px solid var(--ln); display: grid; gap: 16px; }
.ix-loading { min-height: 320px; place-items: center; align-content: center; text-align: center; color: var(--mu); }
.ix-spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #eadfdc; border-top-color: #d7261e; animation: spin 0.8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.ix-top { display: grid; gap: 12px; background: var(--card); border: 1px solid var(--ln); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); }
.ix-brand { display: flex; align-items: center; gap: 12px; }
.ix-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, #d7261e, #f2a93b); letter-spacing: -.04em; }
.ix-brand h2 { font-size: 17px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--tx); }
.ix-brand span { font-size: 12px; color: var(--mu); }
.ix-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.ix-f { display: grid; gap: 4px; font-size: 11px; font-weight: 700; color: var(--mu); text-transform: uppercase; letter-spacing: .04em; min-width: 0; }
.ix-f select, .ix-f input { width: 100%; height: 38px; min-height: 38px; border-radius: 10px; border: 1px solid #e0d7d5; background: #fff; color: var(--tx); padding: 0 10px; font: 600 13px var(--font); text-transform: none; letter-spacing: 0; text-overflow: ellipsis; }
.ix-f select:focus, .ix-f input:focus { outline: 0; border-color: #d7261e; box-shadow: 0 0 0 3px rgba(215,38,30,.12); }
.ix-q { grid-column: span 2; }
.ix-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ix-actions .sp { flex: 1; }
.ix-hint { font-size: 12px; color: var(--mu); }
.ix-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ix-chip { border: 1px solid #f3c7c4; background: #fdeeed; color: #9b1812; border-radius: 99px; padding: 5px 10px; font: 700 12px var(--font); cursor: pointer; }
.ix-chip.ghost { background: #fff; border-color: #e0d7d5; color: var(--mu); }
.ix-btn { height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid #e0d7d5; background: #fff; color: var(--tx); font: 700 13px var(--font); cursor: pointer; }
.ix-btn:hover { border-color: #c9bdba; }
.ix-btn.primary { background: #d7261e; border-color: #d7261e; color: #fff; box-shadow: 0 8px 20px -10px rgba(215,38,30,.6); }
.ix-btn.sm { height: 30px; padding: 0 10px; font-size: 12px; }
.ix-btn:disabled { opacity: .45; cursor: not-allowed; }
.ix-head { padding: 2px 4px; }
.ix-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #c2410c; }
.ix-head h1 { font-size: clamp(21px, 2.6vw, 28px); font-weight: 900; color: var(--tx); margin: 4px 0; }
.ix-head p { color: var(--mu); font-size: 13px; }
.ix-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ix-kpi { position: relative; display: block; background: var(--card); border: 1px solid var(--ln); border-radius: 16px; padding: 14px 14px 12px; min-width: 0; box-shadow: var(--shadow-sm); }
.ix-ico { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--kb); border: 1px solid var(--kl); }
.ix-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--k); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ix-kpi > div { display: grid; min-width: 0; }
.ix-kpi strong { display: block; font-weight: 900; color: var(--tx); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 38px; white-space: nowrap; line-height: 1.15; font-size: clamp(16px, 1.5vw, 21px); }
.ix-kpi > div > span { display: block; font-size: 12px; color: var(--mu); font-weight: 700; margin-top: 2px; }
.ix-kpi small { display: block; font-size: 11px; color: var(--soft); }
.ix-d { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 99px; width: fit-content; margin-top: 4px; }
.ix-d.up { background: #eafaf0; color: #15803d; } .ix-d.down { background: #fdecec; color: #b91c1c; } .ix-d.eq { background: #f1eeed; color: var(--mu); }
.ix-rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ix-ring { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--ln); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-sm); min-width: 0; }
.ix-ring svg { width: 124px; height: 124px; flex: none; }
.ix-ring-l { display: grid; gap: 2px; min-width: 0; }
.ix-ring-l b { font-size: 28px; font-weight: 900; line-height: 1; }
.ix-ring-l span { font-weight: 800; font-size: 14px; color: var(--tx); }
.ix-ring-l small { font-size: 11.5px; color: var(--mu); }
.ix-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.ix-card { background: var(--card); border: 1px solid var(--ln); border-radius: 16px; padding: 16px; min-width: 0; box-shadow: var(--shadow-sm); }
.ix-card h3 { font-size: 13.5px; font-weight: 800; color: var(--tx); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.ix-card h3 small, .ix-card h4 small { display: block; font-size: 11.5px; color: var(--mu); text-transform: none; letter-spacing: 0; font-weight: 500; margin-top: 2px; }
.ix-card h4 { font-size: 13px; color: var(--tx); margin: 4px 0 8px; }
.ix-empty { color: var(--mu); font-size: 13px; padding: 14px 0; }
.ix-legend, .ix-scale { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--mu); margin-top: 6px; }
.ix-legend i, .ix-scale i, .ix-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ix-legend b { color: var(--tx); }
.ix-click { cursor: pointer; }
path.ix-click:hover { filter: brightness(1.08) saturate(1.1); }
.ix-hb { display: grid; gap: 6px; }
.ix-hb-r { display: grid; grid-template-columns: 22px minmax(120px, 40%) minmax(60px, 1fr) auto; gap: 8px; align-items: center; font-size: 12.5px; padding: 4px; border-radius: 8px; }
.ix-hb-r:hover { background: #faf6f5; }
.ix-hb-n { color: var(--soft); font-weight: 800; font-size: 11px; text-align: right; }
.ix-hb-l { font-weight: 700; color: var(--tx); line-height: 1.25; overflow-wrap: anywhere; }
.ix-hb-l small { display: block; color: var(--soft); font-weight: 500; font-size: 10.5px; }
.ix-hb-t { height: 12px; background: #f1eeed; border-radius: 4px; overflow: hidden; }
.ix-hb-t i { display: block; height: 100%; border-radius: 4px; }
.ix-hb-r b { font-variant-numeric: tabular-nums; color: var(--tx); text-align: right; white-space: nowrap; }
.ix-tw { overflow: auto; border-radius: 12px; border: 1px solid var(--ln); }
.ix-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ix-t th { position: sticky; top: 0; background: #f6f2f1; color: var(--ink-3); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding: 9px 10px; white-space: nowrap; }
.ix-t td { padding: 8px 10px; border-top: 1px solid var(--ln); color: var(--tx); white-space: nowrap; }
.ix-t td:nth-child(2) { white-space: normal; min-width: 180px; }
.ix-t tr:hover td { background: #fcfaf9; }
.ix-t .r { text-align: right; font-variant-numeric: tabular-nums; }
.ix-t .neg { color: #c53030; } .ix-t .pos { color: #2563eb; }
.ix-sort { cursor: pointer; user-select: none; } .ix-sort:hover { color: var(--tx); }
.ix-pg { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--mu); flex-wrap: wrap; }
.ix-pg span:first-child { margin-right: auto; }
.ix-cmp { display: grid; gap: 16px; }
.ix-cmp-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ix-cmp-k > div { background: var(--card2); border: 1px solid var(--ln); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.ix-cmp-k span { font-size: 11px; color: var(--mu); text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.ix-cmp-k b { font-size: 17px; color: var(--tx); font-variant-numeric: tabular-nums; }
.ix-cmp-k small { font-size: 11px; color: var(--soft); }
.ix-an { line-height: 1.75; color: var(--ink-2); }
@media (max-width: 900px) { .ix-q { grid-column: auto; } }
@media (max-width: 560px) { .ix { padding: 10px; border-radius: 14px; } .ix-kpis { grid-template-columns: 1fr 1fr; } .ix-hb-r { grid-template-columns: 16px minmax(90px, 42%) minmax(40px, 1fr) auto; } .ix-ring svg { width: 100px; height: 100px; } .ix-filters { grid-template-columns: 1fr 1fr; } }

/* importação */
.imp-drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center; background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.imp-drop:hover, .imp-drop.over { border-color: var(--red); background: var(--red-soft); }
.imp-drop b { display: block; font-size: 15px; margin-bottom: 4px; }
.imp-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.imp-prev { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.imp-prev table { font-size: 12px; }
.imp-bar { height: 12px; border-radius: 99px; background: var(--gray-soft); overflow: hidden; }
.imp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--ember)); width: 0; transition: width .3s; }

/* ===================================================== menu lateral recolhível */
.collapse-btn { display: inline-flex; }
.app { transition: grid-template-columns .25s var(--ease); }
.app.collapsed { grid-template-columns: 74px minmax(0, 1fr); }
.app.collapsed .sidebar .brand { justify-content: center; padding: 18px 8px 12px; }
.app.collapsed .brand-word, .app.collapsed .nav-group, .app.collapsed .nav-btn > span:not(.nav-count), .app.collapsed .sidebar-foot .me > div { display: none; }
.app.collapsed .nav { padding-left: 10px; padding-right: 10px; }
.app.collapsed .nav-btn { justify-content: center; padding: 10px 0; position: relative; }
.app.collapsed .nav-btn .nav-count:not(.hidden) { position: absolute; top: 2px; right: 4px; padding: 0 5px; font-size: 9px; }
.app.collapsed .nav-btn.active::before { left: -10px; }
.app.collapsed .sidebar-foot { padding: 10px 6px; }
.app.collapsed .sidebar-foot .me { justify-content: center; flex-wrap: wrap; }
@media (max-width: 900px) { .collapse-btn { display: none; } .app.collapsed { grid-template-columns: minmax(0, 1fr); } }
.prio-box { border: 1px solid #f4dcae; background: linear-gradient(180deg, #fffaf0, #fff); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }

/* ===================================================== análise do conferente */
.ea-empty { text-align: center; padding: 56px 24px; background: linear-gradient(180deg, #fff, #fff7f2); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.ea-empty h2 { font-size: clamp(19px, 2.4vw, 26px); font-weight: 800; color: var(--ink); margin: 8px auto; max-width: 620px; }
.ea-empty p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.ea-empty-ico { font-size: 46px; } .ea-empty-ico.sm { font-size: 30px; }
.ea-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--radius-lg); background: linear-gradient(120deg, #fff 0%, var(--tb) 100%); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 14px; position: relative; overflow: hidden; }
.ea-hero::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--tc); }
.ea-who { display: flex; gap: 14px; align-items: center; min-width: 0; }
.ea-who h2 { font-size: 21px; font-weight: 800; margin: 2px 0; }
.ea-who small { color: var(--muted); font-size: 12px; }
.ea-code { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: var(--red); text-transform: uppercase; }
.ea-badges { display: grid; gap: 8px; }
.ea-rank { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.ea-rank-ico { font-size: 26px; }
.ea-rank b { display: block; font-size: 22px; font-weight: 900; line-height: 1; }
.ea-rank small { color: var(--muted); font-size: 11.5px; }
.ea-rank.gold { background: linear-gradient(135deg, #fff8e1, #ffe9a8); border-color: #f5c451; box-shadow: 0 6px 20px -8px rgba(183,121,31,.6); }
.ea-prio { padding: 6px 14px; border-radius: 12px; background: rgba(255,255,255,.7); border: 1px dashed var(--line); }
.ea-prio small { display: block; font-size: 11px; color: var(--muted); } .ea-prio b { font-size: 13px; }
.ea-class { text-align: right; display: grid; gap: 2px; justify-items: end; }
.ea-class span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ea-class strong { font-size: clamp(17px, 2vw, 24px); font-weight: 900; color: var(--t); line-height: 1.2; max-width: 460px; }
.ea-class em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.ea-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 14px; }
.ea-filter .field { min-width: 260px; flex: 1; max-width: 460px; }
.ea-tabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--gray-soft); padding: 4px; border-radius: 12px; }
.ea-tabs button { border: 0; background: transparent; padding: 8px 12px; border-radius: 9px; font: 700 12.5px var(--font); color: var(--ink-3); cursor: pointer; }
.ea-tabs button.on { background: #fff; color: var(--red); box-shadow: var(--shadow-sm); }
.ea-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ea-kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); display: grid; gap: 2px; }
.ea-kpi span { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ea-kpi b { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.ea-kpi small { font-size: 11.5px; color: var(--muted); }
.ea-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.ea-chip { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 8px; line-height: 1.35; white-space: normal; max-width: 300px; min-width: 0; }
.ea-chip.long { font-weight: 600; font-size: 11px; }
td code, .nowrap { white-space: nowrap; }
.ea-mini-note { overflow-wrap: anywhere; }
.ea-journey { display: grid; gap: 0; max-height: 520px; overflow: auto; padding-right: 4px; }
.ea-step { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 8px 0; border-left: 2px solid var(--line); margin-left: 6px; padding-left: 12px; position: relative; }
.ea-step i { position: absolute; left: -7px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; border: 2px solid #fff; }
.ea-step.ok i { background: #22c55e; } .ea-step.bad i { background: #ef4444; }
.ea-step b { font-size: 13px; display: block; } .ea-step small { color: var(--muted); font-size: 11.5px; }
.ea-step > div { grid-column: 1 / -1; }
.ea-legend-g { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
@media (max-width: 1100px) { .ea-legend-g { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ea-legend-g { grid-template-columns: 1fr 1fr; } }
.ea-legend-g > div { border-left: 4px solid; border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; font-size: 12.5px; }
.ea-pick { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.ea-pick .field { flex: 1; min-width: 280px; }
.ea-mini { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--radius-lg); background: linear-gradient(120deg, #fff, var(--tb, #f5f5f5)); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 16px; position: relative; overflow: hidden; }
.ea-mini::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--tc, #ccc); }
.ea-mini.empty { grid-template-columns: auto 1fr; background: linear-gradient(120deg, #fff, #fff4ec); }
.ea-mini.empty b { display: block; font-size: 15px; } .ea-mini.empty small { color: var(--muted); }
.ea-mini-rank { display: grid; justify-items: center; padding: 10px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); min-width: 92px; }
.ea-mini-rank span { font-size: 26px; } .ea-mini-rank b { font-size: 24px; font-weight: 900; line-height: 1.1; } .ea-mini-rank small { color: var(--muted); font-size: 11px; }
.ea-mini-rank.gold { background: linear-gradient(135deg, #fff8e1, #ffe9a8); border-color: #f5c451; }
.ea-mini-main > span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ea-mini-main strong { display: block; font-size: clamp(16px, 2vw, 21px); font-weight: 900; color: var(--t); line-height: 1.25; margin: 2px 0 8px; }
.ea-mini-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.ea-mini-k > div { background: rgba(255,255,255,.75); border-radius: 10px; padding: 6px 10px; }
.ea-mini-k b { display: block; font-size: 16px; } .ea-mini-k small { color: var(--muted); font-size: 11px; }
.ea-mini-note { margin-top: 8px; font-size: 13px; color: var(--ink-2); } .ea-mini-note small { color: var(--muted); }
.pw-cell { font-family: ui-monospace, Menlo, monospace; font-size: 13px; letter-spacing: .04em; }
@media (max-width: 1000px) { .ea-hero { grid-template-columns: 1fr; } .ea-class { text-align: left; justify-items: start; } .ea-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ea-mini { grid-template-columns: 1fr; } .ea-mini-rank { justify-self: start; } }
.ea-chip.tone-gold { background: #fff7e0; color: #b7791f; } .ea-chip.tone-green { background: #eafaf0; color: #15803d; } .ea-chip.tone-blue { background: #eaf1ff; color: #1d4ed8; }
.ea-chip.tone-violet { background: #f3edff; color: #6d28d9; } .ea-chip.tone-amber { background: #fff4e5; color: #b45309; } .ea-chip.tone-red { background: #fdecec; color: #b91c1c; }
.ea-class strong.long { font-size: clamp(15px, 1.5vw, 18px); line-height: 1.3; max-width: 400px; }
.ea-chip.long { font-weight: 600 !important; font-size: 11px; min-width: 220px; max-width: 320px; }

/* ===================== v12.7 — classificação, rodízio e banner do site */
.kind-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #f1eeed; color: #4b403e; white-space: nowrap; line-height: 1.5; }
.kind-tag.k-MULTIPLO { background: #eaf1ff; color: #1d4ed8; } .kind-tag.k-PECA { background: #e6f7f3; color: #0f766e; }
.kind-tag.k-PERECIVEIS { background: #eafaf0; color: #15803d; } .kind-tag.k-PATRIMONIAL { background: #f3edff; color: #6d28d9; }
.kind-tag.k-HIBRIDO { background: #fff4e5; color: #b45309; } .kind-tag.k-CORINGA { background: linear-gradient(135deg, #fdeceb, #fff4e5); color: #b51c15; }
.sk-mini { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.coringa-box { background: #fff8f3; border: 1px solid #f6dfcf; border-radius: 12px; padding: 10px 12px; }
.skills-box { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; transition: opacity .2s; }
.skills-box.off { opacity: .45; pointer-events: none; }
.skills-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .skills-g { grid-template-columns: 1fr 1fr; } }
.rot-box { border-color: #ddd6fe !important; background: #faf7ff !important; }
.rot-line { margin-top: 6px; color: #5b21b6; background: #f5f0ff; display: inline-block; padding: 3px 10px; border-radius: 8px; }
.badge.violet { background: #f3edff; color: #6d28d9; }
/* banner — gestão */
.bn-spec { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: center; }
.bn-spec ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-3); display: grid; gap: 3px; }
.bn-spec-fig { position: relative; aspect-ratio: 1920 / 820; border-radius: 12px; background: linear-gradient(90deg, #1d1716 0 52%, #6b5b57 52%); overflow: hidden; color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.bn-spec-fig small { font-weight: 500; opacity: .8; }
.bn-safe-text { position: absolute; left: 0; top: 0; bottom: 0; width: 52%; display: grid; place-content: center; border-right: 2px dashed rgba(255,255,255,.5); }
.bn-safe-subject { position: absolute; left: 54%; right: 3%; top: 18%; bottom: 18%; display: grid; place-content: center; border: 2px solid #f2a93b; border-radius: 8px; background: rgba(242,169,59,.15); }
.bn-safe-mobile { position: absolute; left: 50%; width: 36%; top: 0; bottom: 0; border-left: 2px dotted #7dd3fc; border-right: 2px dotted #7dd3fc; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 3px; font-size: 9.5px; color: #bae6fd; }
@media (max-width: 760px) { .bn-spec { grid-template-columns: 1fr; } }
.bn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.bn-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.bn-card.off { opacity: .62; }
.bn-thumb { position: relative; aspect-ratio: 1920 / 820; background: #2a2322 center / cover no-repeat; color: #fff; display: flex; align-items: flex-end; }
.bn-thumb > span:first-child { margin: auto; font-size: 12px; opacity: .7; }
.bn-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,9,9,.85), rgba(12,9,9,.15) 70%); }
.bn-thumb-txt { position: relative; z-index: 1; padding: 10px 12px; max-width: 70%; display: grid; gap: 2px; }
.bn-thumb-txt small { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffb4a8; }
.bn-thumb-txt b { font-size: 13px; line-height: 1.25; }
.bn-pos { position: absolute; z-index: 1; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.9); color: #141010; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.bn-off { position: absolute; z-index: 1; top: 8px; left: 8px; background: #fde68a; color: #78350f; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.bn-body { padding: 10px 12px 12px; display: grid; gap: 6px; }
.bn-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bn-body code { font-size: 11px; background: var(--gray-soft); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
.bn-actions { flex-wrap: wrap; gap: 6px; }
.bn-preview { position: relative; aspect-ratio: 1920 / 820; border-radius: 12px; overflow: hidden; background: #1d1716; }
.bn-prev-img { position: absolute; inset: 0; background: center / cover no-repeat; }
.bn-preview::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,9,9,.92) 0%, rgba(12,9,9,.6) 38%, rgba(12,9,9,0) 68%); }
.bn-prev-txt { position: absolute; z-index: 1; left: 5%; top: 50%; transform: translateY(-50%); width: 46%; color: #fff; display: grid; gap: 5px; }
.bn-prev-txt small { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ff8a7a; }
.bn-prev-txt b { font-size: clamp(14px, 2.2vw, 22px); line-height: 1.15; font-weight: 900; }
.bn-prev-txt p { margin: 0; font-size: 11.5px; opacity: .85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bn-prev-txt div { display: flex; gap: 6px; flex-wrap: wrap; }
.bn-prev-txt span { font-size: 10.5px; font-weight: 700; padding: 5px 10px; border-radius: 7px; }
.bn-prev-txt .p1 { background: #d7261e; } .bn-prev-txt .p2 { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); }
.dim-ok { color: #15803d; font-weight: 700; } .dim-warn { color: #b45309; font-weight: 700; } .dim-err { color: #b91c1c; font-weight: 700; }
.bn-preview { max-width: 720px; margin: 0 auto; }

/* v12.8 — modelo Phoenix animada nos banners */
.bn-thumb-fig { position: absolute; z-index: 1; bottom: 0; height: 92%; transform: translateX(-50%); filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); pointer-events: none; }
.bn-anim { position: absolute; z-index: 2; right: 8px; bottom: 8px; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; background: rgba(215,38,30,.9); color: #fff; }
.bn-prev-fig { position: absolute; z-index: 1; bottom: 1%; height: 90%; aspect-ratio: 1 / 2; left: 70%; transform: translateX(-50%); animation: bnBreath 5.2s ease-in-out infinite; transform-origin: 50% 100%; pointer-events: none; }
.bn-prev-fig img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%) translateY(6px) scale(.975); opacity: 0; transition: opacity .7s, transform .8s; filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); }
.bn-prev-fig img.on { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.bn-prev-txt { z-index: 2; }
@keyframes bnBreath { 0%, 100% { translate: 0 0; rotate: 0deg; } 30% { translate: 0 -4px; rotate: -.5deg; } 65% { translate: 0 -1px; rotate: .45deg; } }
.bn-poses { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.bn-pose { position: relative; aspect-ratio: 1 / 2; border: 2px solid var(--line, #e5e7eb); border-radius: 10px; background: linear-gradient(180deg, #2b2424, #151111); padding: 4px 0 0; cursor: pointer; overflow: hidden; }
.bn-pose img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.bn-pose:hover { border-color: #f0a39d; }
.bn-pose.on { border-color: #d7261e; box-shadow: 0 0 0 3px rgba(215,38,30,.18); }
.bn-pose i { position: absolute; top: 4px; left: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: #d7261e; color: #fff; font: 800 11px/18px system-ui, sans-serif; font-style: normal; text-align: center; }
.bn-pose i:empty { display: none; }
@media (max-width: 700px) { .bn-poses { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .bn-prev-fig { animation: none; } }

.bn-prev-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
