/* ====================================================================
   elo | Checklist - Aceitacao em Campo
   Design system oficial Elo: Barlow / teal #003933 / creme #fbfaf6
   WCAG 2.2 AA - foco visivel, contraste, keyboard-first
   ==================================================================== */
:root {
  /* --- Marca Elo --- */
  --teal:         #003933;   /* color.text.primary / superficie escura */
  --teal-2:       #0a4a42;   /* hover / gradiente */
  --teal-ink:     #033a34;   /* color.text.inverse */
  --cream:        #fbfaf6;   /* color.surface.strong */
  --black:        #000000;   /* color.surface.base */

  /* dots de identidade Elo */
  --dot-yellow:   #f5c400;
  --dot-blue:     #2d6cdf;
  --dot-red:      #e0413f;

  /* --- Semanticos --- */
  --brand:        #003933;
  --brand-ink:    #003933;   /* superficie escura (sidebar/hero) */
  --ink:          #003933;   /* texto primario */
  --muted:        #5b6b67;   /* texto secundario (AA sobre creme) */
  --line:         #e5e7eb;   /* color.border.default */
  --bg:           #fbfaf6;
  --card:         #ffffff;
  --blue:         #2d6cdf;
  --green:        #1f7a52;
  --red:          #c5403e;
  --amber:        #b9740f;
  --purple:       #6b54c0;

  /* --- Forma --- */
  --radius:       18px;   /* cards */
  --radius-sm:    12px;   /* inputs */
  --radius-pill:  999px;  /* botoes, chips (radius.md=100) */
  --shadow:       rgba(0,0,0,.1) 0px 1px 3px 0px, rgba(0,0,0,.1) 0px 1px 2px -1px;
  --shadow-2:     rgba(0,0,0,.05) 0px 1px 2px 0px;
  --shadow-lg:    0 16px 48px rgba(0,57,51,.18);
  --sidebar-w:    256px;
  --dur:          150ms;   /* motion.duration.instant */
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;            /* font.size.base */
  font-weight: 500;
  line-height: 1.5;           /* 21px */
}
a { color: var(--teal); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* WCAG 2.2 - foco visivel e nao obscurecido */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 6px;
}
.sidebar :focus-visible, .login-hero :focus-visible, .topbar :focus-visible {
  outline-color: var(--dot-yellow);
}

/* ---- Boot splash ---- */
.boot { height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); }
.boot-mark { display: flex; gap: 8px; }
.boot-mark span { width: 16px; height: 16px; border-radius: 50%; animation: pulse 1s infinite ease-in-out; }
.boot-mark span:nth-child(1) { background: var(--dot-yellow); }
.boot-mark span:nth-child(2) { background: var(--dot-blue); animation-delay: .15s; }
.boot-mark span:nth-child(3) { background: var(--dot-red); animation-delay: .3s; }
@keyframes pulse { 0%,100% { transform: scale(.6); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }

/* ====================================================================
   LOGIN
   ==================================================================== */
.login-wrap { width: 100%; min-width: 0; min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); overflow-x: clip; }
.login-hero {
  background: radial-gradient(1200px 600px at 18% -10%, var(--teal-2) 0%, var(--teal) 58%);
  min-width: 0; color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between;
}
.login-hero .dots { display: flex; gap: 10px; margin-bottom: 30px; }
.login-hero .dots i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.login-hero h1 { font-size: 40px; line-height: 1.08; margin-bottom: 16px; font-weight: 800; }
.login-hero p { color: #d4e4e0; max-width: 460px; font-size: 17px; font-weight: 500; }
.login-hero .hero-list { margin-top: 30px; display: grid; gap: 13px; max-width: 470px; }
.login-hero .hero-list div { display: flex; gap: 11px; align-items: flex-start; color: #eaf3f0; font-size: 15px; }
.login-hero .hero-list .ck { color: var(--dot-yellow); font-weight: 800; }
.login-hero .foot { color: #8fa9a3; font-size: 13px; }
.login-panel { min-width: 0; display: grid; place-content: center; padding: 32px; }
.login-card { width: 100%; max-width: 390px; }
.login-card h2 { font-size: 26px; margin-bottom: 6px; }
.login-card .sub { color: var(--muted); margin-bottom: 26px; }

@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { padding: 36px 28px; }
  .login-panel { width: 100%; padding: 32px 24px 48px; }
  .login-hero h1 { font-size: 30px; }
  .login-hero .hero-list { display: none; }
}

/* ====================================================================
   APP SHELL
   ==================================================================== */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--teal); color: #cdded9; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 18px 14px; gap: 6px; overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; }
.brand .dots { display: flex; gap: 5px; }
.brand .dots i { width: 11px; height: 11px; border-radius: 50%; }
.brand b { color: #fff; font-size: 16px; letter-spacing: -.01em; font-weight: 800; }
.brand small { display: block; color: #87a39d; font-size: 11px; font-weight: 600; }
/* lockup de marca: logo elo oficial + "Checklist" */
.elo-lockup { display: inline-flex; align-items: center; gap: 9px; }
.elo-lockup .elo-logo { width: auto; display: block; flex: none; }
.elo-lockup .ll-div { width: 1px; height: 15px; background: rgba(255,255,255,.34); border-radius: 1px; flex: none; }
.elo-lockup .ll-sub { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .005em; white-space: nowrap; }
.login-hero .elo-lockup .ll-sub { font-size: 18px; }
.login-hero .elo-lockup .ll-div { height: 20px; }
.sidebar-primary {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2px 2px 8px; padding: 11px 14px;
  border-radius: var(--radius-pill); background: var(--dot-yellow); color: var(--teal); font-size: 14px; font-weight: 800;
  box-shadow: 0 8px 22px rgba(0,0,0,.16); transition: background var(--dur), transform var(--dur), box-shadow var(--dur);
}
.sidebar-primary:hover { background: #d7ff48; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,.2); }
.sidebar-primary svg { width: 19px; height: 19px; flex: none; }
.sidebar-primary.active { box-shadow: 0 0 0 3px rgba(255,255,255,.2), 0 8px 22px rgba(0,0,0,.16); }
.nav {
  display: flex; flex: 1 1 auto; flex-direction: column; gap: 7px; margin-top: 2px; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 2px 7px 14px 2px; scroll-padding-block: 12px; scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.32) transparent;
}
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-track { background: transparent; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 999px; }
.nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.46); }
.nav-group { border-radius: 16px; }
.nav-group-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 31px; padding: 6px 11px;
  color: #8fb2aa; cursor: pointer; list-style: none; font-size: 10px; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; border-radius: 10px; user-select: none;
}
.nav-group-title::-webkit-details-marker { display: none; }
.nav-group-title:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-group-title:focus-visible { outline: 2px solid var(--dot-yellow); outline-offset: 2px; }
.nav-group-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform var(--dur); }
.nav-group:not([open]) .nav-group-chevron { transform: rotate(-45deg); }
.nav-group-items { display: grid; gap: 3px; padding: 1px 0 5px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--radius-pill);
  color: #d2e1dd; font-weight: 600; font-size: 14.5px; transition: background var(--dur), color var(--dur);
}
.nav a svg { width: 19px; height: 19px; flex: none; opacity: .9; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.active { background: var(--cream); color: var(--teal); font-weight: 700; }
.nav a.active svg { opacity: 1; }
.nav .badge { margin-left: auto; background: var(--dot-red); color: #fff; font-size: 11px; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-content: center; padding: 0 5px; }
.nav a.active .badge { background: var(--teal); color: #fff; }
.side-foot { flex: 0 0 auto; position: relative; z-index: 2; margin-top: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; background: var(--teal); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius-sm); }
.side-user:hover { background: rgba(255,255,255,.06); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--dot-yellow); color: var(--teal);
  display: grid; place-content: center; font-weight: 800; font-size: 14px; flex: none; }
.side-user .nm { color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.side-user .rl { color: #87a39d; font-size: 11.5px; font-weight: 600; }
.side-foot button { width: 100%; margin-top: 8px; background: rgba(255,255,255,.08); color: #d2e1dd;
  border: none; padding: 10px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: background var(--dur); }
.side-foot button:hover { background: rgba(255,255,255,.16); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { padding: 28px 32px 64px; max-width: 1260px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 27px; }
.page-head .crumb { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.tabbar { display: none; }
.mobile-menu-trigger { display: none; }

.mobile-menu-sections { display: grid; gap: 20px; }
.mobile-menu-section { display: grid; gap: 9px; }
.mobile-menu-heading { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mobile-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mobile-menu-link {
  min-height: 68px; padding: 12px; border: 1px solid var(--line); border-radius: 16px;
  color: var(--ink); font-weight: 750; display: flex; align-items: center; gap: 10px;
  position: relative; background: var(--card); transition: border-color var(--dur), background var(--dur), transform var(--dur);
}
.mobile-menu-link:hover, .mobile-menu-link.active { border-color: var(--teal); background: var(--mint); transform: translateY(-1px); }
.mobile-menu-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-content: center; border-radius: 12px; background: var(--mint); color: var(--teal); }
.mobile-menu-link.active .mobile-menu-icon { background: var(--teal); color: #fff; }
.mobile-menu-link .badge { margin-left: auto; background: var(--dot-red); color: #fff; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-content: center; font-size: 10px; }

@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--teal); color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 40;
    padding-top: calc(12px + env(safe-area-inset-top));
  }
  .topbar .brand { padding: 0; }
  .topbar .brand b { font-size: 15px; }
  .topbar .tb-btn { background: rgba(255,255,255,.12); border: none; color: #fff; width: 40px; height: 40px;
    border-radius: var(--radius-pill); display: grid; place-content: center; }
  .topbar .mobile-menu-trigger { display: grid; margin-left: auto; }
  .content { padding: 18px 16px calc(90px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: #fff; border-top: 1px solid var(--line); padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 16px rgba(0,57,51,.08);
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; color: var(--muted); font-size: 10.5px; font-weight: 700; position: relative; border-radius: 12px; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--teal); }
  .tabbar a.active svg { color: var(--teal); }
  .tabbar .badge { position: absolute; top: 2px; right: 50%; margin-right: -22px; background: var(--dot-red);
    color: #fff; font-size: 9px; font-weight: 800; min-width: 16px; height: 16px; border-radius: 999px;
    display: grid; place-content: center; padding: 0 3px; }
  .page-head h1 { font-size: 22px; }
}

@media (max-width: 430px) {
  .mobile-menu-grid { grid-template-columns: 1fr; }
  .mobile-menu-link { min-height: 58px; }
}

/* ====================================================================
   COMPONENTS
   ==================================================================== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); }
.pad { padding: 20px; }
.card.pad { padding: 20px; }
.section-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }

/* buttons - pill (radius.md=100) */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink); padding: 9px 17px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14px;
  transition: background var(--dur), border-color var(--dur), color var(--dur); white-space: nowrap; }
.btn:hover { background: var(--cream); border-color: #d7dcdb; }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-2); border-color: var(--teal-2); }
.btn.dark { background: var(--black); border-color: var(--black); color: #fff; }
.btn.dark:hover { background: #1a1a1a; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: #eef2f1; color: var(--ink); }
.btn.danger { color: var(--red); border-color: #eccac9; background: #fcf3f2; }
.btn.danger:hover { background: #f9e7e6; }
.btn.sm { padding: 7px 13px; font-size: 13px; }
.btn.block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* forms */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; font-weight: 700; color: var(--teal); margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: 12px; font-weight: 500; }
.field .req { color: var(--red); }
.control, input:not([type]), input[type=text], input[type=email], input[type=password], input[type=date],
input[type=time], input[type=number], input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  color: var(--ink); outline: none; font-weight: 500; transition: border-color var(--dur), box-shadow var(--dur);
  box-sizing: border-box;
}
.control:focus, input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,57,51,.12); }
.control:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
textarea { resize: vertical; min-height: 80px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23003933' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
/* combobox com busca (searchSelect) */
.ss { position: relative; }
.ss-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; text-align: left; }
.ss-trigger:hover { border-color: #d7dcdb; }
.ss-trigger .ss-ph { color: var(--muted); font-weight: 400; }
.ss-caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--teal); flex: none; }
.ss-panel { position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0; background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 6px; max-height: 280px; display: flex; flex-direction: column; }
.ss-search { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; font: inherit; }
.ss-list { overflow-y: auto; }
.ss-option { display: block; width: 100%; text-align: left; padding: 8px 10px; border: none; background: none; border-radius: 8px; cursor: pointer; font: inherit; color: var(--ink); }
.ss-option:hover { background: var(--cream); }
.ss-option.sel { background: #e6efed; font-weight: 700; }
.ss-option .ss-sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.ss-empty { padding: 10px; color: var(--muted); font-size: 13px; text-align: center; }
/* Base de dados: abas + toolbar */
.db-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.db-tab { border: none; background: none; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.db-tab:hover { color: var(--ink); }
.db-tab.on { color: var(--teal); border-bottom-color: var(--teal); }
.db-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.db-toolbar .search { flex: 1; min-width: 220px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.form-error { background: #fcf3f2; border: 1.5px solid #eccac9; color: #a02320; padding: 11px 14px;
  border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }

/* cronometro do tempo de resposta */
.sw { display: flex; align-items: center; gap: 8px; }
.sw input { width: 100%; min-width: 0; }
.sw-unit { color: var(--muted); font-weight: 700; font-size: 13px; margin-left: -4px; }
.sw .btn { flex: none; }

/* layout do formulario com painel lateral (gravador) */
.form-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 20px; align-items: start; }
.form-main { min-width: 0; }
.form-aside { position: sticky; top: 22px; }
@media (max-width: 1040px) { .form-layout { grid-template-columns: 1fr; } .form-aside { position: static; max-width: 640px; } }

/* Fluxo guiado da Nova Visita */
.wizard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.wizard-shell { min-width: 0; }
.wizard-recorder { position: sticky; top: 20px; min-width: 0; }
.wizard-recorder .recorder { max-height: calc(100vh - 40px); overflow: auto; }
.wizard-progress {
  position: sticky; top: 0; z-index: 8; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px; padding: 10px; margin-bottom: 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: rgba(251,250,246,.96); box-shadow: var(--shadow-2);
  backdrop-filter: blur(12px);
}
.wizard-step {
  min-width: 0; border: 0; background: transparent; color: var(--muted); padding: 7px 5px;
  border-radius: 12px; display: grid; justify-items: center; gap: 5px; font-size: 11px; font-weight: 700;
}
.wizard-step:disabled { cursor: not-allowed; opacity: .48; }
.wizard-step-num {
  width: 28px; height: 28px; display: grid; place-content: center; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; font-weight: 800;
}
.wizard-step.active { color: var(--teal); background: #eef5f2; }
.wizard-step.active .wizard-step-num { color: #fff; border-color: var(--teal); background: var(--teal); }
.wizard-step.done:not(:disabled) .wizard-step-num { color: var(--teal); border-color: #9bc5ba; background: #e5f3ee; }
.wizard-panel[hidden] { display: none; }
.wizard-panel { animation: wizard-in .18s ease-out; }
@keyframes wizard-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.wizard-actions { align-items: center; padding: 4px 0 16px; }
.wizard-review-intro { color: var(--muted); margin: -4px 0 18px; }
.review-grid { display: grid; grid-template-columns: minmax(130px, .45fr) 1fr; margin: 0; border-top: 1px solid var(--line); }
.review-grid dt, .review-grid dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.review-grid dt { color: var(--muted); font-weight: 600; padding-right: 16px; }
.review-grid dd { color: var(--teal); font-weight: 700; }
@media (max-width: 700px) {
  .wizard-progress { top: 52px; gap: 2px; padding: 7px 4px; margin-inline: -6px; }
  .wizard-step { padding: 5px 1px; font-size: 9px; }
  .wizard-step-num { width: 25px; height: 25px; }
  .wizard-step-label { max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wizard-actions { display: grid; grid-template-columns: 1fr; }
  .wizard-actions .btn { width: 100%; justify-content: center; }
  .review-grid { grid-template-columns: 1fr; }
  .review-grid dt { border-bottom: 0; padding-bottom: 2px; }
  .review-grid dd { padding-top: 0; }
}
@media (max-width: 1050px) {
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-recorder { position: static; grid-row: 1; }
  .wizard-recorder .recorder { max-height: none; overflow: visible; }
}

/* gravador de audio + transcricao */
.recorder { background: var(--card); }
.rec-sub { color: var(--muted); font-size: 13px; margin: 8px 0 12px; }
.rec-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--teal); font-weight: 600; cursor: pointer; }
.rec-consent input { width: 16px; height: 16px; margin-top: 1px; flex: none; accent-color: var(--teal); }
.rec-note { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; font-weight: 500; margin: 12px 0 0; line-height: 1.4; }
.rec-note svg { flex: none; }
.rec-live { display: flex; align-items: center; gap: 11px; background: #fbeae9; border: 1px solid #f1cfce; border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 6px; }
.rec-pulse { width: 13px; height: 13px; border-radius: 50%; background: var(--red); animation: recpulse 1.1s ease-in-out infinite; flex: none; }
@keyframes recpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 22px; color: var(--teal); }
.rec-label { color: var(--red); font-weight: 700; font-size: 13px; }
.rec-live-transcript { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); min-height: 46px; }
.rec-livetext, .rec-interim { color: var(--teal); font-size: 13px; line-height: 1.45; }
.rec-interim { color: var(--muted); }
.rec-live-reviewed { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--teal); font-size: 13px; line-height: 1.45; }
.rec-live-reviewed-label { margin-bottom: 3px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.rec-live-notice { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.rec-working { display: flex; align-items: center; gap: 11px; padding: 16px 4px; color: var(--teal); font-weight: 600; font-size: 14px; }
.rec-demo { background: #fbf0dd; border: 1px solid #efd9af; color: #855107; font-size: 11.5px; font-weight: 600; padding: 7px 10px; border-radius: 9px; margin-bottom: 10px; }
.rec-speakers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rec-spk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--teal); background: var(--cream); border: 1px solid var(--line); padding: 4px 10px; border-radius: var(--radius-pill); }
.rec-spk .dotc { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.rec-spk-tone { color: var(--muted); font-weight: 600; }
.rec-spk-edit { font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; border-style: dashed; }
.rec-spk-edit:hover { border-color: var(--teal); background: #fff; }
.rec-spk-edit svg { width: 12px; height: 12px; opacity: .6; }
.tv-hint { font-size: 12px; color: var(--muted); margin: 2px 0 10px; }
.tv-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tv-summary { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.tv-summary-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--teal); margin-bottom: 8px; }
.tv-summary-text { margin: 0 0 10px; font-size: 14px; color: var(--ink); line-height: 1.5; }
.tv-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.tv-field { display: inline-flex; align-items: baseline; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px 11px; font-size: 12.5px; }
.tv-field-k { color: var(--muted); font-weight: 600; }
.tv-field-v { color: var(--teal); font-weight: 800; }
.rec-transcript { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.rec-utt { border-left: 3px solid var(--spk, var(--teal)); background: var(--cream); border-radius: 0 10px 10px 0; padding: 9px 12px; }
.rec-utt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.rec-utt-spk { font-weight: 800; font-size: 12px; color: var(--spk, var(--teal)); }
.rec-utt-time { margin-left: auto; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rec-tone { font-size: 10.5px; padding: 1px 8px; }
.rec-utt-text { font-size: 13.5px; color: var(--ink); line-height: 1.45; }

/* segmented toggle */
.seg { display: inline-flex; background: #eef2f1; border-radius: var(--radius-pill); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: none; background: transparent; padding: 8px 15px; border-radius: var(--radius-pill); font-size: 13.5px;
  font-weight: 700; color: var(--muted); transition: background var(--dur), color var(--dur); }
.seg button.on { background: #fff; color: var(--teal); box-shadow: var(--shadow); }
.seg button.on.yes { color: var(--green); }
.seg button.on.no { color: var(--red); }

/* chips / badges - pill */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.chip.aceito { background: #e3f3ea; color: #14653f; }
.chip.nao_aceito { background: #fbeae9; color: #a02320; }
.chip.tentado { background: #fbf0dd; color: #855107; }
.chip.neutral { background: #eef2f1; color: #45534f; }
.chip.blue { background: #e9f0fd; color: #1b4ea3; }
.chip.pendente { background: #fbf0dd; color: #855107; }
.chip.aprovado { background: #e3f3ea; color: #14653f; }
.chip.reprovado { background: #fbeae9; color: #a02320; }
.chip.rascunho { background: #eef2f1; color: #45534f; }
.chip.correcao { background: #fff1d9; color: #8a5200; }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 18px; box-shadow: var(--shadow-2); }
.kpi .lab { color: var(--muted); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.kpi .lab .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-content: center; flex: none; }
.kpi .ic svg { width: 16px; height: 16px; }
.kpi .val { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin-top: 9px; color: var(--teal); }
.kpi .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; font-weight: 500; }
.kpi .val small { font-size: 16px; color: var(--muted); font-weight: 700; }

/* dashboard layout */
.dash-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 16px; }
.dash-row.thirds { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 980px) { .dash-row, .dash-row.thirds { grid-template-columns: 1fr; } }

/* progress bars */
.barlist { display: grid; gap: 13px; }
.barline .top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; font-weight: 600; }
.barline .top b { font-weight: 800; }
.barline .track { height: 10px; background: #eef2f1; border-radius: var(--radius-pill); overflow: hidden; }
.barline .fill { height: 100%; border-radius: var(--radius-pill); background: var(--teal); transition: width .4s; }

/* table */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; color: var(--muted); font-size: 11.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; padding: 12px 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tbl td { padding: 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr { transition: background var(--dur); }
table.tbl tbody tr:hover { background: var(--cream); cursor: pointer; }
.tbl .ec-name { font-weight: 700; color: var(--teal); }
.tbl .ec-sub { color: var(--muted); font-size: 12px; font-weight: 500; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }

/* filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters select, .filters input { width: auto; min-width: 150px; padding: 9px 12px; font-size: 13.5px; }
.filters .search { flex: 1; min-width: 220px; }

/* list cards */
.vcard { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.vcard:last-child { border-bottom: none; }
.vcard .vc-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.vcard .vc-name { font-weight: 700; }
.vcard .vc-meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }

/* empty state */
.empty { text-align: center; padding: 52px 20px; color: var(--muted); }
.empty svg { width: 48px; height: 48px; opacity: .3; margin-bottom: 12px; color: var(--teal); }
.empty p { margin: 0 0 4px; font-weight: 700; color: var(--teal); }
.empty small { font-size: 13px; }

/* evidence gallery */
.evgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.evcell { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; position: relative; background: var(--cream); }
.evcell img, .evcell video { width: 100%; height: 120px; object-fit: cover; display: block; cursor: pointer; }
.evcell .evtype { position: absolute; top: 6px; left: 6px; background: rgba(0,57,51,.82); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill); }
.evcell .evdel { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.6); color: #fff; border: none;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-content: center; }
.evcell .evcap { padding: 7px 9px; font-size: 11.5px; color: var(--muted); }
.evcell .evtest { display: block; padding: 7px 9px 0; font-size: 11px; font-weight: 800; color: var(--navy); }

.visit-tests-list { display: grid; gap: 10px; margin-top: 14px; }
.visit-test-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--cream); }
.visit-test-index { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: var(--teal);
  background: #e8f5f2; font-weight: 800; }
.visit-test-main { min-width: 0; }
.visit-test-result { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; font-size: 12px; }
.campaign-tests { display: grid; gap: 12px; }
.campaign-test-card { border: 1px solid var(--line); border-radius: 15px; padding: 14px; background: var(--cream); }

/* Etapa 5 — decisao do piloto, entregaveis e auditoria */
.pilot-card { border-left: 4px solid var(--brand); }
.pilot-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.pilot-check { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; padding: 12px; background: var(--cream); min-width: 0; }
.pilot-check strong { display: block; font-size: 13px; }
.pilot-check .muted { font-size: 12px; margin-top: 3px; }
.pilot-check-icon, .quality-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.pilot-check-icon.ok, .quality-icon.ok { color: var(--green); background: #e3f3ea; }
.pilot-check-icon.pending, .quality-icon.warning { color: var(--amber); background: #fbf0dd; }
.deliverable-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.deliverable-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 230px; }
.deliverable-card > div { flex: 1; }
.deliverable-card strong { font-size: 17px; color: var(--teal); }
.deliverable-card p { line-height: 1.5; }
.deliverable-card .btn { width: 100%; justify-content: center; }
.deliverable-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--teal); background: var(--mint); margin-bottom: 14px; }
.quality-row { display: flex; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.quality-row:last-of-type { border-bottom: 0; }
.quality-row strong { display: block; }
.quality-row .muted { font-size: 12px; margin-top: 2px; }
.audit-table { min-width: 940px; }
.audit-table td:first-child { white-space: nowrap; }
.audit-details { max-width: 430px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border-top: 1px solid var(--line); }
@media (max-width: 1100px) {
  .pilot-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deliverable-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pilot-checks, .deliverable-grid { grid-template-columns: 1fr; }
  .pagination { flex-wrap: wrap; justify-content: center; }
}
.check-row { min-height: 46px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 760px) {
  .visit-test-row { grid-template-columns: 34px minmax(0, 1fr); }
  .visit-test-result, .visit-test-row > .row { grid-column: 2; justify-content: flex-start; }
}

/* ====================================================================
   ETAPA 8 - ADOCAO ASSISTIDA E CENTRAL DE AJUDA
   ==================================================================== */
.help-lead { margin: -14px 0 22px; max-width: 760px; font-size: 15px; }
.help-summary { display: grid; grid-template-columns: 1.25fr 1fr 1.4fr; gap: 14px; margin-bottom: 18px; }
.help-progress-card, .help-metric { min-height: 132px; display: flex; align-items: center; gap: 16px; }
.help-progress-card h3, .help-metric strong { display: block; font-size: 20px; margin: 4px 0; color: var(--ink); }
.help-progress-card small, .help-metric small { display: block; line-height: 1.35; }
.help-ring { --progress: 0deg; width: 78px; height: 78px; flex: none; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--teal) var(--progress), #e8efed 0); }
.help-ring::after { content: ''; position: absolute; inset: 8px; border-radius: inherit; background: var(--card); }
.help-ring strong { position: relative; z-index: 1; font-size: 18px; }
.help-metric-icon { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; color: var(--teal); background: #e8f5f2; }
.help-section { margin-bottom: 18px; }
.help-section h2, .help-tickets h2 { font-size: 21px; margin: 4px 0 7px; }
.help-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 17px; }
.eyebrow { color: var(--teal); text-transform: uppercase; letter-spacing: .11em; font-size: 11px; font-weight: 800; }
.learning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.learning-card { min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 15px; display: grid; grid-template-columns: 42px 1fr auto; gap: 13px; align-items: start; background: #fff; transition: transform var(--dur), border-color var(--dur), background var(--dur); }
.learning-card:hover { transform: translateY(-1px); border-color: #bfd4cf; }
.learning-card.done { background: #f2f8f6; border-color: #c5ddd7; }
.learning-index { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #e8f5f2; color: var(--teal); font-weight: 800; }
.learning-card.done .learning-index { color: #fff; background: var(--green); }
.learning-copy { min-width: 0; }
.learning-copy h3 { font-size: 15px; }
.learning-copy p { margin: 7px 0 0; font-size: 13px; line-height: 1.45; }
.learning-actions { display: flex; gap: 7px; align-self: center; }
.btn.soft { color: var(--green); background: #e8f4ed; border-color: #d2e8dc; }
.btn.soft:hover { background: #dbede3; }
.help-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; align-items: start; }
.help-search { margin: 15px 0 11px; }
.faq-list { display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.faq-item summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 13px 14px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { transition: transform var(--dur); }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 14px 14px; color: var(--muted); line-height: 1.55; }
.faq-category { border-radius: 999px; padding: 4px 8px; background: #edf4f2; color: var(--teal); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.support-form textarea { resize: vertical; min-height: 116px; }
.protocol-success { text-align: center; display: grid; justify-items: center; gap: 11px; padding: 8px 4px; }
.protocol-success > svg { width: 58px; height: 58px; padding: 15px; border-radius: 18px; color: #fff; background: var(--green); }
.protocol-success p { margin: 0; color: var(--muted); }
.protocol-success strong { font-size: 18px; padding: 10px 14px; border-radius: 12px; background: #eef6f4; color: var(--teal); }
.help-tickets { overflow: hidden; margin-bottom: 18px; }
.help-tickets > .pad { padding-bottom: 14px; }
.ticket-list { border-top: 1px solid var(--line); }
.ticket-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .46fr); gap: 22px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.ticket-row:last-child { border-bottom: none; }
.ticket-main h3 { font-size: 16px; margin: 9px 0 2px; }
.ticket-main p { margin: 8px 0 0; line-height: 1.5; }
.ticket-side { display: grid; gap: 10px; justify-items: end; align-content: start; text-align: right; }
.ticket-response { width: 100%; padding: 11px 12px; border-radius: 13px; background: #eef6f4; text-align: left; }
.ticket-response p { margin: 5px 0; }
.ticket-status, .ticket-priority { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ticket-status.aberto { color: #1d5c8c; background: #e8f3ff; }
.ticket-status.em_atendimento { color: #845408; background: #fff3dc; }
.ticket-status.aguardando_usuario { color: #6f3e9d; background: #f0e8fb; }
.ticket-status.resolvido { color: #14653f; background: #e4f5ea; }
.ticket-priority.normal { color: var(--muted); background: #edf2f1; }
.ticket-priority.alta { color: #945a06; background: #fff0d3; }
.ticket-priority.urgente { color: #9a2727; background: #fde7e7; }
.empty.compact { min-height: 120px; padding: 16px; }

@media (max-width: 1080px) {
  .help-summary { grid-template-columns: 1fr 1fr; }
  .help-summary > :first-child { grid-column: 1 / -1; }
  .learning-grid, .help-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .help-summary { grid-template-columns: 1fr; }
  .help-summary > :first-child { grid-column: auto; }
  .learning-card { grid-template-columns: 38px 1fr; }
  .learning-index { width: 38px; height: 38px; }
  .learning-actions { grid-column: 1 / -1; width: 100%; }
  .learning-actions .btn { flex: 1; justify-content: center; }
  .ticket-row { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .ticket-side { justify-items: start; text-align: left; }
  .ticket-side .btn { width: 100%; justify-content: center; }
  .faq-item summary { grid-template-columns: 1fr auto; }
  .faq-category { grid-column: 1 / -1; width: max-content; }
}

/* ====================================================================
   ETAPA 7 - SUSTENTACAO, MONITORAMENTO E BACKUP
   ==================================================================== */
.ops-content { display: grid; gap: 16px; }
.ops-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ops-metric { display: flex; align-items: center; gap: 14px; min-height: 128px; }
.ops-metric-icon { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; color: var(--teal); background: #e7f5f1; }
.ops-metric.warn .ops-metric-icon { color: #8a5705; background: #fff1d7; }
.ops-metric.bad .ops-metric-icon { color: #9a2727; background: #fde8e8; }
.ops-metric strong { display: block; margin: 5px 0 3px; color: var(--ink); font-size: 22px; line-height: 1.05; }
.ops-metric small { display: block; line-height: 1.35; }
.ops-status { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.ops-status.ok { color: #14653f; background: #e3f3ea; }
.ops-status.warn { color: #835307; background: #fff1d7; }
.ops-status.bad { color: #942622; background: #fde7e7; }
.ops-protection { display: grid; gap: 16px; }
.ops-protection h3, .ops-section h3 { margin: 0 0 4px; }
.ops-good, .ops-alert { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; border-radius: 14px; font-size: 13px; font-weight: 650; }
.ops-good { color: #14653f; background: #e8f6ed; border: 1px solid #c8e4d2; }
.ops-alert { color: #8d2626; background: #fff0f0; border: 1px solid #efc4c4; }
.ops-good svg, .ops-alert svg { flex: none; margin-top: 1px; }
.ops-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.ops-facts > div { padding: 12px 14px; border: 1px solid var(--line); background: var(--bg); border-radius: 13px; }
.ops-facts span, .ops-facts strong { display: block; }
.ops-facts strong { margin-top: 4px; font-size: 13px; color: var(--ink); }
.ops-section { overflow: hidden; }
.ops-table td:last-child, .ops-table th:last-child { text-align: right; }
.ops-events { border-top: 1px solid var(--line); }
.ops-event { display: grid; grid-template-columns: 12px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.ops-event:last-child { border-bottom: 0; }
.ops-event .muted { font-size: 12px; }
.ops-mark { width: 10px; height: 10px; border-radius: 50%; }
.ops-mark.ok { background: #26a269; box-shadow: 0 0 0 4px rgba(38,162,105,.12); }
.ops-mark.bad { background: #d64b45; box-shadow: 0 0 0 4px rgba(214,75,69,.12); }
.ops-generated { text-align: right; margin: -4px 2px 0; color: var(--muted); font-size: 11px; }
@media (max-width: 1100px) { .ops-kpis { grid-template-columns: 1fr 1fr; } .ops-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .ops-kpis, .ops-facts { grid-template-columns: 1fr; }
  .ops-metric { min-height: auto; }
  .ops-event { grid-template-columns: 12px 1fr; }
  .ops-event > :last-child { grid-column: 2; }
}

/* detail layout */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 18px; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; } }
.dl .k { color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.dl .v { font-size: 14.5px; font-weight: 600; margin-top: 3px; color: var(--ink); }
.checklist { display: grid; gap: 10px; }
.checklist .ci { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.checklist .ci .mk { width: 20px; height: 20px; border-radius: 50%; display: grid; place-content: center; flex: none; }
.checklist .ci.ok .mk { background: #e3f3ea; color: var(--green); }
.checklist .ci.no .mk { background: #fbeae9; color: var(--red); }
.checklist .ci .mk svg { width: 12px; height: 12px; }

/* Etapa 3: completude, fila e histórico de QA */
.completeness-value { color: var(--teal); font-size: 24px; }
.completeness-track { height: 10px; border-radius: 99px; overflow: hidden; background: #e6eeec; flex: 1; }
.completeness-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-2), var(--dot-yellow)); transition: width .3s ease; }
.completeness-card > .completeness-track { margin: 14px 0; }
.completeness-issues { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.completeness-ok { color: #14653f; background: #e3f3ea; border-color: #c1dfce; }
.mini-completeness { width: 88px; height: 7px; border-radius: 99px; background: #e6eeec; overflow: hidden; }
.mini-completeness span { display: block; height: 100%; border-radius: inherit; background: var(--teal-2); }
.qa-history { display: grid; gap: 0; }
.qa-history-item { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding-bottom: 18px; }
.qa-history-item:not(:last-child)::before { content: ''; position: absolute; left: 5px; top: 13px; bottom: 0; width: 2px; background: var(--line); }
.qa-history-mark { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 0 4px #e6f5f1; z-index: 1; }
.qa-history-item p { margin: 6px 0 0; font-size: 13px; }
.qa-reason { margin-top: 5px; color: #855107; font-size: 12px; font-weight: 700; }
.qa-tabs { margin-bottom: 16px; overflow-x: auto; max-width: 100%; }
.qa-kpis { margin-bottom: 16px; }
.qa-queue-card { margin-bottom: 12px; }
.qa-visit-name { margin: 8px 0 3px; font-size: 17px; }
.qa-completeness-line { display: flex; align-items: center; gap: 10px; max-width: 420px; margin-top: 12px; font-size: 12px; }
@media (max-width: 640px) { .qa-actions { width: 100%; } .qa-actions .btn { flex: 1; justify-content: center; } }

/* toast */
#toast-host { position: fixed; top: 18px; right: 18px; z-index: 200; display: grid; gap: 10px; max-width: 360px; }
.toast { background: var(--teal); color: #fff; padding: 13px 17px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; animation: slidein .2s ease; }
.toast.ok { background: #14653f; }
.toast.err { background: #93211e; }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } }
@media (max-width: 560px) { #toast-host { left: 14px; right: 14px; top: 14px; max-width: none; } }

/* modal */
#modal-host:empty { display: none; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,57,51,.45); z-index: 150; display: grid; place-items: center;
  padding: 18px; overflow: hidden; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 20px; width: min(440px, 100%); max-height: calc(100dvh - 36px);
  box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; }
.modal.lg { width: min(900px, 100%); }
.modal h3 { flex: 0 0 auto; padding: 20px 22px 0; font-size: 19px; }
.modal .mbody { min-height: 0; padding: 16px 22px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.modal .mfoot { flex: 0 0 auto; padding: 15px 22px; display: flex; gap: 10px; justify-content: flex-end;
  border-top: 1px solid var(--line); background: var(--cream); box-shadow: 0 -8px 22px rgba(0,57,51,.05); }
@supports not (height: 100dvh) { .modal { max-height: calc(100vh - 36px); } }
@media (max-width: 640px) {
  .modal-bg { padding: 8px; place-items: stretch; }
  .modal, .modal.lg { width: 100%; max-height: calc(100dvh - 16px); border-radius: 16px; }
  .modal h3 { padding: 17px 16px 0; }
  .modal .mbody { padding: 14px 16px 18px; scrollbar-gutter: auto; }
  .modal .mfoot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .modal .mfoot .btn { flex: 1 1 140px; justify-content: center; }
  .modal .row.between { align-items: flex-start; flex-wrap: wrap; }
}

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 250; display: grid; place-items: center; padding: 20px; }
.lightbox img, .lightbox video { max-width: 96vw; max-height: 92vh; border-radius: 12px; }
.lightbox .lb-close { position: absolute; top: 18px; right: 20px; background: rgba(255,255,255,.16); color: #fff;
  border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; }

/* utility */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0; }
.spread { flex: 1; }
.text-c { text-align: center; }
.nowrap { white-space: nowrap; }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  animation: rot .6s linear infinite; display: inline-block; }
.btn .spin, .btn.primary .spin { border-color: rgba(255,255,255,.45); border-top-color: #fff; }
.btn:not(.primary):not(.dark) .spin { border-color: rgba(0,57,51,.25); border-top-color: var(--teal); }
@keyframes rot { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #eef2f1 25%, #f7faf9 50%, #eef2f1 75%); background-size: 200% 100%;
  animation: shim 1.2s infinite; border-radius: 10px; }
@keyframes shim { to { background-position: -200% 0; } }

.offline-banner { background: var(--amber); color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: 7px; }
.help-note { background: #eef4f2; border: 1px solid #d3e3df; color: var(--teal); border-radius: var(--radius-sm); padding: 12px 15px; font-size: 13px; font-weight: 500; }

/* ====================================================================
   INTRO ELO (tela de login) - fiel ao video, 5s
   creme -> zoom/inversao -> "elo" branco no teal -> espectro fluindo -> fade
   ==================================================================== */
.elo-intro {
  position: fixed; inset: 0; z-index: 300; overflow: hidden;
  --mark-w: 300px; --line-h: calc(var(--mark-w) * .057);
  animation: ei-out .5s ease 4.5s forwards;
}
.elo-intro.skip { animation: ei-out .3s ease forwards; }
.elo-intro .ei-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.elo-intro .ei-teal { background: var(--teal); z-index: 1; }
.elo-intro .ei-cream { background: var(--cream); z-index: 2;
  animation: ei-cream-out .7s cubic-bezier(.6,0,.85,1) 1s forwards; }
.elo-intro .ei-mark { width: var(--mark-w); height: auto; }
.elo-intro .ei-cream .ei-mark { animation: ei-zoom .8s cubic-bezier(.55,0,.9,1) 1s forwards; }
.elo-intro .ei-teal .ei-mark {
  opacity: 0; transform: scale(1.25); position: relative; z-index: 2;
  animation: ei-emerge .7s cubic-bezier(.22,1,.36,1) 1.5s forwards;
  filter: drop-shadow(0 6px 26px rgba(0,0,0,.28));
}
.elo-intro .ei-line {
  position: absolute; left: 0; right: 0; top: 50%; height: var(--line-h); z-index: 1;
  transform: translateY(-50%); border-radius: 3px; clip-path: inset(0 50% 0 50%);
  background: linear-gradient(90deg,
    rgba(0,57,51,0) 0%, #e0413f 13%, #f0883c 21%, #f5c400 29%, #2bb673 39%,
    #ffffff 50%, #2d6cdf 61%, #4a90e2 70%, #f5c400 82%, rgba(0,57,51,0) 100%);
  background-size: 220% 100%;
  filter: drop-shadow(0 0 13px rgba(255,255,255,.32));
  animation: ei-line-reveal .6s cubic-bezier(.22,1,.36,1) 2.2s forwards,
             ei-line-flow 3.4s linear 2.85s infinite;
}
.elo-intro .ei-line::after {
  content: ''; position: absolute; inset: -7px 0;
  background: linear-gradient(90deg, transparent 36%, rgba(255,255,255,.6) 50%, transparent 64%);
  background-size: 240% 100%; filter: blur(7px); opacity: 0;
  animation: ei-bloom 2.7s ease-in-out 2.85s infinite;
}
@media (max-width: 640px) { .elo-intro { --mark-w: 220px; } }
@keyframes ei-zoom { to { transform: scale(12); opacity: 0; } }
@keyframes ei-cream-out { 0%, 38% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ei-emerge { to { opacity: 1; transform: scale(1); } }
@keyframes ei-line-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes ei-line-flow { from { background-position: 0% 0; } to { background-position: -220% 0; } }
@keyframes ei-bloom { 0%, 100% { opacity: 0; background-position: 130% 0; } 50% { opacity: .85; background-position: -30% 0; } }
@keyframes ei-out { to { opacity: 0; visibility: hidden; } }

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

/* ===== Aviso LGPD (consentimento) ===== */
.lgpd-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: var(--teal); color: #eaf3f0;
  box-shadow: 0 -10px 30px rgba(0, 57, 51, .28);
  animation: lgpd-in .32s ease both;
}
.lgpd-banner.out { animation: lgpd-out .26s ease both; }
.lgpd-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 18px; align-items: center; }
.lgpd-text strong { display: block; color: #fff; font-weight: 800; font-size: 13.5px; letter-spacing: .02em; margin-bottom: 4px; }
.lgpd-text p { margin: 0; font-size: 13px; line-height: 1.5; color: #cfe0db; }
.lgpd-banner .btn.primary { flex-shrink: 0; white-space: nowrap; background: var(--dot-yellow); border-color: var(--dot-yellow); color: var(--teal); }
.lgpd-banner .btn.primary:hover { filter: brightness(.95); background: var(--dot-yellow); border-color: var(--dot-yellow); }
@keyframes lgpd-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes lgpd-out { from { transform: translateY(0); opacity: 1; } to { transform: translateY(100%); opacity: 0; } }
@media (max-width: 640px) {
  .lgpd-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .lgpd-banner .btn.primary { width: 100%; justify-content: center; }
}

/* ===== Login: alternar para "Solicitar acesso" ===== */
.login-alt { margin-top: 20px; text-align: center; font-size: 14px; color: var(--muted); }
.linkbtn {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--teal); text-decoration: underline;
}
.linkbtn:hover { color: var(--teal-2); }
.req-done { text-align: center; padding: 8px 0; }
.req-check {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; color: #14653f; background: #e3f3ea;
}
.req-done h2 { margin-bottom: 8px; }
.req-done .btn { margin-top: 8px; }

/* ===== Equipe: solicitações de acesso ===== */
.req-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.req-head h3 { font-size: 16px; }
.req-list { display: grid; gap: 0; }
.req-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.req-item:last-child { border-bottom: none; }
.req-info { min-width: 220px; }
.req-msg { margin-top: 6px; font-size: 13.5px; color: var(--ink); background: var(--bg); border-radius: var(--radius-sm); padding: 8px 11px; }
.req-date { margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.req-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ====================================================================
   ETAPA 4 - OPERACAO OFFLINE E SINCRONIZACAO SEGURA
   ==================================================================== */
.connection-state {
  margin-left: auto; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; color: var(--teal); display: inline-flex;
  align-items: center; gap: 8px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
}
.connection-dot { width: 9px; height: 9px; border-radius: 50%; background: #26a269; box-shadow: 0 0 0 4px rgba(38,162,105,.12); }
.connection-state.pending .connection-dot { background: #e09512; box-shadow: 0 0 0 4px rgba(224,149,18,.14); }
.connection-state.offline .connection-dot, .connection-state.error .connection-dot { background: #d64b45; box-shadow: 0 0 0 4px rgba(214,75,69,.14); }
.connection-state.conflict .connection-dot { background: #8c55cc; box-shadow: 0 0 0 4px rgba(140,85,204,.14); }
.sync-notice { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; background: #eff8f4; color: var(--teal); }
.sync-notice.offline { background: #fff4ec; color: #7a4215; border-color: #f1d6bf; }
.sync-notice strong { display: block; margin-bottom: 3px; }
.sync-notice div div { font-size: 13px; line-height: 1.45; }
.sync-list { display: grid; gap: 12px; }
.sync-item { border-left: 4px solid var(--teal-2); }
.sync-title { font-weight: 800; font-size: 17px; }
.sync-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 600; }
.sync-chip { display: inline-flex; width: max-content; align-items: center; border-radius: 999px; padding: 6px 9px; font-size: 11px; font-weight: 800; background: #edf3f2; color: var(--teal); }
.sync-chip.pending { background: #fff3dc; color: #845408; }
.sync-chip.syncing { background: #e8f3ff; color: #1d5c8c; }
.sync-chip.error { background: #fde7e7; color: #9a2727; }
.sync-chip.conflict { background: #f0e8fb; color: #6f3e9d; }
.sync-chip.synced { background: #e4f5ea; color: #14653f; }
.sync-error { margin-top: 12px; border: 1px solid #efc0c0; background: #fff0f0; color: #8d2626; border-radius: 12px; padding: 11px 13px; font-size: 13px; font-weight: 600; }
.offline-visits:not(:empty) { margin-bottom: 16px; }
.offline-draft-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 10px; margin-top: 14px; }
.offline-draft-card { text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #f8fbfa; color: var(--ink); cursor: pointer; display: grid; gap: 5px; }
.offline-draft-card:hover { border-color: var(--teal-2); transform: translateY(-1px); }
.offline-draft-card span { color: var(--muted); font-size: 12px; }
.offline-evidence-controls { display: grid; gap: 10px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 760px) {
  .connection-state { padding: 9px; }
  .connection-state span:last-child { display: none; }
  .offline-draft-grid { grid-template-columns: 1fr; }
  .sync-item .row.between { align-items: flex-start; }
}

/* ====================================================================
   EVOLUCAO CONTINUA E GOVERNANCA DA SOLUCAO
   ==================================================================== */
.improvement-lead { margin: -14px 0 20px; max-width: 760px; line-height: 1.55; }
.improvement-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.improvement-metric { display: flex; align-items: center; gap: 14px; min-width: 0; }
.improvement-metric-icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 15px; background: #e9f5f2; color: var(--teal); }
.improvement-metric > div:last-child { min-width: 0; display: grid; gap: 2px; }
.improvement-metric strong { color: var(--teal); font-size: 25px; line-height: 1.05; }
.improvement-metric small { line-height: 1.35; }
.improvement-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.improvement-panel { min-width: 0; }
.improvement-panel h2, .acceptance-panel h2, .improvement-roadmap h2, .improvement-feedback-list h2 { margin: 4px 0 8px; font-size: 21px; }
.feedback-form .checkline { margin: 2px 0 10px; }
.checkline { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 13.5px; line-height: 1.4; cursor: pointer; }
.checkline input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--teal-2); flex: none; }
.release-timeline { display: grid; gap: 0; margin-top: 14px; }
.release-step { display: grid; grid-template-columns: 66px 1fr; gap: 12px; position: relative; padding: 0 0 13px; }
.release-step:not(:last-child)::before { content: ''; position: absolute; left: 32px; top: 33px; bottom: 0; width: 1px; background: var(--line); }
.release-number { min-width: 62px; width: max-content; padding: 0 8px; height: 30px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); color: var(--teal); background: var(--cream); font-size: 10px; font-weight: 800; z-index: 1; }
.release-step.current .release-number { color: #fff; background: var(--teal-2); border-color: var(--teal-2); box-shadow: 0 6px 16px rgba(0, 160, 145, .2); }
.release-step strong { display: block; color: var(--teal); font-size: 14px; margin: 5px 0 2px; }
.release-step p { font-size: 12.5px; line-height: 1.4; margin: 0; }
.acceptance-panel, .acceptance-summary, .acceptance-empty { margin-bottom: 16px; }
.acceptance-head, .improvement-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acceptance-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; margin: 16px 0; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); }
.acceptance-history { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 12px; }
.acceptance-history summary { color: var(--teal); font-weight: 800; cursor: pointer; }
.acceptance-history-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.acceptance-summary, .acceptance-empty { display: flex; align-items: center; gap: 16px; }
.acceptance-summary > svg, .acceptance-empty > svg { width: 48px; height: 48px; padding: 12px; box-sizing: border-box; border-radius: 15px; color: #14653f; background: #e3f3ea; flex: none; }
.improvement-roadmap, .improvement-feedback-list { margin-bottom: 16px; overflow: hidden; }
.improvement-section-head { align-items: center; border-bottom: 1px solid var(--line); }
.improvement-table td:first-child { min-width: 250px; }
.improvement-status { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; white-space: nowrap; font-size: 11.5px; font-weight: 800; background: #eef2f1; color: #45534f; }
.improvement-status.priorizado { color: #1b4ea3; background: #e9f0fd; }
.improvement-status.em_andamento, .improvement-status.aprovar_com_ressalvas { color: #855107; background: #fbf0dd; }
.improvement-status.entregue, .improvement-status.aprovar_poc { color: #14653f; background: #e3f3ea; }
.improvement-status.cancelado, .improvement-status.nao_aprovar { color: #a02320; background: #fbeae9; }
.feedback-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 20px 20px; }
.feedback-entry { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--cream); min-width: 0; }
.feedback-entry p { margin: 10px 0; line-height: 1.5; }
.feedback-score { color: var(--teal); font-weight: 800; white-space: nowrap; }

@media (max-width: 1120px) {
  .improvement-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .improvement-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .improvement-metrics, .acceptance-checklist, .feedback-cards { grid-template-columns: 1fr; }
  .improvement-metric { padding: 16px; }
  .acceptance-history-row { display: grid; gap: 3px; }
  .improvement-section-head { padding: 16px; }
}

@media (max-width: 640px) {
  .pad, .card.pad { padding: 16px; }
}

/* Resultados consolidados e planejamento de expansao */
.results-lead { margin: -14px 0 20px; max-width: 820px; line-height: 1.55; }
.result-campaign-filter { display: grid; gap: 4px; min-width: 230px; }
.result-campaign-filter label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-campaign-filter select { min-height: 44px; }
.results-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.result-metric { display: flex; align-items: center; gap: 14px; min-width: 0; }
.result-metric-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 15px; color: var(--teal); background: #e8f5f2; }
.result-metric > div { min-width: 0; display: grid; gap: 2px; }
.result-metric strong { color: var(--teal); font-size: 24px; line-height: 1.05; }
.result-metric small { line-height: 1.35; }
.results-executive { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .7fr); gap: 16px; margin-bottom: 16px; }
.result-decision h2, .result-governance h2, .results-section h2 { margin: 4px 0 8px; font-size: 21px; }
.result-recommendation { margin: 12px 0 18px; color: var(--ink); font-size: 15px; line-height: 1.55; }
.result-causes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.result-cause { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--cream); }
.result-cause span { color: var(--muted); font-size: 11px; font-weight: 700; }
.result-cause strong { color: var(--teal); font-size: 17px; }
.result-cause-track { height: 6px; overflow: hidden; border-radius: 99px; background: #dfe9e6; }
.result-cause-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-2), var(--dot-yellow)); }
.result-checks { display: grid; gap: 7px; margin-top: 14px; }
.result-check { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 11px; background: #fff5e8; color: #7f5010; font-size: 12px; }
.result-check.ok { color: #14653f; background: #e8f5ed; }
.result-check svg { width: 16px; height: 16px; }
.result-decision-chip { display: inline-flex; margin: 8px 0 12px; padding: 7px 11px; border-radius: 999px; color: #855107; background: #fbf0dd; font-size: 12px; font-weight: 800; }
.result-decision-chip.aprovar_poc { color: #14653f; background: #e3f3ea; }
.result-decision-chip.nao_aprovar { color: #a02320; background: #fbeae9; }
.results-section { margin-bottom: 16px; overflow: hidden; }
.results-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.results-snapshot-list { display: grid; }
.result-snapshot { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.result-snapshot:last-child { border-bottom: 0; }
.result-snapshot-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--teal); background: #e8f5f2; }
.result-snapshot-main { min-width: 0; display: grid; gap: 3px; }
.result-snapshot-main .muted { font-size: 12px; }
.result-snapshot-main code { width: max-content; max-width: 100%; color: #49645e; font-size: 10px; }
.result-snapshot-actions { display: flex; gap: 8px; }
.results-plan-table td:first-child { min-width: 230px; }
.results-plan-table td:nth-child(2) { min-width: 190px; max-width: 300px; }
.expansion-status { display: inline-flex; padding: 6px 10px; border-radius: 999px; white-space: nowrap; color: #45534f; background: #eef2f1; font-size: 11.5px; font-weight: 800; }
.expansion-status.aprovada, .expansion-status.concluida { color: #14653f; background: #e3f3ea; }
.expansion-status.em_andamento { color: #1b4ea3; background: #e9f0fd; }
.expansion-status.cancelada { color: #a02320; background: #fbeae9; }

@media (max-width: 1120px) {
  .results-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-executive { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .results-metrics, .result-causes { grid-template-columns: 1fr; }
  .result-snapshot { grid-template-columns: 40px minmax(0, 1fr); padding: 14px 16px; }
  .result-snapshot-actions { grid-column: 1 / -1; }
  .result-snapshot-actions .btn { flex: 1; justify-content: center; }
  .result-campaign-filter { width: 100%; min-width: 0; }
}
