/* Radar COMMIT — folha de estilo do aplicativo.
   Fontes servidas localmente (OFL-1.1, ver public/fonts/); nenhuma requisição a terceiros. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/outfit-latin-800-normal.woff2") format("woff2");
}
:root {
  --bg: #0e1742;
  --ink: #f8f7ff;
  --muted: #c6bee5;
  --green: #8e66ff;
  --deep: #1d103d;
  --mint: #352266;
  --stroke: #7855ae80;
  --amber: #f041dc;
  --white: #22184e;
  --shadow: 0 14px 38px #06071d60;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3,
.brand {
  font-family: Outfit, Arial, sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  background: var(--deep);
  color: #e7eee9;
  padding: 28px 17px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 12px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.7px;
}
.brand-mark {
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #bfe8a4;
  color: #173121;
  width: 39px;
  height: 39px;
  font-size: 22px;
}
.brand small {
  display: block;
  font: 500 10px "DM Sans";
  letter-spacing: 1.9px;
  color: #b8c8bd;
  margin-top: 2px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  border: 0;
  background: transparent;
  color: #b7cac0;
  text-align: left;
  border-radius: 11px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
}
.nav button.active,
.nav button:hover {
  color: #fff;
  background: #325341;
}
.nav button span {
  font-size: 17px;
  width: 19px;
}
.sidefoot {
  margin-top: auto;
  border: 1px solid #537363;
  border-radius: 13px;
  padding: 15px;
  font-size: 12px;
  line-height: 1.6;
  color: #c4d6ca;
}
.sidefoot strong {
  display: block;
  color: white;
  margin-bottom: 5px;
}
.main {
  padding: 35px clamp(20px, 4vw, 65px) 65px;
  max-width: 1580px;
  width: 100%;
  margin: auto;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 31px;
}
.eyebrow {
  font-weight: 800;
  letter-spacing: 2.4px;
  font-size: 10px;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 9px;
}
.top h1 {
  font-size: clamp(29px, 3.1vw, 42px);
  letter-spacing: -1.6px;
  margin: 0;
  line-height: 1.07;
}
.top p {
  color: var(--muted);
  font-size: 14px;
  margin: 11px 0 0;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.btn {
  border: 1px solid var(--stroke);
  border-radius: 11px;
  padding: 11px 16px;
  background: #fff;
  font-weight: 700;
  color: var(--deep);
  font-size: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.btn.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn.dark {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}
.btn:hover {
  filter: brightness(0.96);
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.hero {
  border-radius: 20px;
  background: linear-gradient(115deg, #183b2a 0%, #1b583f 72%, #326b47 100%);
  color: #fff;
  padding: 32px 34px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero:after {
  content: "✦";
  position: absolute;
  font-size: 280px;
  right: 35px;
  top: -95px;
  color: #ffffff10;
}
.hero div {
  position: relative;
  z-index: 1;
}
.hero .pill {
  color: #dff9ce;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
}
.hero h2 {
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.15;
  max-width: 620px;
  margin: 14px 0;
}
.hero p {
  font-size: 13px;
  line-height: 1.7;
  color: #d5e4d9;
  max-width: 570px;
  margin: 0;
}
.hero button {
  margin-top: 21px;
  background: #def2cb;
  border: 0;
  color: #153523;
}
.overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 22px 0 29px;
}
.metric,
.panel,
.tile {
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.metric {
  padding: 20px;
}
.metric .lbl {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.metric strong {
  display: block;
  font: 700 32px Outfit;
  margin: 9px 0 3px;
}
.metric .hint {
  font-size: 11px;
  color: var(--green);
}
.sectiontop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 14px;
}
.sectiontop h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 0;
}
.sectiontop small {
  font-size: 12px;
  color: var(--muted);
}
.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.tile {
  padding: 20px;
  text-align: left;
  transition: transform 0.15s;
}
.tile:hover {
  transform: translateY(-2px);
}
.tile .symbol {
  background: var(--mint);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 19px;
}
.tile h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.tile p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
}
.panel {
  padding: 23px;
}
.panel h2 {
  font-size: 19px;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.panel .sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 19px;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}
.field label {
  font-size: 12px;
  font-weight: 800;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d7dfd8;
  background: #fcfdfb;
  padding: 12px 13px;
  border-radius: 10px;
  outline-color: #58a677;
  color: var(--ink);
  font-size: 13px;
}
.field textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.5;
}
.field .micro {
  font-size: 11px;
  color: var(--muted);
}
.row {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  align-items: center;
}
.row .field {
  flex: 1;
  min-width: 145px;
}
.result {
  background: #f6f9f4;
  border: 1px solid #d9e7d9;
  border-radius: 14px;
  padding: 19px;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.75;
  min-height: 160px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.record {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  background: #fff;
}
.record b {
  font-size: 14px;
}
.record .metadata {
  color: var(--muted);
  font-size: 11px;
  margin: 6px 0;
}
.record p {
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
}
.record .recordactions {
  display: flex;
  gap: 11px;
  margin-top: 11px;
}
.recordactions button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}
.status {
  display: inline-block;
  padding: 4px 8px;
  background: #e4f0e5;
  border-radius: 8px;
  font-size: 10px;
  color: var(--green);
  font-weight: 800;
}
.empty {
  border: 1px dashed #b9cabd;
  padding: 35px 18px;
  text-align: center;
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
}
.notice {
  border: 1px solid #eeddb0;
  background: #fff9eb;
  color: #795a1d;
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  margin: 14px 0;
}
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.column {
  background: #eaf0e9;
  border-radius: 14px;
  padding: 12px;
  min-height: 280px;
}
.column h3 {
  font-size: 13px;
  margin: 4px 8px 16px;
}
.task {
  background: white;
  border-radius: 11px;
  padding: 13px;
  margin-bottom: 10px;
  border: 1px solid #dce5db;
}
.task b {
  font-size: 13px;
}
.task p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0;
}
.task .tag {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}
.footnote {
  font-size: 11px;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.6;
}
.hidden {
  display: none !important;
}
.settings-list {
  display: grid;
  gap: 10px;
}
.settings-list .record {
  margin: 0;
}
.settingchip {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}
.mobilebar {
  display: none;
}
@media (max-width: 1000px) {
  .overview {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick {
    grid-template-columns: repeat(2, 1fr);
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .side {
    width: 218px;
  }
  .shell {
    grid-template-columns: 218px minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .side {
    height: auto;
    position: static;
    padding: 13px;
  }
  .brand {
    font-size: 18px;
  }
  .sidefoot {
    display: none;
  }
  .nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .nav button {
    white-space: nowrap;
    font-size: 11px;
    padding: 9px 11px;
  }
  .nav button span {
    display: none;
  }
  .main {
    padding: 23px 16px 45px;
  }
  .top {
    align-items: flex-start;
  }
  .actions {
    display: none;
  }
  .hero {
    padding: 25px;
  }
  .hero:after {
    right: -60px;
  }
  .overview,
  .quick,
  .board {
    grid-template-columns: 1fr;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 25px;
  }
}
.newsbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.newsfilters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.newsfilters button {
  border: 1px solid var(--stroke);
  border-radius: 9px;
  padding: 8px 11px;
  background: #fff;
  color: var(--deep);
  font-weight: 700;
  font-size: 12px;
}
.newsfilters button.selected {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}
.newsgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.newsitem {
  background: #fff;
  border: 1px solid var(--stroke);
  padding: 18px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsitem h3 {
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
}
.newsitem .source {
  color: var(--muted);
  font-size: 11px;
}
.newsitem .newsactions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}
.newsitem a {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.newsitem button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}
.newsitem .topic {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.newsbanner {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.newsbanner.error {
  color: #986023;
}
@media (max-width: 720px) {
  .newsgrid {
    grid-template-columns: 1fr;
  }
}

/* Identidade visual COMMIT (tema escuro) */
html {
  background: #0c1642;
}
body {
  background: radial-gradient(ellipse at 3% 87%, #a12a9566, transparent 44%),
    radial-gradient(ellipse at 83% 0%, #1763ad66, transparent 54%),
    linear-gradient(115deg, #241039, #151646 58%, #071c52);
  background-attachment: fixed;
  color: var(--ink);
}
.side {
  background: linear-gradient(180deg, #21103bef, #101c4aee);
  border-right: 1px solid #a65bea50;
}
.brand {
  font-style: italic;
  color: #fff;
  letter-spacing: -0.5px;
}
.brand-mark {
  background: linear-gradient(130deg, #06d9e7, #bc46f2);
  color: white;
  border-radius: 50%;
  box-shadow: 0 0 18px #b548ea88;
}
.brand small {
  color: #b6a7e3;
}
.nav button {
  color: #c9c2f2;
}
.nav button.active,
.nav button:hover {
  background: linear-gradient(100deg, #6a3ad0, #3a43ab);
  box-shadow: inset 0 0 0 1px #bb8afa77;
}
.sidefoot {
  border-color: #865bc0;
  color: #d5c6f4;
}
.sidefoot strong {
  color: #fff;
}
.eyebrow {
  color: #63e4f8;
}
.top p,
.sectiontop small,
.metric .lbl,
.panel .sub,
.tile p,
.record .metadata,
.record p,
.muted,
.small,
.footnote,
.newsitem .source {
  color: #c6bee5;
}
.top h1,
.sectiontop h2,
.panel h2,
.tile h3 {
  color: #fff;
}
.hero {
  background: radial-gradient(circle at 22% 90%, #b3318e80, transparent 40%),
    radial-gradient(circle at 78% 10%, #2a7dc68c, transparent 50%), linear-gradient(115deg, #421561, #142758);
  border: 1px solid #a95bf2aa;
  box-shadow: 0 18px 50px #090d2b99;
  min-height: 248px;
}
.hero:after {
  content: "◉";
  color: #b558f522;
  font-size: 340px;
  right: 12px;
  top: -95px;
}
.hero .pill {
  color: #7cedf7;
}
.hero p {
  color: #e7dbff;
}
.hero button,
.btn.primary {
  background: linear-gradient(100deg, #00cfdf, #7a4bff 55%, #ee41dd);
  border: 1px solid #89d9f9;
  color: white;
  box-shadow: 0 0 16px #b34af455;
}
.btn {
  background: #2e245a;
  color: #fff;
  border-color: #7654af;
}
.btn.dark {
  background: #32205c;
  border-color: #a64be4;
  color: white;
}
.metric,
.panel,
.tile,
.newsitem {
  background: linear-gradient(142deg, #3a216cbb, #15265dcc);
  border: 1px solid #a067e488;
  box-shadow: 0 12px 28px #030b2c55;
}
.metric .hint,
.recordactions button,
.newsitem a,
.newsitem button,
.settingchip {
  color: #71e6fd;
}
.metric strong {
  color: #fff;
}
.tile .symbol {
  background: linear-gradient(135deg, #a141d8, #2864b8);
  box-shadow: 0 0 16px #b748e855;
}
.tile:hover {
  border-color: #5bebfe;
}
.field label {
  color: #f6efff;
}
.field input,
.field select,
.field textarea {
  background: #100f35;
  color: #f6f1ff;
  border-color: #7759b7;
  outline-color: #48d4ed;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #9f96c2;
}
.result,
.record,
.task,
.newsfilters button {
  background: #1b1a49;
  color: #f6efff;
  border-color: #65549e;
}
.notice {
  background: #3c2a50;
  color: #f9e5b0;
  border-color: #88648e;
}
.status {
  background: #50347a;
  color: #85e9ff;
}
.empty {
  border-color: #8063a1;
  color: #c3b8df;
}
.column {
  background: #1c1d4c;
}
.task p {
  color: #d3c8f4;
}
.newsfilters button.selected {
  background: linear-gradient(100deg, #7044d7, #3960b5);
  color: #fff;
  border-color: #b87cff;
}
.newsitem .topic {
  color: #6ce4fa;
}
.newsbanner {
  color: #c4b9e0;
}
.newsbanner.error {
  color: #ffd18a;
}
.record a {
  color: #79e5f4;
}
.record .metadata {
  color: #bcb4d5;
}
.newsitem h3 {
  color: #fff;
}
.status {
  color: #80eaff;
}
.sidefoot {
  background: #27134488;
}
@media (max-width: 700px) {
  .side {
    border-bottom: 1px solid #a65bea50;
  }
  .nav {
    gap: 4px;
  }
  .hero {
    min-height: auto;
  }
}

/* Revisao doutrinaria COMMIT */
.doctrine-card {
  border: 1px solid #aa73ef;
  background: linear-gradient(140deg, #30205d, #16285c);
  border-radius: 15px;
  padding: 17px;
  margin: 16px 0;
  color: #f7f5ff;
}
.doctrine-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.doctrine-card p {
  font-size: 12px;
  line-height: 1.6;
  color: #e0d7fb;
  margin-bottom: 10px;
}
.doctrine-card .review-state {
  padding: 11px 12px;
  border-radius: 10px;
  background: #38274f;
  border: 1px solid #a379ba;
  font-size: 12px;
  font-weight: 700;
  margin: 12px 0;
  color: #fff;
}
.doctrine-card .review-state.alert {
  background: #562a51;
  border-color: #ed8caa;
}
.doctrine-card .review-state.ready {
  background: #164e53;
  border-color: #43d6d0;
}
.doctrine-card label.review-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0;
  color: #fff;
}
.doctrine-card .review-check input {
  margin-top: 3px;
  accent-color: #8ddfed;
}
.doctrine-card .finding {
  padding: 10px 0;
  border-top: 1px solid #ffffff25;
  font-size: 12px;
  line-height: 1.6;
}
.doctrine-card .finding strong {
  display: block;
  color: #ffd6e6;
  margin-bottom: 3px;
}
.doctrine-card a {
  color: #91e8ff;
}
.doctrine-card .footnote {
  font-size: 11px;
  color: #d2c9e9;
}
.doctrine-card button[disabled],
#copyRoteiro[disabled],
#salvarRoteiro[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Utilitários que substituem os atributos style= do protótipo: a CSP não permite estilo embutido. */
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-13 { margin-top: 13px; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.record--intro { margin: 14px 0 16px; }
.small-link { font-size: 12px; }
.row--between { justify-content: space-between; }
.row--start { align-items: start; }
.select-compact { border: 1px solid var(--stroke); border-radius: 8px; padding: 7px; font-size: 12px; }
.overview--two { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.btn--file { cursor: pointer; }
.site-footer { padding-top: 25px; text-align: center; }
.status-select { width: 100%; border: 1px solid #dce6de; border-radius: 7px; padding: 6px; font-size: 11px; }
.empty-col { padding: 10px; }
.toast {
  position: fixed;
  z-index: 9999;
  bottom: 18px;
  right: 18px;
  background: #163f2e;
  color: white;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 12px;
  box-shadow: 0 10px 30px #0003;
}

/* Fase 1: login e equipe */
[hidden] { display: none !important; }
.is-loading .shell { visibility: hidden; }
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-card {
  max-width: 440px;
  width: 100%;
  text-align: center;
  background: linear-gradient(142deg, #3a216cbb, #15265dcc);
  border: 1px solid #a067e488;
  border-radius: 18px;
  padding: 32px 24px;
  box-shadow: 0 12px 28px #030b2c55;
}
.auth-card .brand-mark { margin: 0 auto 12px; }
.auth-card .row { justify-content: center; margin: 18px 0; }
.userchip { align-self: center; font-size: 13px; color: var(--muted); margin-right: 4px; }
