@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  color-scheme: dark;
  font: 14px/1.5 'DM Sans', system-ui, sans-serif;
  color: #eeeeee;
  background: #080808;
  --ink: #e8e8e8;
  --teal: #25786f;
  --muted: #a6aaa6;
  --border: #2c2c2c;
  --gold: #cfad71;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, .button {
  border: 0; border-radius: 8px; padding: 12px 18px; min-height: 43px;
  background: var(--ink); color: white; font-weight: 600; cursor: pointer;
  display: inline-flex; justify-content: center; align-items: center; gap: 16px;
}
button:disabled { opacity: .5; cursor: wait; }
input, select {
  border: 1px solid #363636; border-radius: 7px; background: #171717;
  color: var(--ink); padding: 11px 12px; min-height: 43px; max-width: 100%;
}
select { cursor: pointer; }
label { display: grid; gap: 7px; font-size: 12px; font-weight: 600; color: #b9c1ba; }
:focus-visible { outline: 2px solid #88b8a7; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong { font-family: Manrope, system-ui, sans-serif; }
h1 { font-size: 30px; letter-spacing: -1.2px; font-weight: 800; line-height: 1.25; }
h2 { font-size: 16px; letter-spacing: -.4px; font-weight: 800; }
.eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1.6px; color: #7f9690; margin-bottom: 8px; }
.muted, .subtitle { color: var(--muted); }
.subtitle { font-size: 12px; margin-top: 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.app-layout { display: grid; grid-template-columns: 216px minmax(0,1fr); min-height: 100vh; }
.sidebar {
  background: #050505; color: #b3c1bc; position: fixed; inset: 0 auto 0 0;
  width: 216px; padding: 30px 20px; display: flex; flex-direction: column; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 3px 30px; color: #e4d8b7; font: 700 18px Manrope; }
.brand img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; }
.brand-small { display: block; color: #819591; font: 9px 'DM Sans'; letter-spacing: 2px; margin-top: 4px; }
.sidebar-label { font-size: 8px; letter-spacing: 2px; margin: 20px 14px 14px; color: #6b8480; }
.sidebar nav { display: grid; gap: 8px; }
.sidebar nav a { border-radius: 8px; display: flex; gap: 13px; align-items: center; padding: 12px 14px; font-size: 12px; }
.sidebar nav a span { font-size: 19px; width: 22px; text-align: center; }
.sidebar nav a:hover { background: #232323; }
.sidebar nav a.active { background: #292721; color: #f1ead4; box-shadow: inset 3px 0 var(--gold); }
.sidebar-bottom { margin-top: auto; display: flex; align-items: center; gap: 9px; font-size: 10px; padding: 24px 8px 15px; line-height: 1.7; }
.sidebar-bottom strong { font-size: 9px; font-weight: 500; color: #91aaa1; }
.sidebar-bottom i { width: 7px; height: 7px; border-radius: 50%; background: #77b598; box-shadow: 0 0 0 4px #213d37; }
.logout { font-size: 11px; color: #7f9c94; background: transparent; justify-content: flex-start; padding: 8px; }
.workspace { grid-column: 2; min-width: 0; }
.topbar { height: 76px; background: #101010; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; padding: 0 36px; }
.topbar-title { color: #8b9694; font-size: 10px; }
.topbar-title strong { color: #c5cdc6; font-weight: 600; margin-left: 7px; }
.profile { display: flex; gap: 18px; align-items: center; }
.profile > span:first-child { font-size: 10px; color: #7a8984; }
.avatar { width: 33px; height: 33px; background: #28352b; color: #c1d5be; display: grid; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 700; border: 3px solid #171717; box-shadow: 0 0 0 1px #3b3b3b; }
.mobile-brand { display: none; }
main { max-width: 1560px; margin: auto; padding: 30px 36px; }
.page-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 25px; }
.heading-actions { display: flex; gap: 9px; align-items: center; }
.heading-actions select { font-size: 11px; max-width: 155px; }
.heading-actions .button { font-size: 11px; padding: 12px 15px; }
.summary-strip { display: flex; justify-content: space-between; font-size: 10px; color: #85938d; margin-bottom: 10px; }
.summary-strip > span:first-child { display: flex; gap: 7px; align-items: center; }
.summary-strip i { height: 5px; width: 5px; display: inline-block; border-radius: 100%; background: var(--teal); }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.metric { border: 1px solid var(--border); border-radius: 12px; background: #171717; padding: 19px 20px; overflow: hidden; }
.metric-title { font-size: 11px; color: #bbc3bd; display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.metric-icon { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; background: #252525; color: #a6c3af; font-size: 16px; }
.metric strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -1.3px; margin: 6px 0; }
.metric small { font-size: 9px; color: #a6b4a8; }
.metric.featured { background: #202a24; border-color: #202a24; color: #f6f4e5; }
.metric.featured .metric-title, .metric.featured small { color: #b7cec1; }
.metric.featured .metric-icon { background: #2f3f32; color: #d9d5a7; }
.metric.featured strong { color: #f5e2b8; }
.chart-grid { display: grid; grid-template-columns: minmax(0,2.2fr) minmax(250px,1fr); gap: 18px; margin-bottom: 18px; }
.panel { background: #171717; border: 1px solid var(--border); border-radius: 12px; padding: 22px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 20px; }
.panel-heading .eyebrow { margin-bottom: 5px; }
.legend { display: flex; gap: 12px; font-size: 9px; color: #829289; white-space: nowrap; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.teal { background: var(--teal); }
.gold { background: var(--gold); }
.chart { width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-note { font-size: 9px; color: #a8b2a8; margin-top: 12px; line-height: 1.6; }
.tiny-badge { background: #242424; font-size: 8px; letter-spacing: 1px; padding: 5px 7px; border-radius: 4px; color: #b0c0ac; }
.donut { display: block; width: 160px; height: 160px; margin: 10px auto 17px; }
.origin-row { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #b0beb4; border-top: 1px solid #2b2b2b; padding: 8px 0; }
.origin-row i { width: 6px; height: 6px; border-radius: 100%; }
.origin-row strong { margin-left: auto; font-size: 13px; color: #e1e7df; }
.origin-row small { font-size: 9px; width: 30px; text-align: right; }
.insight-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.goal-row { margin-top: 20px; }
.goal-title { display: flex; justify-content: space-between; font-size: 10px; color: #b8c6ba; margin-bottom: 7px; }
.goal-title strong { color: #dfe7de; font-size: 11px; }
.progress { background: #303030; border-radius: 5px; height: 5px; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: #3a8979; }
.goal-row small { font-size: 9px; color: #8b978e; display: block; margin-top: 6px; }
.footnote { font-size: 9px; line-height: 1.7; margin-top: 18px; }
.projection-panel { background: #182219; border-color: #30362d; }
.projection-panel .eyebrow { color: #b1c2a9; }
.projection-panel small { display: block; color: #aebba3; font-size: 9px; line-height: 1.7; margin-top: 13px; }
.projection-number { font: 800 35px Manrope; letter-spacing: -1.5px; margin-top: 16px; color: #d5e7d1; }
.projection-number span { font: 11px 'DM Sans'; color: #afbe9f; letter-spacing: 0; margin-left: 5px; }
.projection-details { display: flex; gap: 16px; margin-top: 14px; border-top: 1px solid #34382f; padding-top: 12px; }
.projection-details div { flex: 1; }
.projection-details strong { display: block; font-size: 16px; letter-spacing: -.5px; color: #c8dfbb; }
.projection-details span { font-size: 9px; color: #aab89d; }
.funnel-step { margin-top: 15px; }
.funnel-step > div:first-child { display: flex; justify-content: space-between; font-size: 11px; color: #b2c3b6; margin-bottom: 5px; }
.funnel-step strong { color: #dae6d7; font-size: 14px; }
.funnel-bar { height: 5px; background: #2a2a2a; border-radius: 3px; }
.funnel-bar i { height: 100%; background: #80a998; display: block; border-radius: 3px; }
.funnel-rate { margin-top: 17px; font-size: 10px; color: #b0c6b4; padding: 9px 10px; background: #202720; border-radius: 6px; }
.bottom-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.today-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.today-metrics strong { font-size: 23px; display: block; letter-spacing: -1px; }
.today-metrics span { font-size: 9px; color: #87938b; }
.text-link { font-size: 10px; font-weight: 600; color: #7ecba6; }
.connection-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #2b2b2b; font-size: 11px; color: #b8c6ba; }
.connection-row:last-child { border: 0; }
.connection-row span:last-child { font-size: 8px; border-radius: 20px; padding: 3px 8px; background: #352d1b; color: #d4b576; }
.connection-row .ok { background: #233327 !important; color: #588651 !important; }
.page-footer { display: flex; justify-content: space-between; padding: 15px 36px 24px; max-width: 1560px; margin: auto; font-size: 9px; color: #9aa49c; }
.entry-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 20px 0; }
.fields label { padding: 13px; border: 1px solid var(--border); border-radius: 8px; background: #151515; }
.fields input { width: 100%; font-size: 20px; font-weight: 600; border: 0; border-bottom: 1px solid #303030; background: transparent; border-radius: 0; padding: 6px 0; min-height: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; border-top: 1px solid var(--border); padding-top: 20px; }
.secondary { background: #171717; border: 1px solid #3b3b3b; color: #b9d7be; }
.helper-panel { background: #182219; color: #b0c6b4; align-self: start; line-height: 1.9; font-size: 12px; }
.helper-panel h2 { color: #d8e8d5; margin: 13px 0; }
.helper-panel p { margin-bottom: 13px; }
.helper-icon { height: 40px; width: 40px; background: #2a3d2c; display: grid; place-items: center; border-radius: 50%; font-size: 20px; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
th { text-align: left; color: #94a096; font-size: 9px; font-weight: 600; letter-spacing: .5px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
td { padding: 16px; border-bottom: 1px solid #2b2b2b; color: #b7c8ba; }
td:first-child { color: #e1e7df; font-weight: 600; }
td button { background: #242b25; color: #b7d3ad; padding: 5px 10px; min-height: 32px; font-size: 10px; }
#history-note { font-size: 10px; margin: 16px; }
#settings .panel { margin-bottom: 18px; }
#config label { background: #171717; }
#config input { font-size: 16px; }
#config button { align-self: end; }
.mobile-nav { display: none; }
#tools-frame { width: 100%; height: max(780px, calc(100dvh - 250px)); border: 0; border-radius: 12px; display: block; background: #080808; }
.sidebar nav { gap: 4px; }
.sidebar nav a { padding-top: 9px; padding-bottom: 9px; }
#status { position: fixed; bottom: 18px; left: calc(50% + 108px); transform: translateX(-50%); max-width: 600px; width: max-content; max-height: 45vh; overflow: auto; white-space: pre-line; background: #263b31; color: #eff8e9; box-shadow: 0 8px 30px #132c3526; padding: 15px 20px; font-size: 12px; border-radius: 10px; z-index: 30; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #0c0c0c; }
.login-story { background: #0c0c0c; color: #cddbd0; padding: 60px 12%; position: relative; overflow: hidden; }
.login-story img { width: 75px; border-radius: 10px; margin-bottom: 50px; }
.login-story h1 { font-size: clamp(36px,5vw,68px); line-height: 1.14; letter-spacing: -3px; color: #f2f5e9; margin-bottom: 24px; }
.login-story h1 em { font-family: Georgia,serif; color: #cfb784; font-weight: 400; }
.login-story > p:last-of-type { max-width: 320px; font-size: 13px; line-height: 1.8; color: #88aaa0; }
.login-form { padding: 10%; align-self: center; }
.login-form h2 { font-size: 27px; margin: 12px 0 35px; }
.login-form form { display: grid; gap: 15px; max-width: 370px; }
.login-form input { margin-bottom: 5px; }
.login-form small { font-size: 10px; color: #939e92; display: block; margin-top: 20px; }
.story-lines { display: flex; gap: 10px; height: 135px; align-items: end; opacity: .55; margin-top: 45px; }
.story-lines i { display: block; width: 24px; background: #3b6e5f; border-radius: 5px 5px 0 0; height: 35%; }
.story-lines i:nth-child(2) { height: 53%; }
.story-lines i:nth-child(3) { height: 44%; }
.story-lines i:nth-child(4) { height: 66%; }
.story-lines i:nth-child(5) { height: 75%; }
.story-lines i:nth-child(6) { height: 68%; background: #bca36c; }
.story-lines i:nth-child(7) { height: 90%; background: #bca36c; }
@media (max-width: 1150px) {
  .sidebar { width: 184px; padding: 24px 14px; }
  .app-layout { grid-template-columns: 184px minmax(0,1fr); }
  .topbar { padding: 0 24px; }
  main { padding: 26px 24px; }
  h1 { font-size: 26px; }
  .metrics { gap: 10px; }
  .metric { padding: 15px; }
  .metric strong { font-size: 25px; }
  .chart-grid { grid-template-columns: minmax(0,1.65fr) minmax(220px,1fr); }
  .panel { padding: 18px; }
  .insight-grid { gap: 12px; }
  .legend { gap: 7px; font-size: 8px; }
  .heading-actions { flex-wrap: wrap; justify-content: flex-end; }
  .panel h2 { font-size: 14px; }
  #status { left: calc(50% + 92px); }
}
@media (max-width: 850px) {
  .metrics { grid-template-columns: repeat(2,1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .origin-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .origin-panel .panel-heading { grid-column: 1/-1; }
  #origin-legend { align-self: center; padding-right: 15px; }
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .insight-grid > article:last-child { grid-column: 1/-1; }
  .bottom-grid, .entry-layout { grid-template-columns: 1fr; }
  .profile > span:first-child { display: none; }
}
@media (max-width: 640px) {
  .app-layout { display: block; }
  .sidebar { display: none; }
  .workspace { width: 100%; }
  .topbar { height: 63px; padding: 0 20px; }
  .mobile-brand { display: inline-block; font: bold 18px Georgia; color: #b09965; letter-spacing: 1px; margin-right: 13px; }
  .topbar-title { font-size: 9px; }
  main { padding: 23px 17px 14px; }
  .page-heading { display: block; margin-bottom: 22px; }
  .page-heading h1 { font-size: 27px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
  .subtitle { font-size: 11px; line-height: 1.8; max-width: 310px; }
  .heading-actions { margin-top: 18px; justify-content: space-between; flex-wrap: nowrap; }
  .heading-actions select { flex: 1; max-width: none; font-size: 11px; }
  .heading-actions .button { font-size: 10px; flex: 1; white-space: nowrap; }
  .summary-strip { font-size: 8px; }
  .metrics { gap: 10px; margin-bottom: 15px; }
  .metric { padding: 15px; border-radius: 10px; min-height: 132px; }
  .metric-title { font-size: 10px; }
  .metric-icon { width: 25px; height: 25px; font-size: 14px; }
  .metric strong { font-size: 28px; margin: 7px 0; }
  .metric small { font-size: 8px; display: block; line-height: 1.6; }
  .panel { padding: 18px; border-radius: 10px; }
  .panel-heading { margin-bottom: 16px; align-items: flex-start; }
  .legend { font-size: 7px; gap: 7px; margin-top: 8px; }
  .performance .panel-heading { display: block; }
  .chart-grid { gap: 14px; margin-bottom: 14px; }
  .chart-note { font-size: 8px; }
  .donut { width: 135px; height: 135px; margin: 0 auto; }
  .origin-row { font-size: 10px; }
  .insight-grid { grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
  .insight-grid > article:last-child { grid-column: auto; }
  .projection-number { font-size: 40px; }
  .projection-details strong { font-size: 19px; }
  .projection-panel small { font-size: 10px; }
  .bottom-grid { gap: 14px; }
  .today-metrics { gap: 5px; }
  .today-metrics strong { font-size: 22px; }
  .today-metrics span { font-size: 8px; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: #101010ed; backdrop-filter: blur(16px); border-top: 1px solid #303030; padding: 8px 10px max(9px,env(safe-area-inset-bottom)); justify-content: space-around; }
  .mobile-nav a { display: grid; text-align: center; color: #9aa79b; font-size: 20px; min-width: 55px; padding: 1px 8px; border-radius: 9px; line-height: 1.2; }
  .mobile-nav a span { font: 9px 'DM Sans'; margin-top: 5px; }
  .mobile-nav a.active { color: #9dd5b1; background: #253126; }
  .page-footer { padding: 14px 20px 95px; font-size: 8px; }
  .page-footer > span:last-child { display: none; }
  .entry-layout .panel-heading { display: block; }
  .entry-layout .panel-heading label { margin-top: 15px; }
  .fields { gap: 10px; }
  .fields label { padding: 11px; font-size: 10px; }
  .fields input { font-size: 23px; }
  .actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .actions button { font-size: 12px; min-height: 48px; }
  th, td { padding: 12px; }
  #config { grid-template-columns: 1fr; }
  .login-layout { grid-template-columns: 1fr; }
  .login-story { padding: 25px 28px 35px; }
  .login-story img { width: 52px; margin-bottom: 25px; }
  .login-story h1 { font-size: 39px; letter-spacing: -1.6px; margin-bottom: 16px; }
  .login-story > p:last-of-type { font-size: 11px; max-width: 260px; }
  .story-lines { display: none; }
  .login-form { padding: 30px 28px 50px; }
  .login-form h2 { font-size: 22px; margin-bottom: 23px; }
  .login-form form { max-width: none; }
  #status { left: 50%; bottom: 80px; width: calc(100% - 30px); font-size: 11px; }
}


/* Contraste dos botões principais no tema preto. */
button, .button { background: #cfad71; color: #111111; }
.logout { background: transparent; color: #a5b4a8; }
.secondary { background: #1b1b1b; color: #c3d7c7; }
.mobile-nav a.active { color: #e0c58b; background: #292721; }
