* { box-sizing: border-box; }
:root { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #17191f; background: #fff; font-synthesis: none; --muted: #757b85; --blue: #0752f5; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #9fbcff; outline-offset: 4px; }
.site-header { padding: 38px 52px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { color: #14161c; font-size: 36px; line-height: 1; font-weight: 700; letter-spacing: -1.8px; }
.brand:hover { text-decoration: none; }
.brand span { display: block; margin-top: 11px; color: #707681; font-size: 13px; line-height: 1.4; letter-spacing: 0; font-weight: 400; }
.preview-label { color: #8b9099; font-size: 12px; }
.header-link { font-size: 13px; }
.workspace { width: min(100%, 1060px); margin: 0 auto; }
.workspace-heading { margin-bottom: 40px; }
.account-name { font-size: 13px; color: #777e88; }
.workspace-nav { display: flex; flex-wrap: wrap; gap: 25px; padding: 18px 0; border-bottom: 1px solid #eceef1; }
.workspace-nav a { font-size: 14px; color: #838a94; }
.workspace-nav a[aria-current] { color: #17191f; font-weight: 600; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 35px 0; }
.metric { display: grid; gap: 16px; padding: 22px; border: 1px solid #e9ecf0; border-radius: 10px; }
.metric span { font-size: 13px; color: #777f8c; }
.metric strong { font-size: 32px; font-weight: 550; }
.welcome-panel, .empty-state { padding: 28px; border-radius: 10px; background: #f8f9fb; margin: 25px 0; }
h2 { font-size: 20px; letter-spacing: -.4px; font-weight: 550; }
.welcome-panel p, .empty-state p { font-size: 14px; color: #767e8a; line-height: 1.7; }
.table-wrap { overflow-x: auto; margin-bottom: 20px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 18px 12px; border-bottom: 1px solid #eceef1; }
th { font-size: 12px; color: #818896; font-weight: 500; }
.pagination { display: flex; justify-content: flex-end; gap: 24px; padding: 24px 0; font-size: 12px; color: #858b95; }
main { flex: 1; display: grid; align-items: center; width: 100%; padding: 28px 24px 60px; }
.auth { width: min(100%, 408px); margin: 0 auto; padding: 10px 0; }
.auth.wide { width: min(100%, 440px); }
h1 { margin: 0 0 13px; font-size: 34px; letter-spacing: -1.25px; line-height: 1.18; font-weight: 650; }
.intro { margin: 0; font-size: 15px; line-height: 1.65; color: #737984; }
.intro strong { font-weight: 500; color: #353b45; overflow-wrap: anywhere; }
.heading { margin-bottom: 32px; }
form { display: grid; gap: 21px; }
.field { display: grid; gap: 9px; }
label { font-size: 13px; font-weight: 550; color: #30343d; }
input { width: 100%; height: 50px; border: 1px solid #d8dbe1; border-radius: 8px; padding: 0 14px; color: #1c2029; background: #fff; transition: border-color .16s, box-shadow .16s; font-size: 15px; }
input::placeholder { color: #a4a8b0; }
input:focus { outline: none; border-color: #759aff; box-shadow: 0 0 0 3px #eff4ff; }
input[aria-invalid="true"] { border-color: #c54c4c; }
.password { position: relative; }
.password input { padding-right: 72px; }
.reveal { position: absolute; right: 12px; top: 0; height: 50px; border: 0; padding: 0 2px; color: #777e88; background: transparent; font-size: 11px; cursor: pointer; }
.helper { margin: 0; font-size: 12px; line-height: 1.5; color: #888e97; }
.primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 7px; padding: 13px 18px; border: 0; border-radius: 8px; background: var(--blue); color: white; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, transform .15s; }
.primary:hover { background: #0645cf; text-decoration: none; }
.primary:active { transform: translateY(1px); }
.primary:disabled { opacity: .6; cursor: wait; }
.secondary { border: 0; padding: 0; background: none; color: var(--blue); font-size: 13px; cursor: pointer; }
.secondary:hover { text-decoration: underline; }
.forgot { margin-top: -8px; text-align: right; font-size: 12px; }
.under { margin: 28px 0 0; color: #858b95; text-align: center; font-size: 13px; line-height: 1.6; }
.under a { margin-left: 4px; font-weight: 500; }
.tabs { display: flex; padding: 4px; gap: 4px; background: #f5f6f8; border-radius: 9px; margin-bottom: 27px; }
.tabs a { flex: 1; text-align: center; padding: 11px 8px; color: #858b95; font-size: 13px; font-weight: 500; border-radius: 6px; }
.tabs a[aria-current="page"] { background: white; color: #242a34; box-shadow: 0 1px 4px #15243d0d; }
.tabs a:hover { text-decoration: none; color: #202632; }
.code { font-size: 22px; letter-spacing: 9px; font-variant-numeric: tabular-nums; }
.preview-note { font-size: 12px; line-height: 1.6; color: #7e8590; padding: 12px 14px; border: 1px solid #e8eaee; border-radius: 8px; background: #fafbfc; margin: 0 0 24px; }
.preview-note strong { font-weight: 600; color: #3c4655; }
.status { font-size: 13px; line-height: 1.6; border-radius: 7px; padding: 11px 13px; background: #fff5f4; color: #9e3333; margin: 0; }
.status:empty { display: none; }
.status.info { color: #385278; background: #f2f6fc; }
.field-error { font-size: 12px; color: #af3838; line-height: 1.5; }
.field-error:empty { display: none; }
.text-actions { display: flex; flex-direction: column; align-items: center; gap: 19px; margin-top: 28px; }
.success { text-align: center; }
.success h1 { font-size: 36px; }
.success .primary { margin-top: 34px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 23px 52px 30px; color: #a0a5ad; font-size: 11px; }
.site-footer strong { font-weight: 500; }
.screen-menu { position: relative; }
.screen-menu summary { cursor: pointer; list-style: none; padding: 8px 0 8px 12px; }
.screen-menu summary::-webkit-details-marker { display: none; }
.screen-menu nav { position: absolute; right: 0; bottom: 36px; width: 220px; background: #fff; border: 1px solid #e3e6eb; border-radius: 10px; padding: 8px; box-shadow: 0 8px 32px #1823390c; z-index: 5; }
.screen-menu nav a { display: block; font-size: 12px; color: #5d6573; padding: 9px 10px; border-radius: 5px; }
.screen-menu nav a:hover { background: #f5f7fb; text-decoration: none; }
@media (min-height: 900px) { main { padding-bottom: 100px; } }
@media (max-width: 600px) {
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .site-header { padding: 26px 25px; align-items: flex-start; }
  .brand { font-size: 32px; }
  .brand span { font-size: 11px; }
  .preview-label { font-size: 10px; max-width: 65px; text-align: right; line-height: 1.5; padding-top: 3px; }
  main { padding: 30px 26px 42px; }
  h1 { font-size: 30px; }
  .heading { margin-bottom: 27px; }
  .site-footer { padding: 18px 26px 24px; }
  input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

[hidden] { display: none !important; }
.in-portal > .site-header, .in-portal > .site-footer { display: none; }
.in-portal main { display: block; padding: 0; }
.portal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; background: #f6f7f9; padding: 34px 20px 24px; }
.sidebar .brand { margin: 0 11px 38px; font-size: 34px; }
.sidebar .brand span { font-size: 11px; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; overflow-y: auto; }
.sidebar nav a { padding: 12px 14px; border-radius: 7px; color: #616874; font-size: 13px; }
.sidebar nav a:hover { color: #151b27; background: #eceff4; text-decoration: none; }
.sidebar nav a[aria-current] { color: #0752f5; background: #e7efff; font-weight: 600; }
.sidebar nav a.nav-divider { margin-top: 30px; }
.sidebar-signature { margin: auto 12px 0; padding-top: 30px; color: #9a9fa8; font-size: 10px; }
.sidebar-signature strong { font-weight: 400; }
.portal-top { display: flex; justify-content: flex-end; align-items: center; gap: 24px; padding: 24px 42px; min-height: 76px; border-bottom: 1px solid #f0f1f4; font-size: 12px; color: #7b838e; }
.portal-top span:nth-child(2) { color: #383f4b; }
.portal-content { max-width: 1450px; margin: 0 auto; padding: 44px 42px 70px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; margin-bottom: 10px; }
.page-heading .heading { margin-bottom: 24px; }
.page-heading h1 { font-size: 32px; }
.page-heading .intro { max-width: 760px; font-size: 14px; }
.primary.compact { width: auto; min-width: 140px; white-space: nowrap; min-height: 44px; padding: 12px 20px; margin-top: 0; font-size: 12px; }
.financial-metrics { display: grid; grid-template-columns: repeat(3,1fr); padding: 34px 0 45px; border-bottom: 1px solid #eaedf1; margin-bottom: 35px; }
.financial-metrics > div { display: grid; gap: 17px; padding: 0 27px; border-left: 1px solid #e7eaf0; }
.financial-metrics > div:first-child { padding-left: 0; border: 0; }
.financial-metrics span { font-size: 13px; color: #7d8590; }
.financial-metrics strong { font-size: clamp(22px,2.4vw,34px); font-weight: 600; letter-spacing: -1px; }
.home-columns { display: grid; grid-template-columns: minmax(0,2fr) minmax(220px,1fr); gap: 42px; }
.home-columns h2 { margin-top: 0; margin-bottom: 20px; }
.home-columns .empty-state { margin-top: 0; }
.hub-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 64px; row-gap: 35px; }
.hub-group h2 { font-size: 22px; margin: 16px 0 20px; }
.hub-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid #e9ecf1; color: #242a35; }
.hub-row:hover { text-decoration: none; color: #0752f5; }
.hub-row strong { font-size: 15px; font-weight: 550; }
.hub-row small { display: block; margin-top: 7px; font-size: 12px; color: #858c96; line-height: 1.5; }
.hub-row > span:last-child { font-size: 19px; color: #9aa1ab; }
.hub-row small:empty { display: none; }
.assistant-entry { display: flex; flex-direction: column; gap: 15px; padding: 28px 0; border-top: 1px solid #e9ecf1; margin-top: 36px; color: #252c37; }
.assistant-entry strong { font-size: 21px; letter-spacing: -.5px; }
.assistant-entry span { font-size: 13px; color: #818997; }
.row-actions { display: flex; gap: 16px; justify-content: flex-end; }
.muted { color: #858c98; }
#portal-status:empty, .dialog-status:empty { display: none; }
#portal-status { margin-bottom: 20px; }
.optional { color: #9a9fa8; font-weight: 400; font-size: 11px; }
dialog { border: 1px solid #e4e7ed; border-radius: 12px; width: min(680px,calc(100vw - 32px)); max-height: calc(100svh - 40px); padding: 0; box-shadow: 0 20px 80px #111a3320; }
dialog::backdrop { background: #17223845; }
.portal-form { display: block; padding: 30px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 20px; }
.dialog-heading h2 { font-size: 25px; margin: 0; }
.dialog-heading .close-dialog { border: 0; background: none; color: #7e8590; cursor: pointer; font-size: 24px; padding: 0 4px; }
.dialog-note { font-size: 13px; margin-bottom: 25px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 21px; }
.form-grid .field:only-child { grid-column: 1 / -1; }
select, textarea { font: inherit; border: 1px solid #d8dbe1; border-radius: 8px; padding: 12px; color: #333c49; background: white; width: 100%; font-size: 14px; }
select { min-height: 49px; }
textarea { resize: vertical; }
input:disabled,select:disabled { background: #f7f8fa; color: #838a95; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 15px; margin-top: 30px; padding-top: 22px; border-top: 1px solid #edf0f4; }
.button-neutral { border: 1px solid #e3e6eb; background: #fff; color: #687181; border-radius: 7px; padding: 12px 20px; cursor: pointer; font-size: 12px; }
.dialog-status { margin-top: 22px; }
.invoice-item { margin: 25px 0; border: 1px solid #e3e7ee; border-radius: 9px; padding: 20px; display: grid; gap: 17px; }
.invoice-item legend { padding: 0 5px; font-size: 13px; font-weight: 500; }
.invoice-item .remove-item { justify-self: end; font-size: 11px; }
.scope-fields { display: grid; gap: 20px; margin-top: 22px; }
.account-panel { border: 1px solid #e9ecf1; padding: 25px; border-radius: 10px; margin-bottom: 32px; }
dl { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 17px; font-size: 13px; margin: 25px 0; }
dt { color: #8b929e; } dd { margin: 0; overflow-wrap: anywhere; }
@media(max-width:1000px) {
  .portal-layout { grid-template-columns: 195px minmax(0,1fr); }
  .portal-content { padding: 30px 25px; }
  .sidebar { padding: 25px 12px; }
  .sidebar .brand { font-size: 30px; }
  .hub-grid { column-gap: 30px; }
  .home-columns { grid-template-columns: 1fr; }
}
@media(max-width:700px) {
  .portal-layout { display: block; }
  .sidebar { position: static; height: auto; padding: 22px; }
  .sidebar .brand { display: block; margin: 0 0 22px; }
  .sidebar nav { display: flex; flex-direction: row; gap: 5px; overflow-x: auto; }
  .sidebar nav a { flex-shrink: 0; padding: 11px; font-size: 12px; }
  .sidebar nav a.nav-divider { margin: 0; }
  .sidebar-signature { display: none; }
  .portal-top { padding: 16px 22px; min-height: 52px; gap: 18px; }
  .portal-content { padding: 27px 22px 45px; }
  .page-heading { flex-wrap: wrap; }
  .page-heading h1 { font-size: 28px; }
  .page-heading > .primary { margin-bottom: 20px; }
  .financial-metrics { gap: 25px; grid-template-columns: 1fr; padding-top: 20px; }
  .financial-metrics > div { border-left: 0; padding-left: 0; gap: 10px; }
  .financial-metrics strong { font-size: 30px; }
  .hub-grid,.form-grid { grid-template-columns: 1fr; }
  .portal-form { padding: 23px; }
  dl { grid-template-columns: 1fr; gap: 9px; }
  dd { margin-bottom: 13px; }
}

.account-menu { position:relative; }
.account-menu summary { cursor:pointer; list-style:none; }
.account-menu nav { position:absolute; right:0; top:25px; min-width:220px; z-index:10; padding:8px; background:white; border:1px solid #e7eaf0; border-radius:9px; box-shadow:0 8px 24px #1823390d; }
.account-menu nav a { display:block; padding:12px; color:#596475; }
.account-menu nav a:hover { background:#f6f8fb; text-decoration:none; }
.client-search { display:flex; gap:12px; max-width:660px; margin:10px 0 28px; }
.client-search input { min-width:0; }
.client-name { font-weight:550; color:#242c39; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.client-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; padding:24px 0 35px; }
.client-summary > div { display:grid; gap:12px; border-left:1px solid #e8ecf1; padding-left:25px; }
.client-summary > div:first-child { padding-left:0; border:0; }
.client-summary span { font-size:12px; color:#838c99; }
.client-summary strong { font-size:26px; font-weight:550; letter-spacing:-.8px; }
.client-tabs { display:flex; gap:25px; overflow-x:auto; border-bottom:1px solid #e5e9ef; }
.client-tabs a { display:block; flex-shrink:0; padding:15px 0; color:#7d8795; border-bottom:2px solid transparent; font-size:13px; }
.client-tabs a[aria-current] { color:#0752f5; border-bottom-color:#0752f5; font-weight:550; }
.client-tabs a:hover { text-decoration:none; color:#0752f5; }
.client-context { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:24px 0; color:#8a93a0; font-size:12px; }
.client-context select { max-width:300px; font-size:12px; min-height:42px; }
.client-section { padding:20px 0 30px; border-bottom:1px solid #e9edf3; }
.section-title { display:flex; justify-content:space-between; align-items:center; gap:15px; margin:10px 0 20px; }
.section-title h2 { margin:0; }
.section-title h3 { font-size:14px; font-weight:550; margin:0; }
.client-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:45px; margin-top:30px; }
.detail-line { font-size:13px; color:#657184; line-height:1.8; }
.detail-line > span { display:block; font-size:10px; color:#929aa6; }
.detail-line .secondary { margin-left:10px; font-size:11px; }
.table-subtitle { display:block; color:#8b94a2; font-size:11px; margin-top:7px; line-height:1.5; }
.contract-units { border:1px solid #e4e9f0; border-radius:9px; padding:20px; margin:25px 0 0; }
.contract-units legend { padding:0 7px; font-size:13px; }
.context-actions { display:flex; gap:24px; flex-wrap:wrap; padding:20px 0; }
.unit-check { display:flex; align-items:center; gap:12px; padding:10px 0; font-size:13px; cursor:pointer; }
.unit-check input { width:17px; height:17px; box-shadow:none; }
.unit-check small { display:block; font-size:11px; color:#8993a0; font-weight:400; margin-top:5px; }
@media(max-width:700px){
  .client-summary { gap:15px; }
  .client-summary > div { padding-left:15px; }
  .client-summary strong { font-size:19px; }
  .client-context { flex-wrap:wrap; }
  .client-detail-grid { grid-template-columns:1fr; gap:25px; }
  .section-title { flex-wrap:wrap; }
  .client-tabs { gap:20px; }
  .client-search { gap:8px; }
  .row-actions { flex-wrap:wrap; justify-content:flex-start; }
}
.orca-icon { width:19px; height:19px; flex:0 0 19px; display:inline-block; vertical-align:middle; }
.sidebar nav a, .account-menu a, .icon-link, #novo { display:inline-flex; align-items:center; gap:11px; }
.sidebar nav a { display:flex; }
.bank-drawer { margin:0 0 0 auto; padding:0; width:min(610px,100vw); max-width:100vw; height:100dvh; max-height:100dvh; border:0; border-radius:0; box-shadow:-10px 0 60px #18283d18; }
.bank-drawer::backdrop { background:#15213745; }
.bank-form { display:flex; flex-direction:column; height:100%; margin:0; }
.drawer-heading { padding:27px 30px 15px; display:flex; align-items:flex-start; justify-content:space-between; border-bottom:1px solid #edf0f4; }
.drawer-heading h2 { margin:0; font-size:24px; font-weight:550; }
.close-bank { background:transparent; color:#687386; border:0; font-size:27px; padding:0 5px; }
.drawer-content { overflow:auto; padding:12px 30px 25px; flex:1; }
.drawer-content h3 { font-size:14px; margin:26px 0 18px; }
.bank-means { border:0; padding:0; margin:25px 0; display:flex; gap:22px; flex-wrap:wrap; }
.bank-means legend { font-size:14px; padding:0; margin-bottom:15px; }
.bank-means label, .bank-default { display:flex; align-items:center; gap:9px; font-size:13px; }
.bank-means input, .bank-default input { width:17px; height:17px; box-shadow:none; }
.bank-credentials { margin-top:20px; font-size:13px; }
.bank-credentials summary { cursor:pointer; margin-bottom:16px; }
.bank-status { font-size:12px; padding:5px 9px; border-radius:6px; background:#f1f4f8; color:#637187; }
.bank-integration-note { background:#f6f8fb; padding:14px; border-radius:8px; }
.bank-form > footer { display:flex; justify-content:flex-end; gap:12px; padding:18px 30px; border-top:1px solid #edf0f4; }
.hub-row > .orca-icon + span { flex:1; }
.account-menu summary { display:flex; align-items:center; gap:9px; cursor:pointer; }
