:root {
  --anchor: #2C2C2C;
  --anchor-2: #3D3D3D;
  --ink: #17212B;
  --slate: #4A5A6A;
  --line: #DCE3EA;
  --line-2: #EDF1F5;
  --paper: #F5F7FA;
  --white: #FFFFFF;
  --go: #0E8C6A;
  --go-soft: #E4F3EE;
  --amber: #B7791F;
  --amber-soft: #FBF1DE;
  --red: #B23A48;
  --red-soft: #F7E7E9;
  --focus: #2F6FB3;
  --mist: #B8B2AE;
  --r: 10px;
  --r-sm: 7px;
  --shadow: 0 1px 2px rgba(23,33,43,.06), 0 8px 24px rgba(23,33,43,.06);

  /* Marca - um unico tom de destaque (azul escuro do logo da lampada) */
  --wine: #0A3A5C;
  --wine-2: #06283F;
  --login-wash: radial-gradient(1300px 650px at 18% -12%, var(--anchor-2) 0%, var(--anchor) 70%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, a.btn { font-family: inherit; cursor: pointer; }
input, select, textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }

/* ---------- App shell ---------- */
.topbar {
  background: var(--anchor);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 40;
  border-top: 3px solid var(--wine);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 30px; height: 46px; flex-shrink: 0; }
.brand-icon svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; align-items: baseline; gap: 9px; }
.brand-word { display: inline-flex; align-items: baseline; font-family: system-ui, sans-serif; font-weight: 800; }
.brand-ide { font-size: 17px; color: #009B63; letter-spacing: .3px; }
.brand-acao { font-size: 19px; color: #4FA6DE; letter-spacing: -.2px; }
.brand-tag { font-family: Georgia, serif; font-style: italic; font-size: 13px; color: #B9C7D6; }
.topbar .spacer { flex: 1; }
.lens { display: flex; background: rgba(255,255,255,.10); border-radius: 99px; padding: 3px; }
.lens a {
  border: 0; background: transparent; color: var(--mist); font-size: 12.5px; font-weight: 600;
  padding: 6px 14px; border-radius: 99px; letter-spacing: .2px; text-decoration: none;
}
.lens a.on { background: #fff; color: var(--anchor); }
.whoami { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--mist); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--wine);
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 12px;
}
.link-btn { background: transparent; border: 0; color: var(--mist); font-size: 12px; text-decoration: underline; padding: 4px; }

.layout { display: flex; min-height: calc(100vh - 60px); }
.side {
  width: 210px; background: var(--white); border-right: 1px solid var(--line);
  padding: 16px 12px; flex-shrink: 0;
}
.side .grp {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #9AA8B5; margin: 14px 8px 6px;
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav .nav-item, .nav a {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: transparent; color: var(--slate); font-size: 13.5px; font-weight: 500;
  padding: 9px 10px; border-radius: var(--r-sm); text-decoration: none;
}
.nav .nav-item:hover, .nav a:hover { background: var(--paper); color: var(--ink); }
.nav .nav-item.on, .nav a.on { background: var(--wine); color: #fff; }
.nav .ic { width: 16px; text-align: center; opacity: .9; }
.nav .count {
  margin-left: auto; font-size: 11px; background: var(--line);
  color: var(--slate); border-radius: 99px; padding: 1px 7px;
}
.nav .nav-item.on .count, .nav a.on .count { background: rgba(255,255,255,.22); color: #fff; }
.nav .count-amber { background: var(--amber-soft); color: var(--amber); }

.main { flex: 1; padding: 26px 30px; max-width: 1180px; }
.page-h { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 4px; }
.page-h h1 { font-size: 22px; margin: 0; font-weight: 700; letter-spacing: -.2px; }
.page-h .sub { color: var(--slate); font-size: 13.5px; margin: 0 0 2px; }
.page-lead { color: var(--slate); font-size: 13.5px; margin: 2px 0 22px; max-width: 70ch; }

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center;
  background: var(--login-wash);
}
.login-card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  width: min(420px, 92vw); padding: 34px 34px 28px;
}
.login-card .lg-brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 10px; gap: 0; }
.lg-logo-row { display: flex; align-items: center; gap: 8px; }
.lg-icon { width: 90px; height: 136px; flex-shrink: 0; }
.lg-icon svg { width: 100%; height: 100%; }
.lg-wordmark { display: flex; flex-direction: column; align-items: flex-start; }
.lg-ide { font-family: system-ui, sans-serif; font-size: 24px; font-weight: 800; color: #009B63; letter-spacing: 1.6px; }
.lg-marks { display: flex; gap: 3px; margin: 3px 0 2px; }
.lg-mark-g { width: 12px; height: 2px; border-radius: 1px; background: #009B63; opacity: .45; }
.lg-mark-d { width: 8px; height: 2px; border-radius: 1px; background: #CFA016; opacity: .45; }
.lg-acao { font-family: system-ui, sans-serif; font-size: 42px; font-weight: 800; color: #1674AB; letter-spacing: -.5px; line-height: 1; }
.lg-tagline { font-family: Georgia, serif; font-style: italic; color: var(--slate); margin: 2px 0 0; font-size: 13px; text-align: center; }
.login-card .btn-primary { background: #1674AB; }
.login-card .btn-primary:hover { background: #0E5080; }
.login-card .org { text-align: center; color: #9AA8B5; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--slate); margin-bottom: 5px; }
.field .req { color: var(--red); }
.req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 16px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(47,111,179,.15);
}
.field textarea { min-height: 82px; resize: vertical; line-height: 1.5; }
.hint { font-size: 11.5px; color: #9AA8B5; margin-top: 5px; }
.btn { border: 0; border-radius: var(--r-sm); padding: 12px 20px; font-size: 16px; font-weight: 600; letter-spacing: .2px; text-decoration: none; display: inline-block; text-align: center; }
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-2); color: #fff; }
.btn-go { background: var(--go); color: #fff; }
.btn-go:hover { color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--slate); }
.btn-ghost:hover { border-color: #C4CFD9; color: var(--ink); text-decoration: none; }
.ldap-note {
  display: flex; gap: 8px; align-items: flex-start; background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: 13px; color: var(--slate); margin-top: 12px;
}

/* ---------- Cards / generic ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.section-title {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--anchor);
  font-weight: 700; margin: 22px 0 4px; padding-bottom: 7px; border-bottom: 2px solid var(--line-2);
}
.section-title:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chk {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line);
  border-radius: 99px; padding: 6px 12px; font-size: 12.5px; color: var(--slate);
  background: #fff; user-select: none; cursor: pointer;
}
.chk input { accent-color: var(--anchor); }
.chk.on { border-color: var(--anchor); background: #F0F5FA; color: var(--ink); }

/* Type select (boa pratica / proposta inovadora) */
.type-select { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.type-select.single { grid-template-columns: 1fr; }
.type-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px 18px;
  cursor: pointer; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s;
}
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card .tc-head { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.type-card .tc-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; position: relative; }
.type-card .tc-desc { font-size: 12.5px; color: var(--slate); line-height: 1.45; }
.type-card.on {
  border-color: var(--wine);
  background: rgba(10,58,92,.06);
  box-shadow: 0 0 0 3px rgba(10,58,92,.15);
}
.type-card.on .tc-dot { border-color: var(--wine); }
.type-card.on .tc-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--wine); }

.form-body-gate { display: none; }
.form-body-gate.show { display: block; animation: form-body-in .25s ease; }
@keyframes form-body-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Identity */
.identity {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 20px;
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 14px 16px;
}
.identity div { font-size: 13px; }
.identity .k { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #9AA8B5; }
.identity .v { font-weight: 600; color: var(--ink); }
.src-badge {
  display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .06em;
  padding: 1px 6px; border-radius: 4px; background: #E7EDF3; color: #5E7186;
  margin-left: 6px; vertical-align: middle;
}

/* ---------- Timeline (minhas ideias) ---------- */
.idea-row {
  display: flex; gap: 16px; align-items: center; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  margin-bottom: 12px; box-shadow: var(--shadow);
}
.idea-row .idmeta { min-width: 150px; }
.idea-row .idmeta .pid { font-size: 12px; color: var(--slate); }
.idea-row .idmeta .ttl { font-weight: 600; margin-top: 2px; }
.pipeline { display: flex; align-items: center; gap: 0; flex: 1; flex-wrap: wrap; }
.node { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.dot { width: 13px; height: 13px; border-radius: 50%; background: var(--line); border: 2px solid var(--line); }
.node.done .dot { background: var(--go); border-color: var(--go); }
.node.current .dot { background: #fff; border-color: var(--anchor); box-shadow: 0 0 0 4px rgba(44,44,44,.14); }
.node small { font-size: 9.5px; color: #9AA8B5; white-space: nowrap; }
.node.done small, .node.current small { color: var(--slate); }
.seg { height: 2px; width: 22px; background: var(--line); }
.seg.done { background: var(--go); }

/* ---------- Kanban ---------- */
.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; }
.col {
  min-width: 236px; width: 236px; flex-shrink: 0; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; max-height: calc(100vh - 210px);
}
.col-h {
  padding: 11px 13px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
  position: sticky; top: 0; background: var(--paper);
  border-radius: var(--r) var(--r) 0 0;
}
.col-h .swatch { width: 9px; height: 9px; border-radius: 2px; }
.col-h b { font-size: 12.5px; }
.col-h .n {
  margin-left: auto; font-size: 11px; color: var(--slate);
  background: #fff; border: 1px solid var(--line);
  border-radius: 99px; padding: 0 7px;
}
.col-body { padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; }
.kcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 12px; box-shadow: 0 1px 2px rgba(23,33,43,.05);
  transition: transform .1s, box-shadow .1s, border-color .1s;
}
.kcard:hover { border-color: #C4CFD9; box-shadow: var(--shadow); transform: translateY(-1px); }
.kcard .pid { font-size: 10.5px; color: #9AA8B5; }
.kcard .kt { font-weight: 600; font-size: 13px; margin: 3px 0 8px; line-height: 1.35; }
.kcard .krow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 10.5px; padding: 2px 7px; border-radius: 99px; background: var(--line-2); color: var(--slate); }
.score-pill {
  margin-left: auto; font-weight: 700; font-size: 12px; color: var(--anchor);
  background: #EAF0F6; border-radius: 6px; padding: 2px 8px;
}
.sla { font-size: 10px; color: var(--amber); font-weight: 600; }
.sla.hot { color: var(--red); }
.si-flag { font-size: 9.5px; font-weight: 700; color: #fff; background: var(--red); border-radius: 4px; padding: 1px 5px; }

/* ---------- Detail ---------- */
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 99px; }
.d-block { margin-bottom: 16px; }
.d-block .lbl { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #9AA8B5; margin-bottom: 4px; }
.d-block .txt { font-size: 13.5px; color: var(--ink); white-space: pre-wrap; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.mini-select { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); width: 100%; background: #fff; font-family: inherit; font-size: 14px; }
.hist { border-left: 2px solid var(--line); padding-left: 14px; margin-top: 6px; display: flex; flex-direction: column; gap: 12px; }
.hist .h-item { position: relative; }
.hist .h-item::before { content: ""; position: absolute; left: -21px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--anchor); }
.hist .h-when { font-size: 11px; color: #9AA8B5; }
.hist .h-act { font-size: 13px; }
.hist .h-who { font-size: 11.5px; color: var(--slate); }
.tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabbar a, .tabbar button {
  border: 0; background: transparent; padding: 9px 12px; font-size: 13px;
  font-weight: 600; color: var(--slate); border-bottom: 2px solid transparent;
  text-decoration: none;
}
.tabbar a.on, .tabbar button.on { color: var(--anchor); border-bottom-color: var(--wine); }
.badge-inline { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; color: var(--slate); }

/* ---------- Reports ---------- */
.filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 14px; align-items: end; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; background: var(--anchor); color: #fff; font-weight: 600; font-size: 11.5px; letter-spacing: .03em; padding: 9px 11px; }
.tbl td { padding: 9px 11px; border-bottom: 1px solid var(--line-2); }
.tbl tr:nth-child(even) td { background: var(--paper); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl a { color: var(--anchor); text-decoration: none; }
.tbl a:hover { text-decoration: underline; }

/* ---------- Dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi .n { font-size: 30px; font-weight: 700; letter-spacing: -.5px; line-height: 1; }
.kpi .l { font-size: 12px; color: var(--slate); margin-top: 6px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.panel h4 { margin: 0 0 14px; font-size: 13.5px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 34px; align-items: center; gap: 10px; margin-bottom: 9px; }
.bar-row .bl { font-size: 12px; color: var(--slate); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { background: var(--line-2); border-radius: 5px; height: 16px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: var(--anchor); }
.bar-row .bv { font-size: 12px; font-weight: 700; color: var(--ink); text-align: right; }
.funnel { display: flex; flex-direction: column; gap: 7px; }
.fn { display: flex; align-items: center; gap: 10px; }
.fn .fbar {
  height: 26px; border-radius: 6px; display: flex; align-items: center;
  padding: 0 10px; color: #fff; font-size: 12px; font-weight: 600; min-width: 34px;
}
.fn .fl { font-size: 12px; color: var(--slate); width: 130px; text-align: right; }

.empty { text-align: center; color: #9AA8B5; padding: 40px; font-size: 13.5px; }
.req-note { font-size: 11.5px; color: var(--slate); }

/* ---------- Django form widgets ---------- */
.form-control, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: #fff; font-family: inherit; font-size: 14px;
}
.form-control:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(47,111,179,.15);
}
.form-select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
ul.errorlist { color: var(--red); font-size: 12px; padding-left: 16px; margin: 4px 0 0; }

/* ---------- Landing (pagina publica) ---------- */
.pub-page { background: var(--white); color: var(--ink); }

.pub-nav {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
}
.pub-nav .brand { display: flex; align-items: center; gap: 9px; }
.pub-nav .brand-icon { width: 26px; height: 40px; flex-shrink: 0; }
.pub-nav .brand-icon svg { width: 100%; height: 100%; display: block; }
.pub-nav .brand-text b { font-family: Georgia, serif; font-size: 18px; font-weight: 700; color: var(--ink); }

.pub-hero {
  background: linear-gradient(135deg, var(--anchor) 0%, var(--wine-2) 100%);
  color: #fff; padding: 34px 24px;
}
.pub-hero-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 48px;
}

.hero-logo-animado { height: min(38vh, 360px); width: auto; flex-shrink: 0; overflow: visible; }
.hero-logo-animado svg { height: 100%; width: auto; display: block; overflow: visible; }
.hla-pixel { transform-box: fill-box; transform-origin: center; will-change: opacity, transform, filter; }

.pub-hero-text { flex: 1; min-width: 0; text-align: left; }
.hero-wordmark {
  font-family: system-ui, sans-serif; font-weight: 800; font-size: 40px;
  letter-spacing: -.5px; margin: 0 0 2px; line-height: 1.1;
}
.hero-wordmark .h-ide { color: #009B63; }
.hero-wordmark .h-acao { color: #4FA6DE; letter-spacing: -.3px; }
.hero-tagline { font-family: Georgia, serif; font-style: italic; font-size: 15px; color: #9FB3C4; margin: 0 0 14px; }
.pub-hero p.lead { font-family: Georgia, serif; font-style: italic; font-size: 15.5px; color: #C9D4DF; margin: 0 0 20px; }
.pub-cta-row { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }
.btn-invert { background: #fff; color: var(--wine); }
.btn-invert:hover { background: #EAF0F6; color: var(--wine-2); }
.btn-outline-invert {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55);
}
.btn-outline-invert:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

.pub-section { padding: 54px 24px; max-width: 1120px; margin: 0 auto; }
.pub-section.tight { padding-top: 44px; padding-bottom: 44px; }
.pub-section-h { text-align: center; max-width: 620px; margin: 0 auto 34px; }
.pub-section-h h2 { font-size: 24px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.2px; }
.pub-section-h p { color: var(--slate); font-size: 14px; margin: 0; }
.pub-alt { background: var(--paper); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 20px; box-shadow: var(--shadow); text-align: center;
}
.step-card .step-n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--wine); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  margin: 0 auto 14px;
}
.step-card h3 { font-size: 15px; margin: 0 0 6px; }
.step-card p { font-size: 13px; color: var(--slate); margin: 0; line-height: 1.5; }

.pub-section .kpis { margin-bottom: 0; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.news-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--paper); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-thumb.ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--line-2), var(--paper)); color: #B7C1CB; font-size: 26px;
}
.news-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-date { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #9AA8B5; }
.news-body h3 { font-size: 14.5px; margin: 0; line-height: 1.35; }
.news-body p { font-size: 12.5px; color: var(--slate); line-height: 1.5; margin: 0; flex: 1; }
.news-body a.news-link { font-size: 12.5px; font-weight: 600; color: var(--wine); text-decoration: none; margin-top: 4px; }
.news-body a.news-link:hover { text-decoration: underline; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery-item {
  position: relative; aspect-ratio: 1/1; border-radius: var(--r-sm); overflow: hidden;
  background: var(--paper);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 8px 6px;
  background: linear-gradient(0deg, rgba(0,0,0,.62), transparent);
  color: #fff; font-size: 10.5px; line-height: 1.3;
}

.pub-cta-band {
  background: var(--wine); color: #fff; text-align: center; padding: 46px 24px;
}
.pub-cta-band h2 { font-size: 22px; margin: 0 0 8px; }
.pub-cta-band p { color: #CFE0EC; font-size: 14px; margin: 0 0 22px; }

.pub-footer {
  text-align: center; color: #9AA8B5; font-size: 12px; padding: 26px 24px;
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */

.menu-btn {
  display: none; border: 0; background: transparent; color: #fff;
  font-size: 22px; padding: 4px 8px; margin-right: 4px; cursor: pointer;
}
.side-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 49;
}
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .hide-mobile { display: none; }

  .side {
    position: fixed; top: 0; left: -260px; width: 250px; height: 100%;
    z-index: 50; background: var(--white); border-right: 1px solid var(--line);
    padding: 16px 12px; transition: left .25s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.15); overflow-y: auto;
  }
  body.side-open .side { left: 0; }
  body.side-open .side-backdrop { display: block; }

  .topbar { gap: 10px; padding: 0 12px; }
  .lens a { padding: 5px 10px; font-size: 11.5px; }
  .whoami { gap: 6px; font-size: 11.5px; }
  .whoami div br ~ span { font-size: 10px; }

  .main { padding: 18px 14px; }
  .form-grid, .kv, .identity, .type-select { grid-template-columns: 1fr; }
  .kpis, .filters { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .idea-row { flex-direction: column; align-items: flex-start; }
  .pipeline { margin-top: 10px; }
  .bar-row { grid-template-columns: 100px 1fr 30px; }
  .fn .fl { width: 100px; }
  .col { min-width: 200px; width: 200px; }

  .pub-hero { padding: 40px 20px; }
  .pub-hero-inner { flex-direction: column; text-align: center; gap: 18px; }
  .pub-hero-text { text-align: center; }
  .hero-logo-animado { width: min(55vw, 230px); height: auto; }
  .hero-logo-animado svg { width: 100%; height: auto; }
  .hero-wordmark { font-size: 32px; }
  .pub-cta-row { justify-content: center; }
  .pub-section { padding: 40px 18px; }
  .steps-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 480px) {
  .topbar { height: 52px; }
  .brand-ide { font-size: 14px; }
  .brand-acao { font-size: 16px; }
  .lens { display: none; }
  .whoami .avatar { width: 26px; height: 26px; font-size: 10px; }
  .whoami > div { display: none; }

  .main { padding: 14px 10px; }
  .page-h h1 { font-size: 18px; }
  .kpis, .filters { grid-template-columns: 1fr; }
  .kpi { padding: 12px 14px; }
  .kpi .n { font-size: 24px; }
  .idea-row { padding: 12px 14px; }
  .card-pad { padding: 14px; }
  .btn { width: 100%; }
  .col { min-width: 85vw; width: 85vw; }
  .login-card { padding: 24px 20px 20px; }
  .lg-icon { width: 60px; height: 90px; }
  .lg-acao { font-size: 32px; }
  .lg-ide { font-size: 18px; }

  .pub-nav { padding: 10px 16px; }
  .hero-wordmark { font-size: 26px; }
  .pub-hero p.lead { font-size: 14px; }
  .hero-logo-animado { width: min(60vw, 180px); height: auto; }
  .hero-logo-animado svg { width: 100%; height: auto; }
  .pub-cta-row { flex-direction: column; align-items: stretch; }
  .pub-cta-row .btn { width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
