body.account-page { display: block; }
.account-header { background: var(--petroleo); color: white; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px clamp(18px, 5vw, 50px); }
.account-header .brand { margin: 0; }
.account-header > a:last-child { font-size: 14px; }
.account-main { max-width: 1100px; padding: clamp(18px, 5vw, 54px); margin: auto; }
.account-main h1 { font-size: clamp(34px, 6vw, 54px); margin-bottom: 22px; }
.account-main p { margin-top: 12px; color: var(--suave); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-card { background: white; border: 1px solid var(--borda); padding: clamp(18px, 4vw, 30px); border-radius: 14px; max-width: 570px; }
.account-card h2 { font-size: 22px; margin-bottom: 15px; }
.account-card form { display: grid; gap: 12px; }
.account-card label { display: grid; gap: 5px; font-size: 14px; font-weight: 650; }
.account-card input, .account-card select { width: 100%; min-height: 40px; border: 1px solid #a6b6aa; border-radius: 7px; background: white; color: var(--texto); padding: 7px 9px; font: inherit; }
.account-page button { justify-self: start; border: 0; border-radius: 7px; padding: 9px 13px; background: var(--lima); color: var(--petroleo); font-weight: 750; }
.account-page button:hover { background: #d0f48b; }
.account-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; overflow-wrap: anywhere; }
.account-card ul { padding-left: 20px; overflow-wrap: anywhere; }
.account-card li { margin-top: 7px; }
.account-card li form { margin: 6px 0 12px; }
.record-detail { display: block; color: var(--suave); font-size: 13px; margin-top: 4px; }
@media (max-width: 690px) { .account-grid { grid-template-columns: 1fr; } }
.is-dashboard { --nav-width: 248px; background: #f1f5f0; }
.is-dashboard .account-header { display: none; }
.is-dashboard .account-main { margin-left: var(--nav-width); max-width: 1520px; padding: clamp(24px, 4vw, 50px); }
.is-dashboard .account-main > h1 { font-size: clamp(2rem,4.2vw,3.25rem); letter-spacing: -.05em; line-height: 1.08; }
.dashboard-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--nav-width); display: flex; flex-direction: column; padding: 1.4rem 1rem; background: #103d36; color: #f4fbf5; overflow: auto; }
.dashboard-sidebar .brand { color: #fff; margin: 0 0 1.65rem; white-space: nowrap; padding: .35rem; }
.dashboard-sidebar nav { display: grid; gap: .35rem; }
.dashboard-sidebar nav a { display: flex; align-items: center; gap: .8rem; border-radius: .6rem; padding: .78rem .7rem; color: #ecf6ee; text-decoration: none; font-weight: 600; }
.dashboard-sidebar nav a span { width: 1.2rem; color: #b8e65c; text-align: center; }
.dashboard-sidebar nav a:hover, .dashboard-sidebar nav a[aria-current] { background: #24574c; color: #fff; }
.dashboard-profile { margin-top: auto; padding: 1rem .5rem .15rem; display: grid; gap: .45rem; font-size: .82rem; overflow-wrap: anywhere; }
.dashboard-profile span { color: #d5e8dc; }
.dashboard-profile button { margin-top: .4rem; }
.dashboard-metrics { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); margin-bottom: 1rem; }
.dashboard-metric, .dashboard-chart { border: 1px solid #d6e2d8; border-radius: .85rem; padding: 1rem 1.2rem; background: white; }
.dashboard-metric span { color: #46615a; font-size: .82rem; font-weight: 650; display: block; }
.dashboard-metric strong { display: block; font-size: clamp(1.35rem,2.2vw,1.95rem); line-height: 1.22; margin-top: .4rem; letter-spacing: -.035em; color: #103d36; }
.dashboard-chart { margin-bottom: 1rem; }
.dashboard-chart h2, .dashboard-section-title { font-size: 1.25rem; letter-spacing: -.025em; }
.dashboard-chart-title { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .6rem; }
.dashboard-chart-title p { margin: .2rem 0 0; font-size: .86rem; }
.dashboard-chart-title strong { background: #e8f3e4; color: #103d36; border-radius: .5rem; padding: .45rem .65rem; font-size: .85rem; }
.dashboard-chart ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem 1.4rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.dashboard-chart li { display: grid; grid-template-columns: minmax(3rem,auto) minmax(2rem,1fr) minmax(1.5rem,auto); align-items: center; gap: .5rem; font-size: .78rem; }
.dashboard-chart meter { width: 100%; height: .8rem; accent-color: #38745c; }
.dashboard-chart meter::-webkit-meter-optimum-value { background: #38745c; }
.dashboard-team li { grid-template-columns: minmax(6.5rem,auto) minmax(2rem,1fr) minmax(1.5rem,auto); }
.is-dashboard .account-card { max-width: none; min-width: 0; }
.is-dashboard .account-grid { align-items: start; margin-top: 1rem; }
.is-dashboard .account-card h3 { margin-top: 1rem; font-size: .9rem; }
.is-dashboard .account-card details { padding: .35rem 0; }
.is-dashboard .account-card summary { cursor: pointer; font-weight: 650; color: #1c6351; }
.portfolio-link { display: flex; gap: .5rem; justify-content: space-between; color: #103d36; text-decoration: none; }
.portfolio-link:hover { text-decoration: underline; }
.is-dashboard #carteira ul { padding: 0; list-style: none; }
.is-dashboard #carteira li { padding: .8rem 0; border-bottom: 1px solid #e0eae1; }
.is-dashboard .team-identities { list-style: none; padding: 0; }
.team-identities li { display: flex; gap: .5rem; align-items: center; overflow-wrap: anywhere; }
.team-identities li span { flex: 0 0 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: #e1efd9; color: #164e41; font-weight: 750; }
.dashboard-back { margin: 0 0 1rem; }
.dashboard-back a { color: #1c6351; }
.wiki-grid { display: grid; gap: 1rem; }
.wiki-grid ol { padding-inline-start: 1.4rem; }
.wiki-grid figure { margin: .8rem 0 0; }
.wiki-grid img { display: block; width: min(100%, 850px); height: auto; border: 1px solid #d6e2d8; border-radius: .62rem; }
.wiki-grid figcaption { margin-top: .35rem; font-size: .8rem; color: #46615a; }
@media (max-width: 950px) { .is-dashboard { --nav-width: 205px; } }
@media (max-width: 720px) {
  .dashboard-sidebar { position: static; width: auto; padding: .75rem 1rem; }
  .dashboard-sidebar .brand { margin: 0 0 .5rem; }
  .dashboard-sidebar nav { display: flex; gap: .25rem; flex-wrap: wrap; }
  .dashboard-sidebar nav a { padding: .5rem; font-size: .82rem; }
  .dashboard-profile { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: .55rem .2rem 0; }
  .is-dashboard .account-main { margin: 0; padding: 1.25rem; }
  .dashboard-chart ol { grid-template-columns: 1fr; }
}
.is-dashboard .wiki-overview { padding-bottom: 1.45rem; }
.wiki-grid .wiki-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.05rem; padding: 0; margin: .8rem 0 0; list-style: none; }
.wiki-flow li { position: relative; margin: 0; padding: .8rem; border: 1px solid #d6e2d8; border-radius: .65rem; background: #f4f8f3; }
.wiki-flow li[aria-current] { border-color: #65966d; background: #e7f4dc; box-shadow: inset 0 3px #65966d; }
.wiki-flow li:not(:last-child)::after { content: '→'; position: absolute; top: 50%; right: -.96rem; transform: translateY(-50%); color: #315d50; font-weight: 800; }
.wiki-flow strong, .wiki-flow span { display: block; }
.wiki-flow span { margin-top: .4rem; color: #3d5c52; font-size: .84rem; line-height: 1.4; }
.wiki-grid .wiki-steps { display: grid; gap: .75rem; max-width: 78ch; line-height: 1.55; }
.wiki-steps a { color: #1c6351; text-underline-offset: .15em; }
@media (max-width: 1040px) {
  .wiki-grid .wiki-flow { grid-template-columns: 1fr; gap: .95rem; }
  .wiki-flow li:not(:last-child)::after { content: '↓'; top: auto; bottom: -.97rem; left: 1rem; right: auto; transform: none; }
}
.account-management { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.is-dashboard .account-card .account-filters { grid-template-columns: minmax(0, 1fr) minmax(7rem, .5fr) auto; align-items: end; margin-top: 1rem; }
.account-filters button { margin-bottom: .1rem; }
.managed-account { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .55rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid #d6e2d8; }
.managed-account-meta { display: grid; gap: .2rem; overflow-wrap: anywhere; }
.managed-account-meta span { color: #46615a; font-size: .78rem; }
.managed-account-status { border-radius: .4rem; background: #e1efd9; color: #164e41; padding: .3rem .45rem; font-size: .73rem; font-weight: 750; }
.managed-account-status.is-blocked { background: #f8e2dc; color: #793821; }
.managed-account details { grid-column: 1 / -1; }
.managed-account details form { margin-top: .6rem; }
@media (max-width: 1050px) { .account-management { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .is-dashboard .account-card .account-filters { grid-template-columns: 1fr; }
  .managed-account { grid-template-columns: 1fr auto; }
  .managed-account-meta { grid-column: 1 / -1; }
}
