@font-face {
  font-family: Manrope;
  src: url('/manrope.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --noite: #0b1030;
  --noite-2: #141b4a;
  --navy: #2f2d5e;
  --sol: #ec8807;
  --ouro: #ffc565;
  --eletrico: #2f7bff;
  --led: #3f6734;
  --dia: #f5f6fa;
  --papel: #fff;
  --tinta: #14162b;
  --tinta-2: #474b6b;
  --sobre-noite: #e9ecfa;
  --sobre-noite-2: #aeb5e0;
  --line: #e2e5f1;
  font: 15px/1.55 Manrope, system-ui, sans-serif;
  color: var(--tinta);
  background: var(--dia);
  font-variant-numeric: tabular-nums;
}

* { box-sizing: border-box }
body { margin: 0 }
a { color: var(--navy); text-underline-offset: .22em }
a:hover { text-decoration-thickness: 2px }
:focus-visible { outline: 2px solid var(--sol); outline-offset: 3px }
h1, h2, p { margin: 0 }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.036em; line-height: 1.16; font-weight: 750 }
h2 { font-size: 1.18rem; letter-spacing: -.025em; margin-bottom: 1rem }
p { color: var(--tinta-2); overflow-wrap: anywhere }
small { display: block }
.shell { min-height: 100vh; display: grid; grid-template-columns: 228px minmax(0, 1fr) }
.sidebar { display: flex; flex-direction: column; gap: 2.4rem; padding: 1.7rem 1.1rem; background: var(--noite); color: var(--sobre-noite) }
.brand { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; width: fit-content }
.brand strong { display: block; font-size: 1.55rem; line-height: 1; letter-spacing: -.05em }
.brand small { margin-top: .3rem; font-size: .65rem; font-weight: 800; letter-spacing: .12em }
nav { display: grid; gap: .35rem }
:where(#modules) a { padding: .7rem .85rem; border-radius: 10px; color: var(--sobre-noite); text-decoration: none; font-size: .91rem; font-weight: 700 }
#modules a:hover, #modules a[aria-current] { background: var(--noite-2) }
#modules a[aria-current] { box-shadow: inset 3px 0 var(--sol) }
.account { margin-top: auto; border-top: 1px solid #ffffff25; padding: 1rem .4rem 0 }
.account small { color: var(--sobre-noite-2) }
.account button { margin-top: .65rem; background: transparent; border-color: #ffffff40; color: var(--sobre-noite) }
main { width: 100%; max-width: 1560px; padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 3rem; min-width: 0 }
.top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 2rem; color: var(--tinta-2); font-size: .86rem; font-weight: 700 }
.pilot { background: #ececf8; color: var(--navy); border-radius: 8px; padding: .28rem .7rem; white-space: nowrap }
.heading { margin-bottom: 1.5rem }
.heading p { margin-top: .65rem }
.panel, .metric { border: 1px solid var(--line); border-radius: 12px; background: var(--papel); padding: clamp(1rem, 2vw, 1.5rem); min-width: 0 }
.panel + .panel { margin-top: 1rem }
.panel > p { margin-bottom: .8rem }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .85rem; margin: 1rem 0 1.6rem }
.metric { text-decoration: none; color: var(--tinta); border-top: 3px solid var(--eletrico) }
.metric:first-child { border-top-color: var(--sol) }
.metric:hover { background: #fafaff }
.metric span { font-size: .84rem; color: var(--tinta-2); font-weight: 700 }
.metric strong { display: block; margin-top: .4rem; font-size: clamp(1.05rem,2.4vw,1.75rem); letter-spacing: -.045em; overflow-wrap: anywhere }
.filter { display: flex; align-items: end; gap: .65rem; margin-bottom: 1rem }
.filter label { width: min(100%, 380px) }
button, input, select, textarea { font: inherit }
button { display: inline-block; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--papel); color: var(--navy); font-weight: 800; cursor: pointer }
button:hover { border-color: var(--navy) }
.primary { background: var(--ouro); color: var(--noite); border-color: #d77a00 }
label { display: grid; gap: .3rem; font-size: .86rem; font-weight: 800; min-width: 0 }
input, select, textarea { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #c5c9db; border-radius: 10px; padding: .52rem .65rem; background: var(--papel); color: var(--tinta) }
textarea { min-height: 100px; resize: vertical }
.editor { display: grid; gap: .8rem; justify-items: start; margin: .65rem 0 }
.editor > label, .fields { width: 100% }
.fields { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit,minmax(min(100%, 210px),1fr)) }
details { border: 1px solid var(--line); border-radius: 10px; padding: .15rem .8rem; margin: .6rem 0 }
summary { padding: .55rem 0; cursor: pointer; font-weight: 800; color: var(--navy) }
.table-wrap { overflow-x: auto; margin-top: .7rem }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem }
th, td { border-bottom: 1px solid var(--line); vertical-align: top; padding: .65rem .6rem; overflow-wrap: anywhere }
th { background: var(--dia); font-size: .79rem; white-space: nowrap; color: var(--tinta-2) }
td { min-width: 5rem }
time { white-space: nowrap }
td a { font-weight: 800 }
.version { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem }
.version-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem }
.terms { white-space: pre-wrap; margin: .7rem 0 }
.status { display: inline-block; padding: .18rem .55rem; border-radius: 8px; background: #eeeffa; color: var(--navy); font-weight: 800; font-size: .76rem }
.status.revisao { background: #fff2d6; color: #764300 }
.status.aprovado, .status.ganho { background: #e9f3e5; color: var(--led) }
.status.ajustes, .status.perdido { background: #fce9eb; color: #9b2032 }
.empty { padding: .65rem 0 }
.back { margin-bottom: .8rem }
.success, .error { padding: .75rem 1rem; border-radius: 10px; margin: 0 0 1rem }
.success { background: #e9f3e5; color: var(--led) }
.error { background: #fce9eb; color: #9b2032 }
.skip { position: absolute; left: -10000px }
.skip:focus { left: 1rem; top: 1rem; background: white; z-index: 1; padding: .5rem }

@media (max-width: 980px) {
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)) }
}
@media (max-width: 680px) {
  .shell { display: block }
  .sidebar { gap: .8rem; padding: 1rem }
  nav { display: flex; flex-wrap: wrap; gap: .25rem }
  nav a { min-height: 44px; padding: .65rem .6rem }
  table { min-width: 430px }
  .account { display: flex; align-items: center; gap: .55rem; padding: .5rem .25rem 0 }
  .account form { margin-left: auto }
  .account button { margin: 0 }
  .top { margin-bottom: 1.3rem }
}

.institution { width: auto; height: 32px; object-fit: contain }

/* Capa e navegação inspiradas na identidade do SCB-Con27. */
:root {
  --abismo: #070b26;
  --indigo: #3a3fb8;
}
body { background: var(--workspace) }
.shell { grid-template-columns: 254px minmax(0, 1fr) }
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  gap: 1.5rem;
  background: var(--papel);
  color: var(--navy);
  border-right: 1px solid var(--line);
  scrollbar-color: #c5c9db var(--papel);
}
.sidebar .brand { gap: .9rem }
.sidebar .brand img { width: min(144px, 100%); height: auto }
.sidebar nav { gap: .25rem }
.sidebar nav > a { margin-bottom: .2rem }
.nav-group { margin: 0; padding: 0; border: 0 }
.nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .65rem .85rem;
  min-height: 44px;
  color: var(--navy);
  border-radius: 8px;
  list-style: none;
  font-size: .91rem;
}
.nav-group summary::-webkit-details-marker { display: none }
.nav-group summary::after {
  content: '';
  width: .42rem;
  height: .42rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin: 0 .15rem .18rem .25rem;
}
.nav-group[open] summary::after { transform: rotate(225deg); margin-bottom: -.18rem }
.nav-group ul { list-style: none; padding: .25rem 0 .25rem .6rem; margin: 0 }
.nav-group li a, .planned { padding: .55rem .7rem; font-size: .84rem }
.nav-group li a { display: block }

#modules > a, #modules summary {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--navy);
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 700;
}
#modules > a::before, #modules summary::before {
  content: '';
  width: .43rem;
  height: .43rem;
  border-radius: 50%;
  background: #b9bdd3;
  flex: none;
}
#modules summary::after { margin-left: auto }
#modules > a:hover, #modules summary:hover, #modules details[open] summary { background: var(--dia) }
#modules > a[aria-current], #modules .current-group summary {
  color: white;
  border-color: transparent;
  background: #222a50;
}
#modules > a[aria-current]::before, #modules .current-group summary::before {
  background: #ffc65c;
}
#modules li a { color: var(--navy) }
#modules li a:hover, #modules li a[aria-current] { background: #eff0f9 }
#modules li a[aria-current] { box-shadow: inset 2px 0 var(--sol) }
.planned { display: block; color: var(--tinta-2) }
.planned small { font-size: .68rem; color: var(--tinta-2) }
.account { border-color: var(--line) }
.account small { color: var(--tinta-2) }
.account button { background: white; color: var(--navy); border-color: var(--line) }

button.primary { border-radius: 8px }
.metric { border-top: 1px solid var(--line); background: var(--papel) }
.metric:first-child { border-top-color: var(--line) }
.metric strong { color: #1b2470 }
@media (max-width: 800px) {
  .shell { display: block }
  .sidebar { position: static; height: auto; gap: .8rem; padding: .7rem 1rem; border: 0; border-bottom: 1px solid var(--line) }
}

.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem }
.menu-toggle { display: none }
@media (max-width: 800px) {
  .menu-toggle:not([hidden]) {
    display: inline-block;
    color: var(--navy);
    border-color: var(--line);
    background: transparent;
    border-radius: 8px;
  }
  .sidebar.drawer-ready .navigation-content { display: none }
  main > .top { margin-bottom: .8rem; padding-bottom: .6rem }
}

.page-actions, .journey-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: 0 0 1rem }
.action-link { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid #d77a00; border-radius: 8px; padding: .5rem 1rem; font-weight: 750; text-decoration: none }
.action-link:hover { text-decoration: underline }
.edition-action { margin-top: 1rem }
.journey { max-width: 800px }
.journey-progress { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .4rem; margin: 0 0 1rem; padding: 0 }
.journey-progress li { display: grid; align-content: start; gap: .35rem; border-top: 3px solid var(--line); color: var(--tinta-2); padding-top: .55rem; font-size: .79rem; font-weight: 750 }
.journey-progress li[aria-current] { border-color: var(--sol); color: var(--noite) }
.journey-progress span { font-weight: 800; color: var(--navy) }
.journey-step { color: #9a5b00; font-weight: 800; font-size: .82rem }
.journey-fields { display: grid; gap: 1rem; width: 100% }
.journey-review { border-bottom: 1px solid var(--line); padding-bottom: .6rem }
.journey-review h3 { margin: 0; font-size: 1rem }
.journey-review dl { display: grid; gap: .5rem; margin: .65rem 0 }
.journey-review dt { font-size: .83rem; font-weight: 800; color: var(--tinta-2) }
.journey-review dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere }
.journey-actions { margin: .6rem 0 0 }
.journey-discard { margin-top: .85rem }

main > .top { justify-content: flex-end }
.navigation-content { display: flex; flex-direction: column; gap: 1.1rem; flex: 1 }
#navigation-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 370px);
  max-width: none;
  max-height: none;
  height: 100dvh;
  margin: 0;
  padding: 0 1rem 1rem;
  border: 0;
  color: var(--navy);
  background: var(--papel);
  overscroll-behavior: contain;
}
#navigation-drawer::backdrop { background: #070b268c }
body:has(#navigation-drawer[open]) { overflow: hidden }
.drawer-heading { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; background: var(--papel); padding: .85rem .2rem; margin-bottom: .65rem; border-bottom: 1px solid var(--line) }
.drawer-heading h2 { margin: 0 }
.drawer-heading button { border-radius: 8px }
#navigation-drawer nav { display: grid; gap: .45rem }
#navigation-drawer .nav-group ul { padding: .1rem 0 .4rem .7rem }
#navigation-drawer .nav-group li a, #navigation-drawer .planned { min-height: 44px; padding: .66rem .72rem }
#navigation-drawer .planned { display: flex; align-items: center; justify-content: space-between; gap: .5rem }
#navigation-drawer .planned small { flex-shrink: 0 }
#navigation-drawer .account { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .65rem .25rem 0 }
#navigation-drawer .account form { margin-left: auto }
#navigation-drawer .account button { margin: 0 }

/* Navegação em azul noturno, com a mesma hierarquia de pílulas. */
.sidebar, #navigation-drawer {
  color: var(--sobre-noite);
  background: var(--noite);
  border-color: #ffffff24;
}
.sidebar { scrollbar-color: #53598b var(--noite) }
#modules > a, #modules summary { color: var(--sobre-noite); border-color: #ffffff29 }
#modules > a:hover, #modules summary:hover, #modules details[open] summary { background: #ffffff12 }
#modules > a[aria-current], #modules .current-group summary { background: #222a50 }
#modules li a { color: var(--sobre-noite) }
#modules li a:hover, #modules li a[aria-current] { background: #ffffff12 }
.planned, .planned small, .account small { color: var(--sobre-noite-2) }
.account, .drawer-heading { border-color: #ffffff29 }
.drawer-heading { background: var(--noite) }
.account button, .drawer-heading button, .menu-toggle:not([hidden]) {
  color: var(--sobre-noite);
  background: transparent;
  border-color: #ffffff50;
}

.board-toolbar, .board-controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .7rem }
.board-toolbar { margin-bottom: 1.2rem }
.board-toolbar .filter { margin: 0; flex: 1 1 230px; max-width: 440px }
.view-switch { display: inline-flex; align-items: center; gap: .2rem; background: var(--papel); border: 1px solid var(--line); border-radius: 8px; padding: .2rem }
.view-switch a, .deal-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .8rem; text-decoration: none; font-weight: 800 }
.view-switch a[aria-current] { background: var(--navy); color: white; box-shadow: none }
.view-switch a:hover, .deal-nav a:hover { text-decoration: underline }
.board-scroll { overflow-x: auto; padding: .15rem .15rem .8rem; border-radius: 12px }
.board { display: grid; grid-template-columns: repeat(5,minmax(205px,1fr)); gap: .75rem }
.board-lane { background: #edf0fa; border: 1px solid var(--line); border-top: 3px solid #aeb5e0; border-radius: 14px; padding: .75rem; min-height: 335px }
.board-lane[data-stage="negociacao"] { border-top-color: #747cc5 }
.board-lane[data-stage="proposta"] { border-top-color: var(--sol) }
.board-lane[data-stage="ganho"] { border-top-color: #649356 }
.board-lane[data-stage="perdido"] { border-top-color: #b66c79 }
.board-lane h2 { display: flex; justify-content: space-between; align-items: center; gap: .3rem; font-size: .95rem; margin-bottom: .75rem }
.board-lane h2 span { background: white; border-radius: 8px; min-width: 1.65rem; padding: .15rem .4rem; text-align: center; font-size: .76rem }
.board-lane .empty { font-size: .83rem }
.board-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: .75rem; margin-bottom: .55rem; overflow-wrap: anywhere }
.board-card:target { outline: 2px solid var(--sol); outline-offset: -1px }
.board-card h3 { margin: 0 0 .2rem; line-height: 1.3; font-size: .96rem }
.board-card p { font-size: .8rem }
.board-edition { margin-bottom: .35rem }
.board-value { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .65rem 0 }
.board-value strong { font-size: .91rem; color: var(--navy) }
.board-card .board-next { padding-top: .55rem; border-top: 1px solid var(--line) }
.board-card details { margin: .55rem 0 0; padding: 0; border: 0 }
.board-card summary { font-size: .78rem; padding: .35rem 0 }
.deal-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem }
.deal-summary .panel { margin: 0 }
.deal-summary h2 { margin-bottom: .4rem; font-size: .93rem; color: var(--tinta-2) }
.deal-summary strong { font-size: clamp(1rem,2.6vw,1.5rem); color: var(--navy); overflow-wrap: anywhere }
.deal-summary a { display: inline-block; margin-top: .55rem; font-size: .82rem; font-weight: 800 }
.deal-nav { display: flex; flex-wrap: wrap; gap: .25rem; margin: 1rem 0 }
.deal-nav a { border: 1px solid var(--line); background: var(--papel) }
.deal-data { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 0 0 .8rem }
.deal-data dt { font-size: .8rem; color: var(--tinta-2) }
.deal-data dd { margin: 0; font-weight: 800 }
.deal-timeline { list-style: none; padding: 0 0 0 1rem; margin: .85rem 0 0 .4rem; border-left: 1px solid #c5c9db }
.deal-timeline li { position: relative; padding: 0 0 1.1rem }
.deal-timeline li::before { content: ''; position: absolute; top: .42rem; left: -1.26rem; width: .45rem; height: .45rem; border-radius: 50%; background: var(--eletrico) }
.deal-timeline small { color: var(--tinta-2) }
.timeline-next { font-size: .85rem; color: var(--navy); font-weight: 750 }
@media (max-width: 520px) {
  .deal-summary { grid-template-columns: 1fr }
  .board { grid-template-columns: repeat(5,minmax(225px,74vw)) }
}

.summary-numbers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 1rem 0; background: var(--papel); border: 1px solid var(--line); border-radius: 14px }
.summary-numbers div { padding: .75rem 1rem; min-width: 0 }
.summary-numbers div + div { border-left: 1px solid var(--line) }
.summary-numbers dt { color: var(--tinta-2); font-size: .82rem }
.summary-numbers dd { margin: .2rem 0 0; color: var(--navy); font-size: clamp(1rem,2vw,1.4rem); font-weight: 800; overflow-wrap: anywhere }
.executive-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-bottom: 1rem }
.executive-grid .panel { margin: 0 }
.funnel,.work-queue { list-style: none; padding: 0; margin: 1rem 0 }
.funnel li { display: grid; grid-template-columns: 6rem minmax(2rem,1fr) 1.5rem; align-items: center; gap: .15rem .4rem; margin: .65rem 0; font-size: .85rem }
.funnel span { grid-column: 2 / 4; color: var(--tinta-2) }
.funnel meter { width: 100%; height: 1rem }
.funnel meter::-webkit-meter-optimum-value { background: #384775 }
.work-queue li { padding: .55rem 0; border-bottom: 1px solid var(--line) }
.work-queue a { font-weight: 800 }
.work-queue small { color: var(--tinta-2); margin-top: .2rem }
.edition-links { display: flex; flex-wrap: wrap; gap: 1rem; font-weight: 750 }
.filter:has(input[type=search]) { flex-wrap: wrap; max-width: none }
.filter:has(input[type=search]) label { flex: 1 1 170px }
@media(max-width:820px) { .executive-grid { grid-template-columns: 1fr } }
@media(max-width:480px) { .summary-numbers div { padding: .6rem } }

.work-queue { max-height: 18rem; overflow-y: auto }

main:has(.pipeline) { max-width: none; padding-inline: clamp(1rem,2.3vw,2.2rem) }
.pipeline-tools { display: flex; align-items: start; flex-wrap: wrap; justify-content: space-between; gap: .55rem; padding-block: .5rem; border-block: 1px solid var(--line); margin-bottom: 1rem }
.pipeline-tools .view-switch { border: 0; padding: 0; background: transparent }
.pipeline-tools .view-switch a { border-radius: 8px; color: var(--tinta-2); gap: .45rem; min-height: 38px }
.pipeline-tools .view-switch a:hover { background: #e9ebf3 }
.pipeline-tools .view-switch a[aria-current] { color: var(--navy); background: #e4e6f6 }
.pipeline-filter { margin: 0; border: 0; padding: 0; max-width: 100% }
.pipeline-filter summary { font-size: .86rem }
.pipeline-filter .filter { margin: .4rem 0 }
.pipeline .board { grid-template-columns: repeat(5,minmax(210px,1fr)); gap: .8rem; align-items: stretch }
.pipeline .board-scroll { padding-bottom: 1.15rem; scrollbar-color: #bdc2d5 transparent }
.pipeline .board-lane { --accent:#596e97; --wash:#e6edf7; background: #f0f3f8; border: 1px solid #dce1eb; border-radius: 12px; padding: .68rem; min-height: 410px }
.pipeline [data-stage="negociacao"] { --accent:#755bb2; --wash:#eee7fc; background: #f4f1f8 }
.pipeline [data-stage="proposta"] { --accent:#9a5b00; --wash:#ffedcb; background: #faf6ee }
.pipeline [data-stage="ganho"] { --accent:#33745a; --wash:#dff2e7; background: #eff6f2 }
.pipeline [data-stage="perdido"] { --accent:#9c5062; --wash:#f7e4e8; background: #f8f2f4 }
.lane-heading { margin: .1rem .1rem .75rem }
.pipeline .lane-heading h2 { display: inline-flex; gap: .45rem; margin: 0; padding: .2rem .55rem; border-radius: 6px; background: var(--wash); color: var(--accent); font-size: .87rem }
.lane-heading i { background: var(--accent); width: .45rem; height: .45rem; border-radius: 50% }
.pipeline .lane-heading h2 span { padding: 0; min-width: 1rem; background: transparent }
.lane-heading p { font-size: .79rem; margin: .4rem .15rem 0; font-weight: 700 }
.pipeline .board-card { padding: .85rem; border-radius: 10px; cursor: grab }
.pipeline .board-card:hover { border-color: #9aa7bc }
.ticket-owner { display: flex; align-items: center; gap: .45rem }
.pipeline .board-card h3 { font-size: 1.03rem }
.board-card h3 a { color: var(--tinta); text-decoration: none }
.board-card h3 a:hover { text-decoration: underline }
.pipeline .board-edition { font-size: .75rem }
.ticket-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .55rem }
.ticket-tags > span:first-child:not(.status) { border-radius: 5px; background: #f0f1f5; padding: .16rem .4rem; color: var(--tinta-2); font-size: .73rem }
.ticket-task { border-left: 2px solid var(--accent); padding-left: .55rem; margin-bottom: .75rem }
.ticket-task small,.ticket-task b { font-size: .72rem; color: var(--accent) }
.ticket-owner { border-top: 1px solid var(--line); padding-top: .65rem; font-size: .76rem; font-weight: 700 }
.ticket-owner span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e7e6f4; color: var(--navy); font-size: .65rem }
.drop-space { border: 1px dashed #b9becb; border-radius: 9px; min-height: 78px; display: grid; place-content: center; justify-items: center; color: var(--tinta-2); font-size: .76rem }
.pipeline .board-lane.drop-active { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--wash) }
.board-card.moving { opacity: .55 }

.deal-summary { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr) }
.deal-summary .panel { padding: clamp(1rem,2.2vw,1.65rem) }
.deal-summary h2 { margin-bottom: .5rem; font-size: .88rem }
.deal-summary .deal-highlight { background: #141e3c; border-color: var(--noite); color: white }
.deal-highlight h2 { color: #d2d7f2 }
.deal-highlight > strong { display: block; color: white; font-size: clamp(1.85rem,3.2vw,3.1rem); line-height: 1.12; letter-spacing: -.05em }
.deal-state,.task-meta { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; margin: .65rem 0 }
.deal-state { color: #dee2fa; font-size: .83rem }
.deal-summary .action-link { display: inline-flex; align-items: center; border-radius: 8px; margin-top: .3rem; font-size: .87rem }
.next-action > strong { display: block; font-size: clamp(1.16rem,2.2vw,1.65rem); line-height: 1.25; color: var(--tinta) }
.task-meta { color: var(--tinta-2); font-size: .88rem }
.deadline { background: #edf1fa; color: #222c57; border-radius: 6px; padding: .2rem .5rem; font-weight: 750 }
.next-action a { color: var(--navy); border: 1px solid #b5b9cf; border-radius: 8px; padding: .55rem .85rem; text-decoration: none }
.next-action a:hover { background: var(--dia) }
.deal-nav { gap: .4rem; margin-block: 1.15rem .8rem }
.deal-nav a { color: var(--navy); border-radius: 8px; min-height: 44px; padding-inline: 1rem; font-weight: 700 }
.deal-nav a:hover { background: #edf0fa }
.deal-nav a[aria-current] { color: white; background: var(--navy); border-color: var(--navy) }
.version-meta { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 1rem 0 }
.version-meta dt { font-size: .78rem; font-weight: 700; color: var(--tinta-2) }
.version-meta dd { margin: .15rem 0 0; font-weight: 650 }
.version .terms { border-left: 3px solid #bec6e7; padding: .35rem .8rem; color: var(--tinta) }
.version .editor { background: #f5f6fa; padding: .85rem; border-radius: 12px }
@media(max-width:600px) { .deal-summary { grid-template-columns: 1fr } .deal-nav a { padding-inline: .72rem } }

.commercial-fields { display: grid; gap: 1rem; width: min(100%, 800px) }
.commercial-stage { margin: 0; padding: 0; border: 0; min-width: 0 }
.commercial-stage legend { margin-bottom: .5rem; font-size: .87rem; font-weight: 800 }
.commercial-stage div { display: flex; flex-wrap: wrap; gap: .45rem }
.commercial-stage label { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .7rem; border: 1px solid #c5c9db; border-radius: 8px; cursor: pointer }
.commercial-stage label:has(:checked) { background: #edf0fa; border-color: var(--navy); color: var(--navy) }
.commercial-stage input { width: 1rem; min-height: 0; height: 1rem; margin: 0; accent-color: var(--navy) }
.commercial-fields input[readonly] { background: var(--dia) }

.workspace-group { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px }
.workspace-group h3 { margin: 0 0 .65rem }
.workspace-group textarea { min-height: 6rem }
.contract-document { max-width: 900px; margin: 2rem auto; background: white; padding: clamp(1rem,4vw,3rem); border: 1px solid var(--line); border-radius: 14px }
.contract-document h1 { margin: 1rem 0 .35rem }
.contract-document section { margin-top: 1.4rem; padding-top: .8rem; border-top: 1px solid var(--line) }
.contract-document article + article { border-top: 1px solid var(--line) }
.document-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem; margin-bottom: 1rem }
.document-lines { display: grid; gap: .6rem }
.document-lines dt { color: var(--navy); font-weight: 800 }
.document-lines dd { margin: .15rem 0; white-space: pre-wrap; overflow-wrap: anywhere }
@media print {
  body { background: white }
  .contract-document { margin: 0; max-width: none; border: 0; padding: 0 }
  .document-tools { display: none }
  .document-lines > div, .contract-document article { break-inside: avoid }
}

.central-heading { font-size:1.1rem; margin-bottom:.7rem }
.privacy-toggle { border-radius:8px }
.eye-symbol { display:inline-block; position:relative; width:1.05rem; height:.67rem; border:1.5px solid currentColor; border-radius:80% 25%; transform:rotate(45deg); margin-right:.35rem }
.eye-symbol::after { content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:.27rem; height:.27rem; border-radius:50%; background:currentColor }
.privacy-toggle[aria-pressed=true] .eye-symbol { opacity:.55 }
.master-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.7rem }
.master-metrics .metric { min-width:0; border-top:1px solid var(--line); padding:1rem }
.master-metrics strong { overflow-wrap:anywhere }
.central-caption { font-size:.78rem; margin:.65rem 0 1.1rem }
.master-workspace { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:1rem; align-items:start }
.master-assistant { background:var(--papel); color:var(--tinta); border-color:var(--line) }
.master-assistant p,.master-assistant label { color:var(--tinta-2) }
.assistant-form { display:flex; gap:.55rem; align-items:end; flex-wrap:wrap; margin:1rem 0 }
.assistant-form label { flex:1 1 200px }
.assistant-suggestions { display:flex; flex-wrap:wrap; gap:.45rem; margin-top:.85rem }
.assistant-suggestions a { border:1px solid var(--line); padding:.5rem .75rem; border-radius:6px; color:var(--navy); text-decoration:none; font-size:.83rem }
.assistant-suggestions a:hover { background:var(--dia) }
.master-links ul { margin:0; padding:0; list-style:none }
.master-links li + li { border-top:1px solid var(--line) }
.master-links a { position:relative; display:grid; gap:.15rem; padding:.65rem 1.4rem .65rem 0; text-decoration:none }
.master-links a:hover strong { text-decoration:underline }
.master-links small { color:var(--tinta-2) }
.master-links a span { position:absolute; top:.65rem; right:0 }
@media(max-width:780px) { .master-workspace { grid-template-columns:1fr } }
@media(max-width:520px) { .master-metrics { grid-template-columns:repeat(2,minmax(0,1fr)) } }
.master-center [hidden] { display:none }

:root {
  --workspace: #eef1f5;
  --editor-surface: #e7ecf3;
  --field-surface: #f6f8fb;
}
body { background: var(--workspace) }
.panel:has(.editor) { background: #edf2fa; border-color: transparent }
.workspace-group, .version .editor {
  background: var(--editor-surface);
  border-color: transparent;
  padding: clamp(.85rem,2vw,1.35rem);
}
input:not([type=radio]):not([type=checkbox]), textarea, select {
  background: var(--field-surface);
  border: 1px solid transparent;
  box-shadow: inset 0 -1px #c4d0e3;
  transition: background-color .15s, box-shadow .15s;
}
input:not([type=radio]):not([type=checkbox]):hover, textarea:hover, select:hover { background: #f9fbff }
input:not([type=radio]):not([type=checkbox]):focus, textarea:focus, select:focus {
  background: #f9fbff;
  outline: 2px solid #4c589e;
  outline-offset: 1px;
}
.choice-field { min-inline-size: 0; padding: 0; margin: 0; border: 0; max-width: 100% }
.choice-field legend { padding: 0; margin-bottom: .35rem; font-size: .86rem; font-weight: 800 }
.choice-options { display: flex; flex-wrap: wrap; gap: .35rem }
.choice-options label, .commercial-stage label {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px;
  padding: .38rem .65rem; background: var(--field-surface); color: var(--navy);
  border: 1px solid transparent; border-radius: 9px; cursor: pointer; overflow-wrap: anywhere;
}
.choice-options label:hover, .commercial-stage label:hover { background: #fafcff }
.choice-options label:has(:checked), .commercial-stage label:has(:checked) {
  background: #d7dff3; border-color: #8491bf; color: #232653;
}
.choice-options input { width: .95rem; height: .95rem; min-height: 0; margin: 0; flex: none; accent-color: var(--navy) }
.choice-options label:has(:focus-visible), .commercial-stage label:has(:focus-visible) { outline: 2px solid #4c589e; outline-offset: 2px }
.proposal-fields { width: 100%; display: grid; gap: .9rem }
.proposal-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem }
.proposal-fields h4 { margin: .55rem 0 0; color: var(--navy) }
.proposal-columns label { min-width: 0; align-content: start }
.deal-highlight a:not(.primary) { color: #e5e9ff; margin-inline-start: .55rem }
@media(max-width:580px) { .proposal-columns { grid-template-columns: 1fr } }
@media(prefers-reduced-motion:reduce) { input, textarea, select { transition: none } }

.event-exit {
  display:flex; align-items:center; gap:.65rem; min-height:44px; margin-top:-.55rem;
  padding:.45rem .75rem; border:1px solid #ffffff28; border-radius:9px;
  color:#e9edfb; background:#ffffff08; font-size:.85rem; font-weight:700; text-decoration:none;
}
.event-exit:hover { background:#ffffff16; border-color:#ffffff55 }
.event-exit .ui-icon { width:17px; height:17px; color:#ffc565 }
.top .pilot { white-space: normal; overflow-wrap: anywhere; max-width: 100% }


/* Surfaces and alignment shared by the central, event workspace and commercial views. */
#modules > a, #modules summary { border-color: transparent; min-height: 40px; padding-block: .45rem }
#modules > a:not([aria-current])::before, #modules summary::before { background: #848eac }
#modules .current-group summary::before, #modules > a[aria-current]::before { background: var(--ouro) }
main > .top { justify-content: flex-start; margin-bottom: 1.5rem; min-height: 36px }
.top .pilot { padding: 0; background: transparent; color: var(--tinta-2); font-weight: 650 }
.primary:hover { background: #ffd48b; border-color: #a96a14 }
.master-metrics { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden }
.master-metrics .metric { border: 0; border-radius: 0; padding: 1rem 1.25rem }
.master-metrics .metric:hover { background: #f6f8fb }
.master-metrics .metric:focus-visible { outline-offset: -3px }
.master-workspace { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr) }
.master-workspace .panel { margin: 0 }
.master-assistant { border-top: 3px solid #37466c }
.master-links a { min-height: 44px }
.pipeline .board-lane, .pipeline .board-lane[data-stage] { background: #e9edf3; border-color: #dce2eb }
.pipeline .lane-heading h2 { background: transparent; padding-inline: 0; color: var(--tinta); font-size: .92rem }
.pipeline .lane-heading h2 span { color: var(--tinta-2); font-weight: 600 }
.pipeline .board-card { border-color: #d8dfe9; padding: .75rem }
.pipeline .board-card h3 { margin-bottom: .35rem }
.pipeline .board-lane.drop-active { background: var(--wash) }
.drop-space { min-height: 48px; padding: .65rem; border-color: #cbd4e1; justify-items: start; place-content: center start }
.ticket-task { border-color: #b7c3d7 }
.ticket-task small,.ticket-task b { color: var(--tinta-2) }
.deal-summary .action-link,.next-action a,.deal-nav a { border-radius: 8px }
@media (max-width:780px) { .master-workspace { grid-template-columns: 1fr } }
@media (max-width:520px) { .master-metrics .metric { padding: .75rem } }

#proposta.panel { background: var(--papel); border-color: var(--line); padding: clamp(1rem,3vw,2rem) }
#proposta > h2 { font-size: 1.4rem; line-height: 1.3; margin-bottom: .35rem }
#proposta > p { max-width: 68ch; font-size: .95rem; line-height: 1.55 }
#proposta .workspace-group { background: #eef2f8; border: 1px solid #e2e8f0; padding: clamp(1rem,2.5vw,1.75rem); margin-block: 1rem }
#proposta .workspace-group h3 { font-size: 1.1rem; line-height: 1.35; font-weight: 750; margin: 0 0 .85rem }
#proposta .editor { gap: 1.25rem; margin-bottom: 0 }
.proposal-fields { gap: 1.25rem }
.proposal-fields h4 { border-top: 1px solid #d9e1ed; padding-top: 1.25rem; margin-top: .25rem; font-size: 1rem; line-height: 1.35 }
.proposal-columns { gap: 1.15rem }
.proposal-identity { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) }
.proposal-field, .proposal-fields .choice-field legend { font-size: .875rem; line-height: 1.4; font-weight: 700 }
.proposal-field { gap: .4rem }
.proposal-fields .choice-options label { font-size: .875rem; line-height: 1.4 }
.proposal-field input, .proposal-field textarea { font-size: .95rem; line-height: 1.45; font-weight: 500; padding: .65rem .75rem; background: #fafbfd }
.proposal-field input { min-height: 46px }
.proposal-field textarea { min-height: 132px }
.proposal-field input::placeholder, .proposal-field textarea::placeholder { color: #586680; font-weight: 400; opacity: 1 }
.proposal-field--aceite { grid-column: 1 / -1 }
.proposal-collection header { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline }
.proposal-collection header span { color: var(--tinta-2); font-size: .85rem; white-space: nowrap }
.proposal-collection details { background: #f8fafd; padding: .4rem 1rem; border-color: #dce4ef }
.proposal-collection details[open] { padding-bottom: 1rem }
.proposal-item-fields { width: 100% }
@media (min-width: 701px) {
  .proposal-columns label { grid-row: span 2; grid-template-rows: subgrid; row-gap: .4rem }
}
@media (max-width: 700px) {
  .proposal-columns, .proposal-identity { grid-template-columns: minmax(0,1fr) }
}

.nexus-hero {
  display: flex; align-items: center; min-height: 260px; color: #fff; border-radius: 16px; overflow: hidden;
  padding: clamp(1.35rem,4vw,3rem); margin-bottom: 1.35rem;
  background: linear-gradient(90deg,#10162f 3%,#10162ff0 32%,#10162f47 82%),url('/congresso.webp') center 43% / cover,#111831;
}
.nexus-hero-content { width: min(100%, 660px) }
.nexus-hero .hero-label { color:#ffd18a; font-size:.84rem; font-weight:750; margin-bottom:.45rem }
.nexus-hero h2 { font-size:clamp(1.85rem,4vw,3.25rem); line-height:1.08; letter-spacing:-.035em; margin-bottom:.85rem }
.hero-meta,.hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1rem }
.hero-meta { color:#e7ebff; margin-bottom:1rem }
.hero-meta span + span { border-left:1px solid #ffffff60; padding-left:1rem }
.hero-actions a:not(.primary) { color:white; font-weight:700 }
.dashboard-shortcuts { margin-bottom:1.25rem }
.dashboard-shortcuts :is(h2,ul) { margin:0 0 .65rem }
.dashboard-shortcuts ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem }
.dashboard-shortcuts li + li { border-top:0 }
.dashboard-shortcuts a { height:100%; padding:.85rem 2rem .85rem 3.65rem; background:#f8f9fd; border:1px solid var(--line); border-radius:11px }
.dashboard-shortcuts a:hover { background:#fff4e2; border-color:#ebd5b2 }
.dashboard-shortcuts a .shortcut-mark { left:.75rem; top:50%; transform:translateY(-50%); width:2.2rem; height:2.2rem; border-radius:9px; background:#e6e9f7; color:var(--navy); display:grid; place-items:center }
.shortcut-mark::before { content:''; width:.85rem; height:.85rem; border:2px solid currentColor; border-radius:3px }
.shortcut-mark--1::before { border-radius:50% }
.shortcut-mark--2::before { border-radius:50% 50% 3px 3px }
.shortcut-mark--3::before { width:.62rem }
.shortcut-mark--4::before { transform:rotate(45deg) }
.dashboard-shortcuts a .shortcut-arrow { right:.7rem; top:50%; transform:translateY(-50%) }
.dashboard-details { display:grid; grid-template-columns:1fr 1.15fr; gap:1rem; margin-bottom:1rem }
.dashboard-details > .panel { margin:0 }
.dashboard-activity ul,.dashboard-commercial ul { list-style:none; margin:0; padding:0 }
.dashboard-activity li { display:flex; align-items:center; justify-content:space-between; gap:.65rem; padding:.7rem 0; border-bottom:1px solid var(--line) }
.dashboard-activity a { text-decoration:none }
.dashboard-activity a:hover { text-decoration:underline }
.dashboard-activity small { color:var(--tinta-2) }
.dashboard-overview .master-metrics { grid-template-columns:repeat(2,minmax(0,1fr)) }
.dashboard-commercial li { display:grid; grid-template-columns:minmax(5.5rem,1fr) minmax(0,2fr) 2ch; align-items:center; gap:.65rem; margin:.3rem 0 }
.dashboard-commercial meter { width:100%; accent-color:#384775 }
.dashboard-commercial > a { display:inline-block; margin-top:.65rem }
@media(max-width:850px) { .dashboard-details { grid-template-columns:1fr } .dashboard-shortcuts ul { grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media(max-width:520px) { .dashboard-shortcuts ul { grid-template-columns:1fr } .nexus-hero { background-position:center,64% center } }
.account-identity { display:flex; align-items:center; gap:.65rem; min-width:0 }
.account-identity > span { display:grid; place-items:center; width:36px; height:36px; flex:none; border-radius:50%; background:#303a61; color:white; font-weight:750 }
.account-identity div { min-width:0; overflow-wrap:anywhere }
.deal-progress { margin-top:1rem; background:#f8f9fd; border:1px solid var(--line); border-radius:12px; padding:.7rem .85rem }
.deal-progress ol { list-style:none; display:flex; flex-wrap:wrap; gap:.35rem .85rem; margin:0; padding:0 }
.deal-progress li { display:flex; align-items:center; gap:.4rem; color:var(--tinta-2); font-size:.82rem; padding:.25rem .4rem }
.deal-progress li::before { content:''; width:.55rem; height:.55rem; border:1px solid #8792ac; border-radius:50% }
.deal-progress li[aria-current] { background:#ffedce; border-radius:6px; color:#643900; font-weight:750 }
.deal-progress li[aria-current]::before { background:#e38208; border-color:#b76700 }

/* Identity from the SCBA reference boards. */
.ui-icon { flex:none; vertical-align:middle }
.shell { --sidebar-width: 246px; grid-template-columns:var(--sidebar-width) minmax(0,1fr) }
.sidebar, #navigation-drawer {
  background-color:#0f132c;
  background-image:radial-gradient(ellipse at 100% 92%,#472b52 0%,transparent 31%), repeating-radial-gradient(ellipse at 110% 105%,transparent 0 8px,#9188d122 9px 10px,transparent 11px 17px),radial-gradient(ellipse at 105% 97%,#f798334d,transparent 28%);
  background-size:100% 100%,100% 225px,100% 100%;
  background-position:bottom; background-repeat:no-repeat;
}
.sidebar { gap:1.5rem; padding:1.25rem .8rem }
.sidebar .brand { padding-inline:.6rem }
#modules > a::before,#modules summary::before { display:none }
#modules > a,#modules summary { gap:.75rem; min-height:46px; padding-inline:.75rem }
#modules li a { display:flex; align-items:center; gap:.55rem }
#modules li .ui-icon { width:16px;height:16px }
#modules [aria-current] > .ui-icon,#modules .current-group summary > .ui-icon { color:#ffb452 }
main > .nexus-top {
  margin:-1.5rem calc(-1 * clamp(1rem,3vw,2.5rem)) 1.4rem;
  padding:.65rem clamp(1rem,3vw,2.5rem); min-height:64px; gap:.8rem;
  background:#11162f; color:#f3f5ff; display:flex; flex-wrap:wrap;
}
main:has(.pipeline) > .nexus-top { margin-inline:calc(-1 * clamp(1rem,2.3vw,2.2rem)) }
main > .event-top { background:#f7f8fd; color:var(--tinta) }
.top-search { display:flex; align-items:center; gap:.5rem; min-width:0; flex:1 1 220px; max-width:500px; padding:0 .55rem; border:1px solid #657091; border-radius:10px; background:#ffffff0b }
.top-search input[type=search] { background:transparent; box-shadow:none; color:white; min-width:0; width:100%; padding-inline:.1rem }
.top-search input::placeholder { color:#c9d0e4; opacity:1 }
.top-search button { background:#ffffff12; color:white; min-height:28px; padding:.12rem .45rem; border-color:#ffffff30 }
.top-user { margin-left:auto; display:flex; align-items:center; gap:.55rem }
.top-user span { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; color:white; background:#394368 }
.top-user small { font-weight:500 }
.top-divider { height:22px; border-left:1px solid var(--line) }
.nexus-hero { min-height:245px; background-image:linear-gradient(90deg,#10152f 0%,#10152fe8 29%,#10152f21 86%),url('/congresso.webp') }
.nexus-hero h2 em { color:#ffac39; font-style:normal }
.nexus-hero .hero-event-name { color:#e8ebf8; margin:-.35rem 0 .7rem }
.hero-meta .ui-icon { margin-right:.45rem;color:#ffac39 }
.hero-actions a { border-radius:24px }
.hero-actions a:not(.primary) { padding:.55rem 1rem; border:1px solid #d4dcfa95; text-decoration:none }
.dashboard-shortcuts ul { grid-template-columns:repeat(4,minmax(0,1fr)) }
.dashboard-shortcuts a { padding:.75rem 1.5rem .75rem 3.2rem; gap:.15rem; align-content:center }
.dashboard-shortcuts a .shortcut-mark { width:1.95rem; height:1.95rem; left:.65rem }
.shortcut-mark::before { display:none }
.dashboard-shortcuts a .shortcut-emphasis { color:#985200; background:#ffe6c1 }
.dashboard-shortcuts small { font-size:.79rem }
@media(max-width:1200px) { .dashboard-shortcuts ul { grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media(max-width:520px) {
  main > .nexus-top { margin-top:-1.5rem; gap:.5rem }
  .top-user div { display:none }
  .top-search { flex-basis:160px }
  .dashboard-shortcuts ul { grid-template-columns:1fr }
  .nexus-hero { background-image:linear-gradient(90deg,#10152ff7,#10152f9e),url('/congresso.webp') }
}

.sidebar { isolation:isolate; background-image:radial-gradient(ellipse at 95% 94%,#34243e,transparent 46%) }
.sidebar-art { position:absolute; z-index:-1; inset:auto 0 2rem; width:100%; height:220px; pointer-events:none }
.top-user .top-icon { color:inherit; display:grid; place-items:center; width:36px; height:36px; border-radius:50% }
.top-icon:hover { background:#8794bf30 }
.top-user > span { margin-left:.35rem }
.dashboard-activity a { display:flex; align-items:center; gap:.55rem }
.dashboard-activity a .ui-icon { box-sizing:content-box; padding:.45rem; border-radius:8px; background:#eef0f9; color:var(--navy) }
.master-center .master-workspace { grid-template-columns:1fr }
@media(min-width:1290px) { .dashboard-details { grid-template-columns:1fr 1.1fr 1fr } }
@media(max-width:520px) { .top-user .top-icon { width:30px; height:34px } .top-user { gap:.15rem } }
@media(max-width:800px) { .sidebar-art { display:none } }

button.primary, .action-link, .pipeline-filter summary {
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  min-height:44px; padding:.55rem .95rem; border-radius:10px;
  font-size:.88rem; line-height:1.3; font-weight:750; text-decoration:none;
}
button.primary,.action-link.primary { color:#161b32; background:linear-gradient(105deg,#ffad39,#ffc872); border:1px solid #df8f21 }
button.primary:hover,.action-link.primary:hover { background:#ffbd5e; border-color:#b87620 }
.action-link.secondary,.pipeline-filter summary { color:var(--navy); background:#f8faff; border:1px solid #cdd5e7 }
.action-link.secondary:hover,.pipeline-filter summary:hover { background:#e9edf8 }
.hero-actions .action-link { border-radius:24px }
.deal-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.55rem }
.deal-summary .deal-highlight .action-link.secondary { color:#f3f5ff; background:transparent; border-color:#95a1c6; margin-inline-start:0 }
.deal-summary .deal-highlight .action-link.secondary:hover { background:#ffffff18 }
.deal-nav a { gap:.4rem; font-size:.9rem; line-height:1.35; padding-inline:.7rem; background:#f9faff }
.deal-nav a[aria-current] { background:#292953; color:#fff }
.pipeline-filter summary { list-style:none; cursor:pointer }
.pipeline-filter summary::-webkit-details-marker { display:none }
.pipeline-filter[open] summary { background:#e9edf8 }
.pipeline-tools .view-switch a { gap:.45rem; border:1px solid transparent }
.pipeline-tools .view-switch a[aria-current] { border-color:#cbd3e7 }
.action-link .ui-icon,.deal-nav .ui-icon,.view-switch .ui-icon,.pipeline-filter .ui-icon { width:18px;height:18px }

.sidebar-edition { display:grid; gap:.55rem }
.event-switch { padding:.65rem; border:1px solid #ffffff28; border-radius:10px; background:#ffffff08 }
.event-switch label { display:flex; align-items:center; gap:.5rem; font-size:.82rem; margin-bottom:.4rem }
.event-switch-icon { display:grid; place-items:center; width:25px; height:25px; border-radius:7px; background:#ffb45218; color:#ffc565 }
.event-switch-icon .ui-icon { width:16px;height:16px }
.event-switch-control { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.3rem }
.event-switch-control select,.event-switch-control button {
  min-height:40px; border:1px solid #ffffff34; border-radius:7px; color:#f4f5ff; background:#1e2848;
}
.event-switch-control select { padding:.35rem; font-size:.77rem; text-overflow:ellipsis }
.event-switch-control button { padding:.35rem; display:grid; place-items:center; color:#ffc565 }
.event-switch-control button:hover { border-color:#ffc565 }
.event-switch-control .ui-icon { width:17px; height:17px }

.sign-in {
  display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  margin:0; padding:0; max-width:none; min-height:100svh; background:#f1f4f9;
}
.login-visual {
  display:flex; flex-direction:column; justify-content:space-between;
  padding:clamp(1.5rem,4.2vw,4rem);
  background:linear-gradient(180deg,#111631eb,#11163110 43%,#10142bea 92%),url('/congresso.webp') 55% center / cover,#111631;
  color:#fff;
}
.login-visual .brand { color:white }
.login-visual .brand img { width: min(184px, 100%); height: auto }
.login-cover-copy p { color:#eef1ff; font-weight:750; margin:0 0 .5rem }
.login-cover-copy h2 { margin:0; font-size:clamp(2rem,5vw,4.2rem); line-height:1; letter-spacing:-.04em }
.login-cover-copy em { color:#ffbd5d; font-style:normal }
.login-access { display:grid; align-items:center; justify-items:center; padding:clamp(1rem,4vw,3.5rem) }
.login-inner { width:min(100%,430px); border:1px solid #dce3ef; border-radius:16px; padding:clamp(1.25rem,3vw,2rem); background:white }
.login-inner header { margin-bottom:1.4rem }
.login-inner h1 { font-size:clamp(1.7rem,3vw,2.35rem); margin:0 0 .5rem }
.login-inner header p { color:var(--tinta-2); margin:0 }
.demo-login button { width:100%; min-height:50px; justify-content:flex-start }
.demo-login button span:last-child { margin-left:auto }
.login-inner > .login-other { margin:1.1rem 0 0; padding:.9rem 0 0; border-top:1px solid var(--line) }
.login-other input { min-height:48px }
.login-other > button { width:100% }
@media(max-width:740px) {
  .sign-in { grid-template-columns:1fr; grid-template-rows:auto 1fr }
  .login-visual { min-height:210px; gap:2rem; background-position:center,center 35% }
  .login-access { align-items:start }
}
.proposal-reference { border:1px solid #d7e0ee; border-left:3px solid #d48a2c; border-radius:8px; background:#f8fafd; padding:.85rem 1rem; margin:.65rem 0 1rem }
.proposal-reference p { margin:.3rem 0 .65rem; white-space:pre-wrap; overflow-wrap:anywhere }

.pipeline .board { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(210px,1fr) }
.board-workspaces { display:grid; gap:.55rem; margin-bottom:.75rem }
.board-workspaces nav { display:flex; flex-wrap:wrap; gap:.4rem }
.board-workspaces nav a { display:block; color:var(--navy); background:#f8fafd; border:1px solid var(--line); padding:.5rem .75rem; border-radius:8px; text-decoration:none; font-size:.84rem; overflow-wrap:anywhere }
.board-workspaces nav a[aria-current] { background:#dce5f5; border-color:#adbad2; font-weight:800 }
.board-workspaces > details { margin:0; background:#f7f9fc }
.board-workspaces > details:target { outline:2px solid var(--sol); outline-offset:2px }
.board-settings-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem }
.column-editors { display:grid; gap:.5rem; margin:.75rem 0 }
.column-editor { display:flex; gap:.7rem; align-items:end; flex-wrap:wrap; padding:.6rem 0; border-top:1px solid var(--line) }
.column-editor > label { flex:1 1 180px }
.column-editor > div { display:flex; flex-wrap:wrap; gap:.35rem }
.column-editor button:disabled { opacity:.45; cursor:default }
@media(max-width:540px) { .board-settings-actions { grid-template-columns:1fr } }
.board-admin { display:flex; flex-wrap:wrap; gap:.45rem }

.contact-notebook {
  display: block;
  width: 100%;
  min-height: 75vh;
  border: 0;
  background: transparent;
}

.deal-overview {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,1.45fr);
  gap:.65rem;
  margin:0 0 1rem;
}
.deal-overview > div {
  min-width:0;
  padding:.82rem;
  border:1px solid #dce1f0;
  border-radius:12px;
  background:#fff;
}
.deal-overview > div:last-child { background:#fff9ef; border-color:#ebd7b7 }
.deal-overview dt { display:flex; align-items:center; gap:.45rem; color:var(--tinta-2); font-size:.81rem; font-weight:750 }
.deal-overview dt .ui-icon { width:18px; height:18px; color:#635488 }
.deal-overview > div:last-child dt .ui-icon { color:#8e5417 }
.deal-overview dd { margin:.45rem 0 0; font-weight:800; overflow-wrap:anywhere }
[data-deal-step][hidden] { display:none }
[data-deal-step] > .panel + .panel { margin-top:1rem }
.delivery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.delivery-filters a {
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--papel); padding: .55rem .75rem; text-decoration: none; font-weight: 700;
}
.delivery-filters a[aria-current] { background: var(--navy); color: white; }
.delivery-filters span { margin-left: .35rem; font-variant-numeric: tabular-nums; }

/* Operational screens */
.home-queue { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:1rem; margin-bottom:1rem }
.home-queue > .panel { margin:0; min-width:0; background:var(--papel); border:1px solid var(--line) }
.home-queue .table-wrap { margin-block:.65rem }
#modules > a { margin-block:.18rem }
.pipeline-tools { align-items:center; justify-content:flex-start; gap:.8rem }
.pipeline-tools .filter { display:flex; align-items:end; flex:1 1 260px; margin:0; gap:.5rem }
.pipeline-tools .filter > label { flex:1 1 175px; min-width:0 }
.pipeline-tools .filter button { flex:none }
.pipeline-tools .choice-field { max-width:100% }
.portfolio-list.mobile-list { display:none }
.pipeline .board-card { box-shadow:none; border-radius:8px }
.pipeline .ticket-task { margin:.45rem 0; padding:.35rem .5rem }
.pipeline .ticket-owner { padding-top:.35rem }
.deal-actions,.form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem }
.deal-actions .secondary.action-link { background:var(--papel); color:var(--navy); border:1px solid var(--line) }
.commercial-journey { display:flex; flex-wrap:wrap; gap:.3rem; border-bottom:1px solid var(--line); padding-bottom:.4rem }
.commercial-journey a { flex:none }
[data-deal-step] > .panel { background:var(--papel); border:1px solid var(--line) }
#proposta .workspace-group,.proposal-collection,.workspace-group { background:transparent; border:0; border-top:1px solid var(--line); padding:1rem 0 0; border-radius:0 }
.proposal-collection > header { display:flex; align-items:center; justify-content:space-between; gap:.7rem; flex-wrap:wrap }
.proposal-collection > header > h3 { margin:0 }
.proposal-collection .empty { margin-bottom:0 }
#novo-contato,#vincular-contato,#registrar-atividade { scroll-margin-top:1rem; margin-block:1rem; border-top:1px solid var(--line); padding-top:1rem }
#novo-contato h3,#vincular-contato h3,#registrar-atividade h3 { margin-bottom:.5rem }
.editor-dialog { width:min(680px,calc(100% - 2rem)); max-height:calc(100% - 2rem); overflow:auto; color:var(--tinta); background:var(--papel); border:1px solid var(--line); border-radius:12px; padding:clamp(1rem,3vw,1.6rem) }
.editor-dialog::backdrop { background:#0b103080 }
.editor-dialog > header { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:.85rem }
.editor-dialog > header h3 { margin:0 }
.editor-dialog > header form { margin:0 }
.editor-dialog .editor { margin:0 }
.journey.single-form .journey-fields { grid-template-columns:repeat(2,minmax(0,1fr)) }
.journey.single-form .journey-fields > :not(label),.journey.single-form .journey-fields > label:has(textarea) { grid-column:1/-1 }
@media (max-width:720px) {
  .home-queue { grid-template-columns:1fr }
  .responsive-pipeline .board-scroll { display:none }
  .responsive-pipeline .portfolio-list.mobile-list { display:block }
}
@media (max-width:480px) {
  .journey.single-form .journey-fields { grid-template-columns:1fr }
}
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex-wrap:wrap; margin-top:1.4rem }
.section-heading h3 { margin:0 }
.portfolio-mobile-meta { display:none }
.pipeline .ticket-tags .ticket-contract { background:none; padding:0 }
@media(max-width:600px) {
  .portfolio-list table { min-width:0 }
  .portfolio-list :is(th,td):not(:nth-child(1),:nth-child(4)) { display:none }
  .portfolio-list .portfolio-mobile-meta { display:block }
}
.pipeline > .board-admin,.pipeline > details { margin-top:1rem }
.dashboard-overview .metric strong { font-size:clamp(1.12rem,1.55vw,1.5rem); font-variant-numeric:tabular-nums }
.nexus-top:not(:has(.top-search)):not(.event-top) .top-user { margin-left:auto }
@media(max-width:720px) {
  .shell:has(.pipeline) .nexus-top:not(.event-top) { display:none }
}

/* Module headers and illustrations */
.page-banner {
  --banner-border:#dce1f2;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  align-items:center;
  min-height:152px;
  margin-bottom:1.2rem;
  padding:clamp(1rem,2.5vw,1.8rem);
  border:1px solid var(--banner-border);
  border-radius:15px;
  background:linear-gradient(116deg,#fff 5%,#f5f5ff 64%,#e7e7fa 100%);
}
.banner-content { position:relative; min-width:0; max-width:min(100%,calc(100% - clamp(120px,23vw,340px))) }
.banner-heading { display:flex; align-items:center; gap:.75rem }
.banner-heading > div { min-width:0 }
.banner-heading h1 { font-size:clamp(1.55rem,3vw,2.52rem); overflow-wrap:anywhere }
.banner-glyph {
  display:grid;
  place-items:center;
  flex:none;
  width:42px;
  height:42px;
  border:1px solid #d4daf0;
  border-radius:11px;
  background:#eaedf9;
  color:#393771;
}
.banner-glyph .ui-icon { width:22px; height:22px }
.banner-content > p { margin-top:.68rem; max-width:62ch }
.banner-context { font-size:.78rem; font-weight:750; margin-bottom:.18rem }
.banner-actions { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:.8rem }
.banner-meta .ui-icon { width:16px; height:16px; margin-inline-end:.35rem }
.page-banner--compact { min-height:112px; padding-block:1rem }
.page-banner--compact h1 { font-size:clamp(1.45rem,2.8vw,2.14rem) }
.page-banner--compact .banner-content { max-width:calc(100% - clamp(70px,18vw,230px)) }

.page-banner--photo { background:#101730; color:#fff; border-color:#252d4f }
.banner-photo { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover }
.banner-photo--city { object-position:center 53% }
.banner-photo--congress { object-position:center 47% }
.banner-photo--contacts { object-position:center 32% }
.page-banner--photo::after {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:linear-gradient(90deg,#11172ff9 0%,#11172fee 31%,#11172fcc 55%,#11172f22 100%);
}
.page-banner--photo .banner-content { max-width:min(630px,75%) }
.page-banner--photo p { color:#e7ebfa }
.page-banner--photo .banner-glyph { color:#ffc67b; background:#11172fa0; border-color:#ffffff55 }
.page-banner--photo .privacy-toggle { color:#fff; border-color:#bdc5eb80; background:#11172f96 }
.page-banner--photo .privacy-toggle:hover { border-color:#fff; background:#2e3658 }
.page-banner--photo .eye-symbol { border-color:currentColor }
.page-banner--photo .eye-symbol::after { background:currentColor }

.banner-illustration {
  position:absolute;
  inset:50% 0 auto auto;
  z-index:-1;
  width:clamp(160px,32%,360px);
  height:auto;
  transform:translateY(-50%);
}
.page-banner--compact .banner-illustration { width:clamp(135px,34%,270px) }
.art-contours { stroke:#b1b9e4; stroke-width:1 }
.art-drawing { stroke:#777bb3; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round }
.art-card { fill:#fbfbff }
.art-tile { fill:#e4e5f9 }
.art-signal { fill:#ffe3bd; stroke:#b7782e }
.art-dot { fill:#e69538; stroke:none }
.art-ink { stroke:#8f5924; stroke-width:1.8 }

.panel > h2 > .ui-icon,.section-heading h3 > .ui-icon {
  box-sizing:content-box;
  width:17px;
  height:17px;
  margin-inline-end:.55rem;
  padding:.39rem;
  border-radius:8px;
  color:#4a407e;
  background:#efedf9;
}
.metric > .ui-icon { display:block; margin-bottom:.45rem; width:18px; height:18px; color:#594b89 }
.dashboard-overview .metric { container-type:inline-size }
.dashboard-overview .metric .metric-currency { font-size:clamp(.93rem,12cqi,1.42rem) }
.dashboard-commercial meter { appearance:none; height:8px; background:#eeedf7; border-radius:6px }
.dashboard-commercial meter::-webkit-meter-bar { background:#eeedf7; border:0; border-radius:6px }
.dashboard-commercial meter::-webkit-meter-optimum-value { background:#62578f; border-radius:6px }
.dashboard-commercial meter::-moz-meter-bar { background:#62578f; border-radius:6px }
.empty > .ui-icon { width:18px; height:18px; margin-inline-end:.5rem; color:#665990 }
.contact-cell { display:flex; align-items:center; gap:.5rem; font-weight:750 }
.contact-initials {
  display:grid;
  place-items:center;
  flex:none;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#efedf9;
  color:#4a407e;
  font-size:.71rem;
}
.back a { display:inline-flex; gap:.4rem; align-items:center }
.back .ui-icon { width:17px; height:17px }

@media(max-width:750px) {
  .page-banner { min-height:136px }
  .page-banner--compact { min-height:104px }
  .banner-content,.page-banner--compact .banner-content { max-width:100% }
  .banner-illustration { opacity:.22 }
  .page-banner--photo .banner-content { max-width:94% }
  .home-queue table { min-width:0 }
  .home-queue :is(th,td) { padding-inline:.4rem }
  .home-queue td:last-child { white-space:nowrap }
}
@media(max-width:480px) {
  .page-banner { border-radius:12px }
  .banner-glyph { width:35px; height:35px; border-radius:9px }
  .banner-glyph .ui-icon { width:18px; height:18px }
  .banner-heading { gap:.55rem }
  .page-banner--photo::after { background:linear-gradient(90deg,#11172ff5,#11172fc9 70%,#11172f83) }
}

/* Opportunity overview and open sections */
.page-banner--deal { min-height:211px; border-color:#30375d }
.banner-photo--deal { object-position:64% 54% }
.page-banner--deal::after {
  background:linear-gradient(95deg,#111630 3%,#111630f3 33%,#111630ac 60%,#11163021 100%);
}
.page-banner--deal .banner-content { max-width:min(710px,69%) }
.page-banner--deal .banner-glyph { width:51px; height:51px; background:#242645cc;border-color:#d5d8fa62 }
.page-banner--deal .banner-glyph .ui-icon { width:25px;height:25px }
.page-banner--deal .banner-actions { margin-top:1rem }
.page-banner--deal .deal-actions .secondary { background:#141d38dd;color:#fff;border-color:#c0c9ee88 }
.page-banner--deal .deal-actions .secondary:hover { background:#303a5d;border-color:#fff }
.page-banner--deal .banner-illustration { z-index:0; width:clamp(175px,33%,365px); opacity:.96; pointer-events:none }
.page-banner--deal .art-contours { stroke:#ccc9f290 }
.page-banner--deal .art-drawing { stroke:#d8d9fa }
.page-banner--deal .art-card { fill:#202741e8 }
.page-banner--deal .art-tile { fill:#3f496ad6 }
.page-banner--deal .art-signal { fill:#ffc679;stroke:#ffc679 }
.page-banner--deal .art-ink { stroke:#62411c }

.commercial-journey {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:.4rem;
  margin-block:1rem;
  padding:.36rem;
  border:1px solid #dce0ef;
  border-radius:12px;
  background:#e9edf8;
}
.commercial-journey a { min-width:0; justify-content:center; text-align:center; padding-inline:.36rem }
.commercial-journey a .ui-icon { width:19px;height:19px;color:#665491 }
.commercial-journey a[aria-current] { box-shadow:0 2px 7px #17173724 }
.commercial-journey a[aria-current] .ui-icon { color:#ffcb88 }

.registration-layout { display:grid; gap:1rem; align-items:start }
.registration-layout > .panel,.registration-layout > .panel + .panel { margin:0 }
.registration-layout .proposal-collection { margin-block:.75rem 0 }
.registration-block {
  min-width:0;
  margin:0;
  padding:.85rem;
  border:1px solid #dce1ef;
  border-radius:10px;
  background:#fbfcff;
}
.registration-block > legend,.block-title {
  font-size:1rem;
  font-weight:800;
  color:var(--navy);
}
.registration-block > legend { padding-inline:.32rem }
.registration-block > .choice-field { margin-bottom:.85rem }
.registration-block .proposal-columns { gap:.7rem }
.registration-block .proposal-field--endereco { grid-column:1 / -1 }
.registration-block legend > .ui-icon,.block-title > .ui-icon,.editor-dialog header h3 > .ui-icon {
  color:#655286;
  margin-inline-end:.45rem;
  width:18px;
  height:18px;
}
.content-block {
  min-width:0;
  margin-block:.95rem;
  padding:.9rem;
  background:#f7f8fd;
  border:1px solid #e1e4f1;
  border-radius:10px;
}
.content-block > .block-title { margin:0 0 .65rem }
.contact-workspace { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:.85rem }
.contact-workspace > .content-block { margin:1rem 0 0 }
.content-block > .version + .version { margin-top:.75rem }
.editor-trigger { display:inline-flex; align-items:center; gap:.45rem; text-align:left }
.editor-trigger > .ui-icon { width:17px; height:17px; color:#655286 }
@media(min-width:1200px) {
  .registration-layout { grid-template-columns:minmax(0,2fr) minmax(270px,1fr) }
}
@media(max-width:1040px) {
  .deal-overview { grid-template-columns:repeat(3,minmax(0,1fr)) }
  .deal-overview > div:last-child { grid-column:span 2 }
  .commercial-journey { grid-template-columns:repeat(3,minmax(0,1fr)) }
}
@media(max-width:640px) {
  .page-banner--deal .banner-content { max-width:100% }
  .page-banner--deal .banner-illustration { opacity:.45; inset:25% -1rem auto auto }
  .page-banner--deal::after { background:linear-gradient(100deg,#111630fb,#111630c9 66%,#11163051) }
  .deal-overview { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media(max-width:365px) {
  .commercial-journey a { font-size:.79rem }
}

.identity-field,.identity-field > [data-organization] { display:none }
.registration-block:has([value="Empresa"]:checked) .identity-field:has([data-organization="0"]),
.registration-block:has([value="Prefeitura"]:checked) .identity-field:has([data-organization="1"]),
.registration-block:has([value="Outra organização"]:checked) .identity-field:has([data-organization="2"]) { display:grid }
.registration-block:has([value="Empresa"]:checked) [data-organization="0"],
.registration-block:has([value="Prefeitura"]:checked) [data-organization="1"],
.registration-block:has([value="Outra organização"]:checked) [data-organization="2"] { display:block }

.tier-details dt { font-weight:800; margin-top:.85rem }
.tier-details dd { margin:.25rem 0 0; white-space:pre-wrap; overflow-wrap:anywhere }

.tier-filters:not([hidden]) { display:flex; flex-wrap:wrap; align-items:end; gap:.75rem; margin-block:1rem }
.tier-filters > label:first-child { flex:1 1 15rem }
.tier-filters > label:nth-child(2) { flex:0 1 13rem }
.tier-count { padding-block:.6rem; font-size:.86rem }
.tier-catalog .table-wrap { border:1px solid var(--line); border-radius:10px }
.tier-catalog tbody tr:nth-child(even) { background:#ffffff55 }
.tier-catalog th:last-child,.tier-catalog td:last-child { width:64px; text-align:center }
.tier-catalog .icon-only { display:inline-grid; place-items:center; width:44px; padding:0 }
.tier-no-results { padding:.75rem .55rem }

[data-organization-results]:not([hidden]) { display:grid; gap:.35rem }
[data-organization-results] button { text-align:left }
.top-user .top-icon { position:relative }
.approval-count { position:absolute; top:-.12rem; right:-.15rem; padding:.02rem .32rem; border-radius:1rem; font-size:.7rem; background:#ffc679; color:#15172e }


/* Cadastros, De-Para e Verificador de Duplicidades */
.match-pair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: .9rem;
  margin-block: .85rem;
}
.match-pair-grid > .content-block { margin: 0 }
.match-card ul { margin: .5rem 0; padding-inline-start: 1.15rem }
.match-card li + li { margin-top: .25rem }
.sample-pill {
  display: inline-block;
  padding: .14rem .45rem;
  margin: .1rem .2rem .1rem 0;
  border-radius: 6px;
  background: #eff2fa;
  border: 1px solid #d7ddef;
  font-size: .8rem;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.cadastros-pagination, .cadastros-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  margin-top: .95rem;
}
.cadastros-toolbar > .filter { margin: 0; flex: 1 1 20rem }


/* Acabamento visual: status com cor por etapa, links mais leves, campos visíveis. */

/* Etapas comerciais com cor própria (selos, Kanban e tabelas) */
.status.iniciado { background:#eef0f5; color:#4a5470 }
.status.prospeccao { background:#e6eefb; color:#2c5aa0 }
.status.negociacao { background:#efe8fb; color:#5f3fa6 }
.status.proposta { background:#fff0d9; color:#8a4f00 }
.status.em_aprovacao, .status.revisao { background:#fff2d6; color:#764300 }
.status.em_assinatura { background:#e3f4f6; color:#1f6670 }
.status.rascunho { background:#eef0f5; color:#4a5470 }
.status.descartado { background:#f1f1f3; color:#6b6d78 }
.pipeline [data-stage="iniciado"] { --accent:#7a849e; --wash:#eef0f5 }
.pipeline [data-stage="prospeccao"] { --accent:#3a6fc4; --wash:#e6eefb }
.pipeline [data-stage="em_aprovacao"] { --accent:#b8770f; --wash:#fff2d6 }
.pipeline [data-stage="em_assinatura"] { --accent:#2a8592; --wash:#e3f4f6 }
.pipeline .board-lane[data-stage] { border-top:3px solid var(--accent) }
.pipeline .lane-heading i { width:.55rem; height:.55rem }
.pipeline .lane-heading h2 span { background:var(--wash); color:var(--accent); border-radius:6px; padding:0 .4rem; font-weight:800 }

/* Links de tabela e indicadores: cor e peso, sublinhado só ao passar o mouse */
td a, .summary-numbers dd a, .work-queue a {
  color:#2b3a8c; text-decoration:none;
}
td a:hover, td a:focus-visible, .summary-numbers dd a:hover, .summary-numbers dd a:focus-visible, .work-queue a:hover {
  text-decoration:underline; text-decoration-thickness:1.5px;
}
.summary-numbers dd a { color:var(--navy) }

/* Campos de formulário com contorno visível */
input:not([type=radio]):not([type=checkbox]):not([type=file]), textarea, select {
  background:#fff;
  border:1px solid #cfd6e4;
  box-shadow:none;
}
input:not([type=radio]):not([type=checkbox]):not([type=file]):hover, textarea:hover, select:hover { border-color:#a9b4cc; background:#fff }
input:not([type=radio]):not([type=checkbox]):not([type=file]):focus, textarea:focus, select:focus { border-color:#4c589e; background:#fff }
.proposal-field input, .proposal-field textarea { background:#fff }
.nexus-top .top-search input[type=search],
.nexus-top .top-search input[type=search]:hover,
.nexus-top .top-search input[type=search]:focus { border:0; background:transparent; color:#fff }
.event-switch-control select { border:1px solid #ffffff34; background:#1e2848 }
.commercial-fields input[readonly] { background:var(--dia) }

/* Seletor de arquivo no padrão dos botões */
input[type=file] { width:100%; min-height:44px; padding:.35rem; border:1px dashed #b8c2d8; border-radius:10px; background:#fff; color:var(--tinta-2); font-size:.86rem; box-shadow:none }
input[type=file]::file-selector-button {
  margin-right:.75rem; min-height:34px; padding:.35rem .85rem;
  border:1px solid #cdd5e7; border-radius:8px; background:#f8faff;
  color:var(--navy); font:inherit; font-weight:750; cursor:pointer;
}
input[type=file]::file-selector-button:hover { background:#e9edf8 }

/* Status comercial: rótulos sem quebra */
.dashboard-commercial li { grid-template-columns:minmax(7.5rem,auto) minmax(0,1fr) 2ch }
.dashboard-commercial li > span { white-space:nowrap }

/* Alinhamento de grids, estados vazios e redução de áreas mortas */
.dashboard-details, .home-queue, .executive-grid { align-items:start }
.pipeline .board-lane { min-height:220px }
.empty {
  display:flex; align-items:center; gap:.55rem;
  padding:.8rem 1rem; border:1px dashed #d5dceb; border-radius:10px;
  background:#f8f9fd; color:var(--tinta-2); font-size:.88rem;
}
.empty > .ui-icon { margin-inline-end:0 }

/* Barra de filtros uniforme */
.panel > .filter, main > .filter {
  display:flex; flex-wrap:wrap; align-items:end; gap:.65rem;
  padding:.75rem .9rem; margin-bottom:1rem;
  background:#f8f9fd; border:1px solid var(--line); border-radius:10px;
}
.pipeline-tools .filter, .cadastros-toolbar > .filter {
  padding:0; background:transparent; border:0;
}
.filter > label { flex:1 1 200px; width:auto; max-width:380px }
.filter > label:has(input[type=search]) { flex:2 1 260px; max-width:460px }

/* Rodapé da sidebar sem brigar com a arte de ondas */
.sidebar-art { inset:auto 0 5.2rem; opacity:.68 }
.sidebar .account { position:relative; background:linear-gradient(180deg, transparent, #0f132ceb 28%) }

/* Correção de cascata no mobile */
.shell { overflow-x:clip }
@media (max-width: 800px) {
  .sidebar { height:auto; gap:.75rem; padding:.75rem 1rem }
}

/* Seletor customizado de edição na sidebar (sem popup nativo vazando da coluna) */
.event-picker { position:relative }
.event-picker-trigger {
  width:100%; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.6rem;
  min-height:52px; padding:.5rem .65rem; border:1px solid #ffffff26; border-radius:10px;
  background:#ffffff09; color:#f4f6ff; text-align:left; transition:background-color .15s, border-color .15s;
}
.event-picker-trigger:hover, .event-picker-trigger[aria-expanded="true"] {
  background:#ffffff14; border-color:#ffffff4a;
}
.event-picker-trigger .event-switch-icon { width:28px; height:28px; border-radius:8px }
.event-picker-copy { min-width:0; display:grid; gap:.1rem }
.event-picker-copy small { font-size:.71rem; font-weight:700; color:var(--sobre-noite-2); line-height:1.1 }
.event-picker-copy strong { font-size:.83rem; font-weight:750; color:#f4f6ff; line-height:1.25; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.event-picker-chevron { display:grid; place-items:center; color:var(--sobre-noite-2); transition:transform .18s ease }
.event-picker-chevron .ui-icon { width:16px; height:16px }
.event-picker-trigger[aria-expanded="true"] .event-picker-chevron { transform:rotate(180deg); color:#ffc565 }
.event-picker-menu {
  position:absolute; inset:calc(100% + .4rem) 0 auto 0; z-index:30;
  max-height:min(60vh, 320px); overflow-y:auto;
  padding:.35rem; border:1px solid #ffffff2e; border-radius:11px;
  background:#161e3f; box-shadow:0 16px 34px #050819b8;
  scrollbar-color:#53598b #161e3f;
}
.event-picker-menu[hidden] { display:none }
.event-picker-divider { height:1px; margin:.3rem .25rem; background:#ffffff1c }
.event-picker-caption { display:block; padding:.25rem .55rem .2rem; font-size:.69rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--sobre-noite-2) }
.event-picker-menu a {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:.5rem;
  padding:.52rem .6rem; border-radius:8px; color:#e9ecfa; text-decoration:none;
}
.event-picker-menu a + a { margin-top:.15rem }
.event-picker-menu a:hover { background:#ffffff12 }
.event-picker-menu a[aria-current="true"] { background:#252f59; color:#fff }
.event-picker-menu a span { min-width:0; display:grid; gap:.1rem }
.event-picker-menu a strong { font-size:.81rem; font-weight:700; line-height:1.3; overflow-wrap:anywhere }
.event-picker-menu a small { font-size:.71rem; font-weight:500; color:var(--sobre-noite-2) }
.event-picker-menu a .ui-icon { width:16px; height:16px; color:#ffc565 }

/* Delegação de ficha cadastral e portal externo do patrocinador */
.inline-ops { display:inline-flex; flex-wrap:wrap; align-items:center; gap:.5rem; margin:0 }
.external-link-box { display:flex; flex-wrap:wrap; align-items:end; gap:.5rem; margin:.75rem 0 }
.external-link-box > label { flex:1 1 260px }
.external-link-box input[readonly] { background:#f3f5fb; font-size:.82rem; color:var(--tinta-2) }
.contact-picks { margin:.65rem 0 }
.contact-picks small { color:var(--tinta-2); font-weight:700; margin-bottom:.35rem }
.contact-picks > div { display:flex; flex-wrap:wrap; gap:.4rem }
.contact-picks button { min-height:34px; padding:.3rem .65rem; font-size:.8rem }

.external-portal { max-width:920px; margin:0 auto; padding:clamp(1rem,3vw,2.4rem) clamp(1rem,3vw,2rem) 3.5rem }
.external-banner {
  border-radius:16px; padding:clamp(1.3rem,3vw,2.2rem); margin-bottom:1.2rem;
  background:linear-gradient(125deg,#0f1430 0%,#1a224d 65%,#28295c 100%); color:#fff;
  border:1px solid #2e3766;
}
.external-banner .brand { margin-bottom:1rem }
.external-banner .brand img { width:min(148px,100%); height:auto }
.external-banner .banner-context { color:#ffc679 }
.external-banner h1 { color:#fff; font-size:clamp(1.5rem,3vw,2.2rem); margin-bottom:.45rem }
.external-banner p { color:#e4e8fa; max-width:68ch }

/* Tela de login executiva e atalhos provisórios de perfis */
.sign-in {
  grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);
  background:radial-gradient(circle at 86% 12%,#e3e9fb 0%,transparent 42%),radial-gradient(circle at 16% 88%,#ffefd88c 0%,transparent 38%),#f3f5fa;
}
.login-visual {
  padding:clamp(1.75rem,4.2vw,3.75rem);
  background:
    radial-gradient(circle at 8% 95%,#ff9d2e30 0%,transparent 46%),
    linear-gradient(168deg,#0a0f29eb 0%,#10173866 44%,#090d24f5 94%),
    url('/congresso.webp') 52% center / cover,
    #0b102b;
}
.login-visual-top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.8rem }
.login-pill {
  padding:.32rem .78rem; border-radius:999px; border:1px solid #ffffff2b;
  background:#ffffff12; backdrop-filter:blur(8px);
  color:#eef2ff; font-size:.73rem; font-weight:700; letter-spacing:.03em;
}
.login-cover-copy .login-eyebrow {
  margin:0 0 .65rem; color:#ffc56b; font-size:.76rem; font-weight:800;
  letter-spacing:.11em; text-transform:uppercase;
}
.login-cover-copy h2 { font-size:clamp(2.35rem,4.6vw,4rem); line-height:1.03; font-weight:800 }
.login-cover-copy .login-caption {
  margin:.95rem 0 0; max-width:44ch; color:#d5dcf6; font-size:.95rem; line-height:1.55; font-weight:450;
}
.login-access { padding:clamp(1.25rem,3.5vw,3rem) }
.login-inner {
  width:min(100%,468px); padding:clamp(1.6rem,3.2vw,2.45rem);
  border:1px solid #e2e7f3; border-radius:22px; background:#fff;
  box-shadow:0 24px 56px -16px #0d14331c, 0 4px 14px -2px #0d14330a;
}
.login-header { margin-bottom:1.45rem }
.login-kicker {
  display:inline-block; margin-bottom:.6rem; padding:.24rem .65rem; border-radius:999px;
  background:#eef1fb; color:#353d7a; font-size:.71rem; font-weight:800;
  letter-spacing:.06em; text-transform:uppercase;
}
.login-header h1 { font-size:clamp(1.65rem,2.5vw,2.05rem); letter-spacing:-.035em; color:#11162f; margin:0 0 .35rem }
.login-header p { font-size:.91rem; color:#575f7d }
.login-form { gap:.95rem; margin:0 }
.login-form label { font-size:.83rem; font-weight:750; color:#232946; gap:.38rem }
.login-form input {
  min-height:48px; padding:.65rem .85rem; border-radius:11px;
  border:1px solid #d2d9e8; background:#fafbfe; font-size:.94rem;
  transition:border-color .15s, background-color .15s, box-shadow .15s;
}
.login-form input:hover { border-color:#b2bdd4; background:#fff }
.login-form input:focus { border-color:#3d488f; background:#fff; box-shadow:0 0 0 3px #3d488f1c; outline:none }
.login-submit {
  width:100%; min-height:49px; margin-top:.25rem; border-radius:11px;
  font-size:.93rem; box-shadow:0 8px 20px -6px #df8f2159;
}
.login-submit .ui-icon { width:18px; height:18px; transition:transform .15s ease }
.login-submit:hover .ui-icon { transform:translateX(2px) }

.login-demo-block { margin-top:1.55rem }
.login-divider {
  display:flex; align-items:center; gap:.75rem; color:#6f7696;
  font-size:.71rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase;
}
.login-divider::before, .login-divider::after { content:""; flex:1; height:1px; background:#e5e9f3 }
.demo-profiles {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.55rem; margin-top:.85rem;
}
.demo-profile {
  display:flex; flex-direction:column; align-items:stretch; justify-content:space-between; gap:.55rem;
  width:100%; min-height:82px; padding:.68rem .72rem;
  border:1px solid #dfe5f2; border-radius:12px; background:#f9fafd;
  color:var(--tinta); text-align:left;
  transition:transform .14s ease, border-color .14s ease, background-color .14s ease, box-shadow .14s ease;
}
.demo-profile:hover {
  background:#fff; border-color:#9ca8c8; transform:translateY(-1px);
  box-shadow:0 10px 22px -10px #11163329;
}
.demo-profile-top { display:flex; align-items:center; justify-content:space-between; gap:.35rem }
.demo-profile-icon {
  display:grid; place-items:center; width:28px; height:28px; border-radius:8px;
}
.demo-profile-icon .ui-icon { width:16px; height:16px }
.demo-profile--master .demo-profile-icon { background:#fff0d6; color:#9a5800 }
.demo-profile--gestor .demo-profile-icon { background:#ebe9fb; color:#4c3ea3 }
.demo-profile--comercial .demo-profile-icon { background:#e5effd; color:#2458a6 }
.demo-profile-arrow { font-size:.82rem; font-weight:700; color:#949cb8; transition:transform .14s ease, color .14s ease }
.demo-profile:hover .demo-profile-arrow { transform:translateX(2px); color:#1a2142 }
.demo-profile-copy { min-width:0 }
.demo-profile-copy strong { display:block; font-size:.84rem; font-weight:800; color:#151b35; line-height:1.2 }
.demo-profile-copy small { font-size:.72rem; font-weight:600; color:#666e8d; line-height:1.25; margin-top:.12rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
@media(max-width:820px) {
  .sign-in { grid-template-columns:1fr; grid-template-rows:auto 1fr }
  .login-visual { min-height:220px; gap:1.8rem }
  .login-pill, .login-cover-copy .login-caption { display:none }
}
@media(max-width:440px) {
  .demo-profiles { grid-template-columns:1fr }
  .demo-profile { flex-direction:row; align-items:center; min-height:54px }
  .demo-profile-top { order:2 }
  .demo-profile-icon { display:none }
}

/* Tela de MFA (Microsoft Authenticator) e gestão de permissões */
.mfa-card { width:min(100%, 520px) }
.mfa-enroll {
  display:grid; grid-template-columns:auto minmax(0,1fr); gap:1rem; align-items:center;
  padding:.95rem; margin-bottom:1.15rem;
  border:1px solid #dfe5f2; border-radius:14px; background:#f8faff;
}
.mfa-qr-frame { padding:.45rem; border:1px solid #d5dceb; border-radius:11px; background:#fff; display:grid; place-items:center }
.mfa-qr { display:block; width:168px; height:168px }
.mfa-steps p { margin:0 0 .42rem; font-size:.84rem; color:var(--tinta) }
.mfa-manual { margin:.4rem 0 0; border-color:#d8dfef; background:#fff }
.mfa-manual summary { font-size:.79rem; padding:.38rem 0 }
.mfa-manual code { display:block; padding:.45rem 0 .6rem; font-size:.8rem; letter-spacing:.08em; word-break:break-all; color:var(--navy) }
.mfa-code-input { font-size:1.35rem; font-weight:800; letter-spacing:.35em; text-align:center }
.mfa-logout { margin-top:.9rem; text-align:center }
.mfa-logout button { width:100% }
.perm-override-toggle {
  display:flex; align-items:center; gap:.5rem; margin:.2rem 0 .55rem;
  font-size:.8rem; font-weight:650; color:var(--tinta-2); cursor:pointer;
}
.perm-override-toggle input { width:.95rem; height:.95rem; min-height:0; margin:0; flex:none; accent-color:var(--navy) }
@media(max-width:520px) {
  .mfa-enroll { grid-template-columns:1fr; justify-items:center }
}
