/* Shared controls and operational components. Palette lives in tokens.css. */
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--canvas);
  color:var(--text);
  font:16px/1.5 var(--font)
}
a {
  color:var(--brand-700);
  text-underline-offset:3px
}
a:hover {
  color:var(--brand-800)
}
button,input,select,textarea {
  font:inherit
}
button,.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:10px 16px;
  border:1px solid var(--brand-700);
  border-radius:8px;
  background:var(--button-background);
  color:var(--on-action);
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
  text-align:center
}
button:hover,.button:hover {
  background:var(--brand-800);
  color:var(--on-action)
}
.secondary {
  background:var(--surface);
  color:var(--brand-700);
  border-color:var(--control-border)
}
.secondary:hover {
  background:var(--brand-50);
  color:var(--brand-800)
}
.quiet {
  background:transparent;
  border:0;
  color:var(--muted)
}
.quiet:hover {
  background:var(--brand-50);
  color:var(--brand-800)
}
button:disabled {
  opacity:.7;
  cursor:wait
}
:focus-visible {
  outline:3px solid var(--brand-700);
  outline-offset:2px
}
h1,h2,h3,p {
  margin-top:0
}
h1 {
  font-size:28px;
  line-height:1.2;
  letter-spacing:-.6px;
  margin-bottom:12px
}
h2 {
  font-size:22px;
  letter-spacing:-.3px
}
h3 {
  font-size:18px
}
small,.help {
  font-size:14px;
  color:var(--muted)
}
small {
  display:block
}
.muted {
  color:var(--muted)
}
.eyebrow,.nav-label {
  font-size:12px;
  font-weight:600;
  letter-spacing:1.6px;
  color:var(--muted);
  margin-bottom:12px
}
.demo {
  background:var(--warning-bg);
  color:var(--warning-text);
  padding:8px 16px;
  text-align:center;
  font-size:14px;
  font-weight:600
}
.shell {
  display:grid;
  grid-template-columns:232px minmax(0,1fr);
  min-height:100vh
}
.shell.public {
  grid-template-columns:minmax(0,1fr)
}
aside {
  background:var(--brand-900);
  color:var(--on-action);
  padding:32px 20px;
  display:flex;
  flex-direction:column;
  gap:32px
}
aside .brand {
  color:var(--on-action);
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:600;
  letter-spacing:.5px
}
.brand-mark {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  background:var(--brand-100);
  color:var(--brand-900);
  border-radius:10px;
  font-size:24px
}
.brand small {
  font-size:10px;
  color:var(--brand-100);
  letter-spacing:2px
}
aside .nav-label {
  color:var(--brand-100);
  margin-bottom:-20px
}
aside nav {
  display:flex;
  flex-direction:column;
  gap:6px
}
aside nav a {
  color:var(--sidebar-text);
  padding:12px;
  border-radius:8px;
  text-decoration:none;
  font-size:14px;
  min-height:44px
}
aside nav a:hover,aside nav a[aria-current] {
  background:var(--brand-100);
  color:var(--brand-900)
}
.nav-foot {
  margin-top:auto;
  font-size:13px;
  color:var(--brand-100);
  border-top:1px solid var(--sidebar-border);
  padding-top:24px
}
.workspace {
  min-width:0
}
header {
  min-height:64px;
  background:var(--surface);
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:8px 24px
}
.breadcrumb {
  font-size:13px;
  color:var(--muted)
}
.user-area {
  display:flex;
  align-items:center;
  gap:16px;
  font-size:14px
}
.user-area form {
  margin:0
}
.menu-toggle {
  display:none
}
main {
  max-width:1440px;
  margin:auto;
  padding:32px 24px;
  min-height:calc(100vh - 130px)
}
footer {
  padding:16px 24px;
  color:var(--muted);
  border-top:1px solid var(--border);
  font-size:12px;
  display:flex;
  justify-content:space-between;
  gap:16px
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:28px
}
.page-heading p:last-child {
  margin-bottom:0
}
.card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:24px;
  margin-bottom:24px;
  min-width:0
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px
}
.section-heading h2 {
  margin:0
}
.metrics {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:24px
}
.metric {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:24px
}
.metrics span {
  display:block;
  color:var(--muted);
  font-size:14px;
  margin-bottom:8px
}
.metrics strong {
  display:block;
  font-size:28px;
  letter-spacing:-.5px;
  font-variant-numeric:tabular-nums;
  line-height:1.3
}
.metrics small {
  margin-top:12px
}
.metrics .date-value {
  font-size:24px
}
.compact {
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:12px;
  margin-top:16px
}
.compact>div {
  padding:16px;
  background:var(--canvas);
  border-radius:8px
}
.compact strong {
  font-size:20px
}
.compact .highlight {
  background:var(--brand-50);
  border-left:3px solid var(--brand-700)
}
.compact .highlight strong {
  color:var(--brand-900)
}
.table-scroll {
  position:relative;
  overflow-x:auto;
  max-width:100%;
  border-radius:8px
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:14px
}
th {
  background:var(--canvas);
  text-align:left;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.3px;
  font-weight:600
}
th,td {
  padding:14px 12px;
  border-bottom:1px solid var(--border);
  vertical-align:middle
}
tbody tr:last-child td {
  border-bottom:0
}
td small {
  font-size:12px;
  margin-top:4px
}
.money {
  text-align:right;
  font-variant-numeric:tabular-nums;
  white-space:nowrap
}
.table-link {
  position:relative;
  display:inline-flex;
  min-height:44px;
  align-items:center;
  white-space:nowrap
}
.badge {
  display:inline-block;
  background:var(--brand-100);
  color:var(--brand-900);
  font-size:12px;
  font-weight:600;
  border-radius:6px;
  padding:5px 9px;
  white-space:normal
}
.badge.paid,.success {
  background:var(--success-bg);
  color:var(--success-text)
}
.badge.expired,.badge.rejected,.badge.cancelled,.error {
  background:var(--danger-bg);
  color:var(--danger-text)
}
.badge.information,.badge.signature,.warning {
  background:var(--warning-bg);
  color:var(--warning-text)
}
.badge.large {
  padding:10px 14px;
  font-size:14px
}
.notice {
  background:var(--brand-50);
  color:var(--brand-900);
  padding:16px;
  border-radius:8px;
  margin-bottom:20px;
  border-left:4px solid currentColor
}
.notice p:last-child {
  margin-bottom:0
}
.notice.error {
  background:var(--danger-bg);
  color:var(--danger-text)
}
.notice.warning {
  background:var(--warning-bg);
  color:var(--warning-text)
}
.notice.success {
  background:var(--success-bg);
  color:var(--success-text)
}
.notice a {
  color:inherit
}
.filters {
  display:flex;
  align-items:end;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 24px
}
.filters>div {
  flex:1;
  min-width:130px
}
.filters label {
  font-size:13px
}
.filters input,.filters select {
  width:100%
}
.filters>a {
  padding:12px
}
.field {
  margin-bottom:22px
}
.field label,form>p>label {
  display:block;
  margin-bottom:8px;
  font-weight:500
}
.required {
  color:var(--muted);
  font-size:12px;
  font-weight:400
}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea {
  max-width:100%;
  min-width:0;
  border:1px solid var(--control-border);
  border-radius:8px;
  padding:10px 12px;
  min-height:44px;
  background:var(--surface);
  color:var(--text);
  max-width:100%
}
.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea {
  width:100%
}
input[type=checkbox],input[type=radio] {
  width:20px;
  height:20px;
  accent-color:var(--brand-700);
  vertical-align:middle;
  margin-right:8px
}
.field div label {
  display:flex;
  align-items:center;
  min-height:44px;
  font-weight:400
}
textarea {
  resize:vertical;
  min-height:100px
}
.help {
  margin:8px 0
}
.field-error,.errorlist {
  color:var(--danger-text);
  font-size:14px
}
.invalid input,.invalid textarea,.invalid select {
  border:2px solid var(--danger-text)
}
.form-card {
  max-width:820px
}
.form-actions,.action-grid {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center
}
.form-actions {
  border-top:1px solid var(--border);
  padding-top:24px;
  margin-top:24px
}
.action-grid>a:not(.button) {
  display:inline-flex;
  min-height:44px;
  align-items:center
}
.context-strip {
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  background:var(--brand-50);
  padding:16px 20px;
  margin-bottom:24px;
  border-radius:8px
}
.context-strip span {
  font-size:14px;
  color:var(--muted)
}
.context-strip strong {
  display:block;
  color:var(--text);
  margin-top:4px
}
.review-list {
  display:grid;
  grid-template-columns:minmax(140px,1fr) 2fr;
  gap:12px 24px
}
.review-list dt {
  color:var(--muted)
}
.review-list dd {
  margin:0;
  overflow-wrap:anywhere
}
.section-nav {
  display:flex;
  gap:24px;
  overflow-x:auto;
  padding:0 0 16px;
  margin:24px 0;
  border-bottom:1px solid var(--border)
}
.section-nav a {
  white-space:nowrap;
  min-height:44px;
  display:flex;
  align-items:center
}
.document-list,.plain-list,.access-list {
  padding:0;
  list-style:none;
  margin:0
}
.document-list li,.plain-list li {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--border);
  padding:16px 0
}
.document-list strong {
  overflow-wrap:anywhere
}
.access-list li {
  padding:20px 0;
  border-bottom:1px solid var(--border)
}
.access-list li:last-child,.document-list li:last-child {
  border-bottom:0
}
.empty {
  text-align:center;
  padding:32px;
  color:var(--muted)
}
.empty strong {
  color:var(--text)
}
.empty p {
  margin:8px 0
}
.pagination {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  margin-top:24px;
  font-size:14px
}
.pagination span {
  margin-right:auto;
  color:var(--muted)
}
details {
  border-top:1px solid var(--border);
  padding:16px 0
}
summary {
  cursor:pointer;
  min-height:44px;
  padding:8px 0;
  font-weight:500
}
pre {
  background:var(--canvas);
  border:1px solid var(--border);
  border-radius:8px;
  padding:16px;
  font-size:12px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-width:100%
}
.timeline {
  list-style:none;
  padding-left:16px;
  border-left:2px solid var(--brand-100)
}
.timeline li {
  padding:8px 0 20px 16px
}
.timeline p {
  margin-top:8px
}
.audit-item {
  padding:12px 0;
  border-bottom:1px solid var(--border);
  font-size:14px
}
.two-columns {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px
}
.danger {
  color:var(--danger-text)
}
.check-label {
  display:flex;
  align-items:center;
  min-height:44px
}
.public main {
  max-width:720px;
  padding-top:56px
}
.public-brand {
  font-weight:600;
  text-decoration:none;
  color:var(--brand-900)
}
.auth-links {
  text-align:center
}
.skip {
  position:absolute;
  left:-10000px;
  top:8px;
  z-index:100;
  background:var(--surface);
  padding:12px
}
.skip:focus {
  left:12px
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
[hidden] {
  display:none!important
}
@media(max-width:1100px) {
  .metrics strong {
    font-size:24px
  }
  .metric {
    padding:20px
  }
  .two-columns {
    grid-template-columns:1fr
  }
}
@media(max-width:959px) {
  .shell {
    grid-template-columns:minmax(0,1fr)
  }
  aside {
    display:none
  }
  aside.open {
    display:flex
  }
  .menu-toggle {
    display:inline-flex;
    margin-right:12px
  }
  .metrics {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .breadcrumb {
    display:none
  }
  .nav-foot {
    display:none
  }
  aside nav {
    flex-direction:row;
    flex-wrap:wrap
  }
}
@media(max-width:639px) {
  main {
    padding:24px 16px
  }
  .page-heading {
    align-items:stretch;
    flex-direction:column;
    gap:16px
  }
  h1 {
    font-size:26px
  }
  .card {
    padding:16px
  }
  .metrics {
    grid-template-columns:1fr
  }
  .compact {
    grid-template-columns:1fr 1fr
  }
  .compact strong {
    font-size:18px
  }
  .section-heading {
    align-items:start;
    flex-direction:column
  }
  .filters {
    align-items:stretch;
    flex-direction:column
  }
  .filters>div {
    min-width:0
  }
  .filters button,.form-actions>* {
    width:100%
  }
  .action-grid .button {
    width:100%
  }
  .review-list {
    grid-template-columns:1fr;
    gap:4px
  }
  .review-list dd {
    margin-bottom:16px
  }
  .user-area>span {
    max-width:140px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
  }
  .document-list li {
    align-items:start;
    flex-direction:column
  }
  header {
    padding:8px 16px
  }
  footer {
    flex-direction:column;
    padding:16px
  }
  .public main {
    padding-top:32px
  }
  .table-scroll table {
    min-width:620px
  }
  .section-nav {
    gap:20px
  }
}
/* Kanban and operational credit dashboard */
.board-toolbar {
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:24px
}
.board-tabs,.view-switch {
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.board-tabs a,.view-switch a {
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:10px 14px;
  text-decoration:none;
  border-radius:8px;
  border:1px solid var(--border);
  background:var(--surface)
}
.board-tabs a[aria-current],.view-switch a[aria-current] {
  background:var(--brand-900);
  color:var(--on-action);
  border-color:var(--brand-900)
}
.board-tabs span {
  font-size:12px;
  font-weight:600
}
.board-help {
  font-size:14px
}
.kanban {
  display:flex;
  align-items:flex-start;
  gap:16px;
  overflow-x:auto;
  padding:4px 4px 24px;
  max-width:100%;
  position:relative;
  min-height:280px
}
.kanban-column {
  flex:0 0 280px;
  background:var(--surface-subtle);
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  min-height:260px
}
.column-heading {
  padding:8px 4px 18px
}
.column-heading h2 {
  font-size:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:8px
}
.column-heading small {
  font-size:12px
}
.kanban-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  padding:16px;
  margin-bottom:12px;
  box-shadow:var(--shadow-card);
  overflow-wrap:anywhere
}
.kanban-card[draggable] {
  cursor:grab
}
.kanban-card h3 {
  font-size:16px;
  margin:12px 0 18px
}
.card-protocol {
  display:flex;
  justify-content:space-between;
  font-size:13px;
  font-weight:600;
  min-height:44px;
  align-items:center
}
.kanban-card dl {
  display:grid;
  grid-template-columns:1fr auto;
  gap:6px;
  font-size:13px
}
.kanban-card dt {
  color:var(--muted)
}
.kanban-card dd {
  margin:0;
  font-weight:600;
  font-variant-numeric:tabular-nums
}
.kanban-card>small {
  font-size:12px;
  margin:12px 0
}
.kanban-card details {
  padding:0;
  margin-top:12px
}
.kanban-card summary {
  font-size:13px
}
.kanban-card details p {
  margin:8px 0;
  font-size:13px
}
.card-action {
  display:flex;
  align-items:center;
  min-height:44px;
  font-size:14px
}
.column-empty {
  font-size:14px;
  color:var(--muted);
  padding:16px 4px
}
.load-more {
  width:100%;
  font-size:14px
}
.dragging {
  opacity:.65
}
.drop-allowed {
  outline:2px dashed var(--brand-700);
  outline-offset:-3px
}
.drop-hover {
  background:var(--brand-100)
}
.cross-tab-drop {
  position:sticky;
  right:0;
  bottom:0;
  align-self:stretch;
  flex:0 0 230px;
  padding:24px;
  background:var(--brand-50);
  border-radius:12px;
  z-index:2;
  font-weight:600
}
.portfolio-metrics .featured {
  background:var(--brand-900);
  border-color:var(--brand-900);
  color:var(--on-action)
}
.portfolio-metrics .featured span,.portfolio-metrics .featured small {
  color:var(--featured-muted)
}
.portfolio-metrics strong {
  font-size:26px;
  overflow-wrap:anywhere
}
.dashboard-charts {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  margin-bottom:24px
}
.dashboard-charts .card {
  margin:0
}
.dashboard-charts .concentration {
  grid-column:1/-1
}
.bar-chart {
  list-style:none;
  padding:0;
  margin:24px 0 0
}
.bar-chart li {
  margin-bottom:20px
}
.bar-label {
  display:flex;
  justify-content:space-between;
  gap:16px;
  font-size:14px
}
.bar-label strong {
  text-align:right;
  font-variant-numeric:tabular-nums
}
.bar-label small {
  display:inline;
  font-size:12px;
  margin-left:8px
}
.bar-chart meter {
  display:block;
  width:100%;
  height:16px;
  margin-top:8px;
  accent-color:var(--brand-700)
}
.bar-chart meter::-webkit-meter-bar {
  background:var(--brand-50);
  border:0;
  border-radius:4px
}
.bar-chart meter::-webkit-meter-optimum-value {
  background:var(--button-background);
  border-radius:4px
}
.bar-chart meter::-moz-meter-bar {
  background:var(--brand-700)
}
@media(max-width:959px) {
  .dashboard-charts {
    grid-template-columns:1fr
  }
  .dashboard-charts .concentration {
    grid-column:auto
  }
}
@media(max-width:639px) {
  .board-toolbar {
    flex-direction:column
  }
  .board-tabs {
    gap:6px
  }
  .board-tabs a {
    font-size:13px;
    padding:8px 10px
  }
  .kanban-column {
    flex-basis:272px
  }
  .bar-label {
    gap:8px;
    flex-wrap:wrap
  }
  .bar-label strong {
    text-align:left
  }
  .portfolio-metrics strong {
    font-size:26px
  }
  .cross-tab-drop {
    flex-basis:180px
  }
}
/* Journey and portfolio evolution */
.journey-steps {
  list-style:none;
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  padding:12px 0 0;
  margin:0 0 24px
}
.step {
  position:relative;
  text-align:center;
  padding:0 8px
}
.step:before {
  content:"";
  position:absolute;
  top:17px;
  left:-50%;
  width:100%;
  height:2px;
  background:var(--border)
}
.step:first-child:before {
  display:none
}
.step.done:before,.step.current:before {
  background:var(--brand-700)
}
.step-dot {
  position:relative;
  display:grid;
  place-items:center;
  margin:0 auto 16px;
  width:36px;
  height:36px;
  border:2px solid var(--control-border);
  border-radius:50%;
  background:var(--surface);
  color:var(--muted);
  font-weight:600
}
.step.done .step-dot {
  background:var(--button-background);
  border-color:var(--brand-700);
  color:var(--on-action)
}
.step.current .step-dot {
  border:4px solid var(--brand-700);
  color:var(--brand-900)
}
.step.stopped .step-dot {
  border-color:var(--danger-text);
  color:var(--danger-text)
}
.step>strong {
  display:block;
  font-size:14px;
  margin-bottom:8px
}
.step time,.step small,.step-duration {
  display:block;
  font-size:12px;
  color:var(--muted);
  margin:4px 0
}
.step-duration {
  color:var(--text);
  font-weight:600
}
.journey-footer {
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  align-items:center;
  border-top:1px solid var(--border);
  padding-top:18px;
  font-size:14px
}
.journey-footer strong {
  display:block
}
.journey-footer>small {
  margin-left:auto
}
.journey>.notice {
  margin-top:20px;
  margin-bottom:0
}
.event-timeline {
  list-style:none;
  margin:0 0 24px;
  padding:0 0 0 24px;
  border-left:2px solid var(--brand-100)
}
.event-timeline>li {
  position:relative;
  padding:0 0 24px 0
}
.event-timeline>li:before {
  content:"";
  position:absolute;
  left:-31px;
  top:5px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--button-background);
  border:2px solid var(--surface)
}
.event-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px
}
.event-heading time {
  color:var(--muted);
  font-size:13px
}
.event-amount {
  font-weight:600;
  margin:8px 0
}
.event-timeline details {
  padding:0;
  border:0
}
.event-timeline summary {
  font-size:14px
}
.event-timeline .review-list {
  background:var(--canvas);
  padding:16px;
  border-radius:8px
}
.period-filter {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px
}
.period-filter label {
  font-size:13px
}
.portfolio-evolution {
  grid-template-columns:minmax(0,2fr) minmax(290px,1fr)
}
.portfolio-evolution .section-heading {
  align-items:start;
  flex-wrap:wrap
}
.chart-legend {
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  font-size:13px;
  margin:20px 0
}
.chart-legend span {
  display:flex;
  gap:8px;
  align-items:center
}
.chart-legend i,.component-dot {
  display:inline-block;
  width:12px;
  height:12px;
  border-radius:3px;
  margin-right:4px
}
.legend-released,.monthly-bar.released {
  background:var(--chart-1)
}
.legend-received,.monthly-bar.received {
  background:var(--chart-2)
}
.monthly-bar.received {
  background-image:repeating-linear-gradient(45deg,transparent,transparent 4px,var(--chart-pattern) 4px,var(--chart-pattern) 6px)
}
.evolution-scroll {
  overflow-x:auto;
  max-width:100%
}
.monthly-chart {
  display:flex;
  gap:16px;
  padding:8px 4px 16px
}
.month-group {
  flex:1 0 94px;
  text-align:center
}
.month-bars {
  height:168px;
  display:flex;
  gap:6px;
  justify-content:center;
  align-items:end;
  border-bottom:1px solid var(--border);
  margin-bottom:12px
}
.monthly-bar {
  width:24px;
  min-height:1px;
  border-radius:4px 4px 0 0
}
.month-group>strong {
  font-size:13px
}
.month-group small {
  font-size:11px;
  margin:4px 0 8px
}
.donut-wrap {
  position:relative;
  max-width:280px;
  margin:16px auto
}
.donut {
  width:100%;
  display:block
}
.donut-center {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  pointer-events:none
}
.donut-center strong {
  font-size:18px
}
.slice-1 {
  stroke:var(--chart-1);
  background:var(--chart-1)
}
.slice-2 {
  stroke:var(--chart-2);
  background:var(--chart-2)
}
.slice-3 {
  stroke:var(--chart-3);
  background:var(--chart-3)
}
.composition-table {
  font-size:13px
}
.composition-table td,.composition-table th {
  padding:12px 4px
}
.composition-table td {
  white-space:nowrap
}
.dashboard-charts details table {
  table-layout:fixed;
  overflow-wrap:anywhere
}
.dashboard-charts details td,.dashboard-charts details th {
  padding:10px 4px
}
@media(max-width:1100px) {
  .portfolio-evolution {
    grid-template-columns:1fr
  }
  .journey-steps {
    grid-template-columns:repeat(7,minmax(100px,1fr));
    overflow-x:auto;
    padding-bottom:12px
  }
  .journey-footer>small {
    margin-left:0
  }
}
@media(max-width:639px) {
  .journey-steps {
    grid-template-columns:repeat(7,140px)
  }
  .event-heading {
    flex-direction:column;
    gap:4px
  }
  .event-timeline {
    padding-left:18px
  }
  .event-timeline>li:before {
    left:-25px
  }
  .period-filter {
    width:100%
  }
  .period-filter label {
    width:100%
  }
  .portfolio-evolution {
    grid-template-columns:minmax(0,1fr)
  }
}
.step-dot {
  z-index:1
}
.monthly-bars-svg {
  width:80px;
  height:168px;
  display:block
}
.journey-track {
  overflow-x:auto;
  max-width:100%
}
.journey-track .journey-steps {
  overflow:visible
}
.journey-track:focus-visible {
  outline:3px solid var(--brand-700);
  outline-offset:3px
}

/* Shared brand and financial typography, Recicred UI 3.0. */
.official-brand { display: inline-flex; max-width: 100%; }
.official-brand img { width: 100%; max-width: 211px; height: auto; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
 :root:not([data-theme]) .logo-light { display: none; }
 :root:not([data-theme]) .logo-dark { display: block; }
}
.money, .metric strong, .event-amount, .card-protocol, time { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.metric strong { overflow-wrap: anywhere; }
.public .official-brand { max-width: 160px; }

.badge { border-radius: var(--radius-pill); padding: 5px 10px; font-weight: 550; line-height: 1.5; }

.badge.received { background: var(--neutral-bg); color: var(--neutral-text); }

.badge.analysis { background: var(--info-bg); color: var(--info-text); }

.badge.committee { background: var(--accent-bg); color: var(--accent-text); }

.badge.approved, .badge.active, .badge.paid { background: var(--success-bg); color: var(--success-text); }

.badge.partial, .badge.release { background: var(--brand-100); color: var(--brand-900); }

.badge.cancelled { background: var(--neutral-bg); color: var(--neutral-text); }

.badge.large { font-size: 12px; padding: 9px 14px; }

.notice { background: var(--brand-50); color: var(--brand-900); padding: 16px; border-radius: 8px; margin-bottom: 20px; border-left: 4px solid currentColor; font-size: 14px; line-height: 1.7; }

th { background: var(--canvas); text-align: left; color: var(--muted); font-size: 12px; letter-spacing: 0; font-weight: 600; padding-top: 14px; padding-bottom: 14px; }

td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; padding-top: 14px; padding-bottom: 14px; }

tbody tr:hover { background: var(--surface-subtle); }

.table-link { position: relative; display: inline-flex; min-height: 44px; align-items: center; white-space: nowrap; font-size: 13px; font-weight: 550; }

.field label { font-size: 14px; }

.help, .field-error { font-size: 13px; line-height: 1.6; }

.kanban-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-card); overflow-wrap: anywhere; }

.kanban-card:hover { border-color: var(--control-border); }

.kanban-card h3 { line-height: 1.5; font-size: 14px; margin: 8px 0 16px; }

.card-protocol { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; min-height: 44px; align-items: center; text-decoration: none; }

.kanban-card dl { font-size: 12px; }

.kanban-card dd { font-size: 13px; }

.kanban-card summary { font-size: 12px; color: var(--muted); }

.column-empty { font-size: 13px; color: var(--muted); padding: 16px 4px; }

.button.destructive, button.destructive { color: var(--danger-text); background: var(--danger-bg); border-color: var(--danger-text); }

.button.destructive:hover, button.destructive:hover { color: var(--danger-bg); background: var(--danger-text); }

button:disabled { opacity: .7; cursor: not-allowed; }

/* Operational guidance and help are shared across forms and reports. */
.action-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:16px; }
.action-options .help { margin-top:8px; }
.action-group { margin-top:24px; }
.context-help { display:inline-block; position:relative; margin-inline:6px; vertical-align:middle; }
.help-toggle { min-width:32px; min-height:32px; padding:2px; border:1px solid var(--control-border); border-radius:var(--radius-pill); color:var(--brand-700); background:var(--surface); font-size:14px; }
.help-panel { position:absolute; z-index:80; inset-inline-start:0; top:100%; width:min(270px,70vw); padding:12px; border:1px solid var(--control-border); border-radius:var(--radius-control); color:var(--text); background:var(--surface-raised); box-shadow:var(--shadow-float); font:14px/1.5 var(--font); }
.help-panel[hidden] { display:none; }
details.card > summary { font-size:18px; font-weight:600; min-height:44px; }
summary { cursor:pointer; }
summary::marker { color:var(--brand-700); }
@media (max-width:639px) { .help-panel { position:fixed; inset: auto 16px 20px; width:auto; max-height:50vh; overflow:auto; } }
