/* LUMÉA Atelier · identidade compartilhada. Variáveis antigas apontam para uma única paleta. */
html:root, html:root[data-theme] {
  color-scheme: light;
  --next-paper: #f7f4ec;
  --next-surface: #fffefa;
  --next-soft: #eeeee4;
  --next-muted: #65716a;
  --next-border: #d9ded4;
  --next-ink: #243c35;
  --next-brand: #24584d;
  --next-on-brand: #fffefa;
  --next-copper: #ad6242;
  --next-positive: #246848;
  --next-negative: #a23d39;
  --next-heading: Georgia, "Times New Roman", serif;
  --next-font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --lum-font-sans: var(--next-font);
  --lum-color-canvas: var(--next-paper);
  --lum-color-surface: var(--next-surface);
  --lum-color-surface-raised: var(--next-surface);
  --lum-color-surface-subtle: var(--next-soft);
  --lum-color-text: var(--next-ink);
  --lum-color-text-muted: var(--next-muted);
  --lum-color-text-soft: var(--next-muted);
  --lum-color-border: var(--next-border);
  --lum-color-border-strong: #acb8ac;
  --lum-color-brand: var(--next-brand);
  --lum-color-brand-strong: #184238;
  --lum-color-brand-soft: #e3ece3;
  --lum-color-accent: var(--next-copper);
  --lum-color-accent-soft: #f5e8df;
  --lum-color-positive: var(--next-positive);
  --lum-color-positive-soft: #e8f0e5;
  --lum-color-negative: var(--next-negative);
  --lum-color-negative-soft: #faeae4;
  --lum-color-warning: #855518;
  --lum-color-warning-soft: #f5ebd7;
  --lum-color-info: #365e69;
  --lum-color-info-soft: #e5eff0;
  --lum-shadow-xs: 0 1px 1px #243c3506;
  --lum-shadow-sm: 0 4px 20px #243c3506;
  --lum-shadow-md: 0 14px 40px #243c350a;
  --lum-shadow-lg: 0 28px 80px #15282025;
  --lum-radius-md: .55rem;
  --lum-radius-lg: .8rem;
  --lum-radius-xl: 1rem;
  --bg: var(--next-paper); --panel: var(--next-surface); --panel-2: var(--next-soft); --panel-soft: var(--next-soft);
  --text: var(--next-ink); --muted: var(--next-muted); --line: var(--next-border);
  --brand: var(--next-brand); --brand-2: var(--lum-color-brand-soft);
  --brand-strong: var(--lum-color-brand-strong); --brand-soft: var(--lum-color-brand-soft); --accent: var(--next-copper);
  --good: var(--next-positive); --good-bg: var(--lum-color-positive-soft);
  --bad: var(--next-negative); --bad-bg: var(--lum-color-negative-soft);
  --warn: var(--lum-color-warning); --warn-bg: var(--lum-color-warning-soft);
  --surface: var(--next-surface); --border: var(--next-border); --radius: 1rem;
  --shadow: var(--lum-shadow-md);
  --comfort-bg: var(--next-paper); --comfort-surface: var(--next-surface);
  --comfort-text: var(--next-ink); --comfort-muted: var(--next-muted);
  --comfort-border: var(--next-border); --comfort-primary: var(--next-brand);
  --comfort-panel: var(--next-surface); --comfort-panel-soft: var(--next-soft);
  --comfort-line: var(--next-border); --comfort-brand: var(--next-brand);
  --comfort-brand-hover: var(--lum-color-brand-strong);
  --comfort-good: var(--next-positive); --comfort-bad: var(--next-negative);
  --comfort-warn: var(--lum-color-warning); --comfort-shadow: var(--lum-shadow-sm);
}
html:root[data-theme="dark"] {
  color-scheme: dark;
  --next-paper: #142420; --next-surface: #1c3029; --next-soft: #263b32;
  --next-muted: #b3c3b6; --next-border: #3b5044; --next-ink: #f0eddf;
  --next-on-brand: #142420; --next-brand: #adc8a6; --next-copper: #e4ae85;
  --next-positive: #a1d5ac; --next-negative: #f2ada0;
  --lum-color-border-strong: #778d77;
  --lum-color-brand-strong: #c7dcbc; --lum-color-brand-soft: #2d4738;
  --lum-color-positive-soft: #243d2c; --lum-color-negative-soft: #432e2a;
  --lum-color-warning: #e9c895; --lum-color-warning-soft: #3d3725;
  --lum-color-info: #a5c9cb; --lum-color-info-soft: #253d3d;
  --lum-color-accent-soft: #483a2e;
}
html:root body.lumea-next, html:root[data-theme] body.lumea-next {
  font-family: var(--next-font); background: var(--next-paper); color: var(--next-ink);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
html body.lumea-next::before { display: none; }
body.lumea-next .brand-mark {
  background: transparent url('/assets/logo.svg') center / contain no-repeat;
  font-size: 0; box-shadow: none; border: 0; border-radius: 0;
}
body.lumea-next button, body.lumea-next input, body.lumea-next select, body.lumea-next textarea { font-family: var(--next-font); }
body.lumea-next a { color: var(--next-brand); text-underline-offset: 4px; }
body.lumea-next .skip-link { color: var(--next-paper); background: var(--next-ink); }
body.lumea-next :where(a,button,input,textarea,select,summary,[tabindex]):focus-visible {
  outline: 2px solid var(--next-copper); outline-offset: 4px;
}
body.lumea-next .primary { color: #fffefa; background: var(--next-brand); border-radius: 7px; letter-spacing: .015em; box-shadow: none; }
html[data-theme="dark"] body.lumea-next .primary { color: #142420; }
body.lumea-next .primary:hover:not(:disabled) { background: var(--lum-color-brand-strong); }
body.lumea-next .environment-banner {
  position: relative; background: var(--next-soft); color: var(--next-ink); border-bottom: 1px solid var(--next-border);
  padding: 8px 20px; font-weight: 600; font-size: .7rem; letter-spacing: .045em; text-align: center;
}
body.lumea-next .toast { border-radius: 8px; box-shadow: var(--lum-shadow-lg); }
body.lumea-next input, body.lumea-next select, body.lumea-next textarea {
  background: var(--next-surface); border-color: var(--next-border); border-radius: 6px; color: var(--next-ink);
}
body.lumea-next input::placeholder, body.lumea-next textarea::placeholder { color: var(--next-muted); opacity: .85; font-weight: 400; }

/* Entrée: uma composição editorial, sem dados financeiros fictícios. */
body.lumea-next #auth-screen.auth-shell {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, 1fr);
  min-height: calc(100svh - 34px); padding: 0; background: var(--next-paper); gap: 0;
}
body.lumea-next #auth-screen .brand-panel {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  overflow: hidden; color: #25463a; background: #e8edde;
  padding: clamp(28px, 4vw, 64px) clamp(28px, 5.5vw, 88px); border: 0; border-right: 1px solid #d9dfd0;
  border-radius: 0; gap: 0; isolation: isolate;
}
body.lumea-next #auth-screen .brand-panel::before, body.lumea-next #auth-screen .brand-panel::after { display: none; }
body.lumea-next .auth-logo { display: flex; align-items: center; gap: 14px; color: #25463a; text-decoration: none; }
body.lumea-next .auth-logo .brand-mark { width: 45px; height: 51px; flex: 0 0 45px; }
body.lumea-next #auth-screen .auth-logo .brand-mark { background: transparent url('/assets/logo.svg') center / contain no-repeat; box-shadow: none; border: 0; border-radius: 0; font-size: 0; }
body.lumea-next .auth-logo strong { font-size: 1.35rem; font-weight: 650; letter-spacing: .16em; }
body.lumea-next .auth-logo small { display: block; font-family: var(--next-font); font-size: .48rem; letter-spacing: .27em; font-weight: 600; margin-top: 3px; }
body.lumea-next .auth-story { position: relative; z-index: 2; padding-top: clamp(42px, 6vw, 85px); }
body.lumea-next #auth-screen .brand-panel .eyebrow { font-size: .62rem; letter-spacing: .14em; font-weight: 650; color: #54705c; }
body.lumea-next #auth-screen .brand-panel h1 {
  font-family: var(--next-heading); font-weight: 400; letter-spacing: -.04em; line-height: 1.05;
  font-size: clamp(2.75rem, 4.5vw, 5rem); margin: 22px 0; max-width: 620px; color: #25463a;
}
body.lumea-next #auth-screen .brand-panel h1 em { color: #8d543a; font-weight: 400; }
body.lumea-next #auth-screen .brand-copy { font-size: .93rem; line-height: 1.8; max-width: 400px; margin: 0; color: #536654; }
body.lumea-next .auth-composition { position: relative; align-self: stretch; height: 200px; min-height: 150px; margin-top: 24px; }
body.lumea-next .auth-arch { position: absolute; width: 176px; height: 192px; right: 36px; bottom: -25px; border: 1px solid #bdc9b4; border-radius: 110px 110px 8px 8px; background: #d7e0ca; }
body.lumea-next .auth-arch::before { content: ''; position: absolute; width: 82px; height: 164px; bottom: 0; left: 33px; border: 1px solid #a7b89c; border-radius: 70px 70px 0 0; transform: rotate(-18deg); transform-origin: bottom; }
body.lumea-next .arch-line { position: absolute; width: 222px; height: 80px; border: 1px solid #9baa87; border-radius: 50%; left: -86px; bottom: 30px; transform: rotate(-28deg); }
body.lumea-next .arch-orbit { position: absolute; width: 50px; height: 50px; border-radius: 50%; background: #ba7854; right: -19px; top: 9px; }
body.lumea-next .auth-note { position: absolute; bottom: 30px; left: 0; z-index: 2; display: flex; align-items: center; gap: 15px; background: #fffef5; color: #25463a; border: 1px solid #f6f5e9; box-shadow: 0 12px 36px #34482b0c; border-radius: 9px; padding: 19px 24px; transform: rotate(-3deg); }
body.lumea-next .note-symbol { display: grid; place-items: center; width: 40px; height: 40px; background: #e7eddc; color: #426447; font-size: 1.6rem; border-radius: 50%; }
body.lumea-next .auth-note small { font-size: .5rem; font-weight: 650; letter-spacing: .16em; display: block; margin-bottom: 3px; }
body.lumea-next .auth-note strong { font-family: var(--next-heading); font-size: 1.1rem; font-weight: 400; }
body.lumea-next .auth-flower { position: absolute; right: 0; top: 10px; width: 32px; height: 32px; }
body.lumea-next .auth-flower i { position: absolute; width: 16px; height: 28px; background: #8b9e7b; border-radius: 80%; left: 8px; transform-origin: center; }
body.lumea-next .auth-flower i:nth-child(2) { transform: rotate(45deg); }
body.lumea-next .auth-flower i:nth-child(3) { transform: rotate(90deg); }
body.lumea-next .auth-flower i:nth-child(4) { transform: rotate(135deg); }
body.lumea-next .auth-bottom { padding-top: 45px; margin-top: auto; position: relative; z-index: 2; }
body.lumea-next .auth-bottom p { font-family: var(--next-heading); font-size: .82rem; color: #536654; }
body.lumea-next #auth-screen .public-links { gap: 22px; margin: 16px 0 0; }
body.lumea-next #auth-screen .public-links a { color: #536654; font-size: .66rem; font-weight: 500; }
body.lumea-next #auth-screen .auth-card-wrap { display: grid; align-content: center; justify-items: center; padding: 60px clamp(28px, 5vw, 80px); background: var(--next-paper); }
body.lumea-next #auth-screen .auth-card {
  width: min(100%, 380px); border: 0; background: transparent; padding: 0; box-shadow: none; border-radius: 0; gap: 22px;
}
body.lumea-next .auth-heading { padding-bottom: 12px; }
body.lumea-next #auth-screen .auth-card .eyebrow { color: var(--next-copper); font-size: .62rem; font-weight: 650; letter-spacing: .18em; margin: 0 0 20px; }
body.lumea-next #auth-screen .auth-card h2 { font-family: var(--next-heading); font-size: clamp(2rem, 3vw, 3rem); font-weight: 400; line-height: 1.13; letter-spacing: -.035em; margin: 0 0 16px; }
body.lumea-next #auth-screen .auth-card .muted { margin: 0; font-size: .88rem; font-weight: 400; line-height: 1.65; }
body.lumea-next #auth-screen .auth-card label { color: var(--next-ink); font-size: .72rem; font-weight: 600; gap: 8px; }
body.lumea-next #auth-screen .auth-card input:not([type="checkbox"]) { height: 52px; background: var(--next-surface); border: 1px solid var(--next-border); border-radius: 6px; font-size: .86rem; padding: 14px 16px; }
body.lumea-next #auth-screen .auth-card .primary { min-height: 53px; font-size: .83rem; font-weight: 600; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; margin-top: 4px; background: var(--next-brand); color: var(--next-on-brand); border-radius: 6px; box-shadow: none; }
body.lumea-next #auth-screen .auth-card .primary span { font-size: 1.35rem; font-weight: 400; }
body.lumea-next #auth-screen .link-btn { min-height: 44px; font-size: .78rem; padding: 10px; border-radius: 6px; color: var(--next-brand); font-weight: 600; }
body.lumea-next #auth-screen #show-signup { border: 1px solid var(--next-border); background: transparent; }
body.lumea-next #auth-screen #forgot-password { font-size: .72rem; color: var(--next-muted); margin-top: -15px; font-weight: 400; }
body.lumea-next .auth-divider { display: flex; align-items: center; gap: 12px; color: var(--next-muted); font-size: .5rem; letter-spacing: .1em; margin: 6px 0 -6px; }
body.lumea-next .auth-divider::before, body.lumea-next .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--next-border); }
body.lumea-next #auth-screen .check-line { display: flex; gap: 9px; line-height: 1.6; flex-wrap: wrap; align-items: flex-start; }
body.lumea-next #auth-screen .check-line input { width: 18px; height: 18px; min-height: 0; flex: 0 0 18px; accent-color: var(--next-brand); }
body.lumea-next #onboarding-screen { background: var(--next-paper); padding: 30px; }
body.lumea-next #onboarding-screen .onboarding-card { background: var(--next-surface); padding: clamp(24px, 5vw, 50px); border-radius: 12px; border: 1px solid var(--next-border); box-shadow: var(--lum-shadow-md); }
body.lumea-next #onboarding-screen h2 { font: 400 2.5rem/1.1 var(--next-heading); letter-spacing: -.03em; }
body.lumea-next #onboarding-screen .progress { background: var(--next-soft); height: 4px; }
body.lumea-next #onboarding-screen .progress span { background: var(--next-brand); }

/* Mesma identidade nas páginas públicas, legais e de suporte. */
body.lumea-next.next-public { background: var(--next-paper); color: var(--next-ink); }
body.lumea-next.next-public header { background: var(--next-surface); border-bottom: 1px solid var(--next-border); }
body.lumea-next.next-public .wrap { max-width: 1180px; padding-inline: 30px; }
body.lumea-next.next-public .nav { min-height: 92px; gap: 24px; flex-wrap: wrap; }
body.lumea-next.next-public .nav a:first-child { font-size: 1.3rem; font-weight: 650; letter-spacing: .15em; display: flex; align-items: center; gap: 12px; margin-right: auto; }
body.lumea-next.next-public .nav a:first-child::before { content: ''; width: 34px; height: 42px; margin-right: 0; border-radius: 0; background: url('/assets/logo.svg') center / contain no-repeat; box-shadow: none; }
body.lumea-next.next-public a { color: var(--next-brand); }
body.lumea-next.next-public .hero { padding-block: 70px 44px; max-width: 840px; }
body.lumea-next.next-public .hero::after {
  width: 11rem;
  height: 11rem;
  right: 30px;
  top: 48px;
  border-color: color-mix(in srgb, var(--next-copper) 22%, transparent);
  box-shadow: 0 0 0 2.5rem color-mix(in srgb, var(--next-brand) 4%, transparent);
}
body.lumea-next.next-public h1 { font: 400 clamp(2.5rem, 5vw, 4.5rem)/1.07 var(--next-heading); letter-spacing: -.04em; margin: 20px 0; color: var(--next-ink); }
body.lumea-next.next-public h2 { font: 400 1.6rem/1.2 var(--next-heading); letter-spacing: -.02em; color: var(--next-ink); }
body.lumea-next.next-public .hero p { color: var(--next-muted); line-height: 1.8; max-width: 740px; }
body.lumea-next.next-public .grid { gap: 18px; }
body.lumea-next.next-public .card { padding: 28px; background: var(--next-surface); border: 1px solid var(--next-border); border-radius: 10px; box-shadow: none; }
body.lumea-next.next-public .card::after { background: color-mix(in srgb, var(--next-brand) 4%, transparent); }
body.lumea-next.next-public .card:hover { transform: none; border-color: var(--next-border); box-shadow: none; }
body.lumea-next.next-public .card p, body.lumea-next.next-public .card li { color: var(--next-muted); line-height: 1.75; }
body.lumea-next.next-public .tag { border-radius: 4px; color: var(--next-copper); background: var(--lum-color-accent-soft); font-size: .65rem; letter-spacing: .12em; border: 0; }
body.lumea-next.next-public .button { background: var(--next-brand); color: var(--next-surface); border: 0; padding: 13px 22px; border-radius: 6px; font-weight: 600; box-shadow: none; }
body.lumea-next.next-public .button:hover { transform: none; background: var(--lum-color-brand-strong); box-shadow: none; }
body.lumea-next.next-public footer { background: var(--next-soft); color: var(--next-muted); border-color: var(--next-border); margin-top: 64px; padding-block: 25px; font-size: .8rem; }
@media (min-width: 1600px) {
  body.lumea-next #auth-screen .brand-panel { padding-left: max(80px, calc((100vw - 1380px) / 2)); }
  body.lumea-next #auth-screen .auth-card-wrap { padding-right: max(80px, calc((100vw - 1380px) / 2)); }
}
@media (max-width: 1000px) {
  body.lumea-next #auth-screen.auth-shell { grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); }
  body.lumea-next #auth-screen .brand-panel { padding: 35px 32px; }
  body.lumea-next #auth-screen .auth-card-wrap { padding: 40px 30px; }
  body.lumea-next .auth-story { padding-top: 52px; }
  body.lumea-next .auth-composition { height: 170px; }
  body.lumea-next #auth-screen .brand-panel h1 { font-size: 3rem; }
  body.lumea-next .auth-note { padding: 15px; }
  body.lumea-next .auth-note strong { font-size: 1rem; }
}
@media (max-width: 700px) {
  body.lumea-next #auth-screen.auth-shell { grid-template-columns: minmax(0, 1fr); min-height: 100svh; }
  body.lumea-next #auth-screen .brand-panel { min-height: auto; padding: 26px 28px 32px; border-right: 0; border-bottom: 1px solid #d9dfd0; }
  body.lumea-next .auth-logo .brand-mark { width: 31px; height: 36px; flex-basis: 31px; }
  body.lumea-next .auth-logo strong { font-size: 1.05rem; }
  body.lumea-next .auth-logo small { font-size: .4rem; }
  body.lumea-next .auth-story { padding-top: 30px; }
  body.lumea-next #auth-screen .brand-panel .eyebrow { font-size: .55rem; }
  body.lumea-next #auth-screen .brand-panel h1 { font-size: 2.6rem; line-height: 1.05; margin: 15px 0; }
  body.lumea-next #auth-screen .brand-panel h1 br:first-child { display: none; }
  body.lumea-next #auth-screen .brand-panel h1 br:first-child::after { content: ' '; }
  body.lumea-next #auth-screen .brand-copy { max-width: 370px; font-size: .82rem; line-height: 1.7; }
  body.lumea-next .auth-composition, body.lumea-next .auth-bottom p { display: none; }
  body.lumea-next .auth-bottom { display: block; margin: 0; padding-top: 4px; }
  body.lumea-next #auth-screen .brand-copy { display: none; }
  body.lumea-next #auth-screen .public-links { margin-top: 10px; }
  body.lumea-next #auth-screen .auth-card-wrap { padding: 38px 28px 24px; }
  body.lumea-next #auth-screen .auth-card { max-width: 430px; gap: 18px; }
  body.lumea-next #auth-screen .auth-card h2 { font-size: 2.1rem; }
  body.lumea-next #auth-screen .auth-card h2 br { display: none; }
  body.lumea-next .auth-heading { padding-bottom: 6px; }
  body.lumea-next #auth-screen .auth-card .eyebrow { margin-bottom: 12px; }
  body.lumea-next .environment-banner { font-size: .65rem; padding: 8px 12px; }
  body.lumea-next.next-public .hero { padding-block: 38px 26px; }
  body.lumea-next.next-public .hero::after { right: 20px; top: 34px; }
  body.lumea-next.next-public .wrap { padding-inline: 20px; }
  body.lumea-next.next-public .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { body.lumea-next *, body.lumea-next *::before, body.lumea-next *::after { transition: none !important; animation: none !important; } }
@media print { body.lumea-next { background: #fff; color: #111; } body.lumea-next .environment-banner, body.lumea-next .auth-composition { display: none; } }
