* { box-sizing: border-box; }
:root { color-scheme: light; --ink:#15171c; --muted:#545a65; --green:#b0165a; --deep:#3b1450; --sage:#f7e7ef; --line:#e3e5ea; --paper:#f3f4f6; --white:#ffffff; --amber:#fff0cd; font: 15px/1.55 'Segoe UI', system-ui, sans-serif; color:var(--ink); background:var(--paper); }
body { margin:0; }
a { color:var(--green); }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { line-height:1.14; }
button,input,select { font:inherit; }
button, .button { cursor:pointer; text-decoration:none; }
button:disabled { cursor:wait; opacity:.65; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:3px solid #b0165a; outline-offset:3px; }
[hidden] { display:none!important; }
.brand { display:inline-flex; width:max-content; align-items:center; gap:.65rem; font-size:1.21rem; color:var(--ink); font-weight:750; letter-spacing:-.035em; text-decoration:none; }
.brand b { font:inherit; color:var(--green); }
.brand-logo { display:block; height:34px; width:auto; } .brand span { padding-left:.57rem; border-left:1px solid var(--line); font-size:.88rem; }
.button, button.primary, button.secondary, button.ghost { min-height:42px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:.57rem .9rem; border:1px solid transparent; border-radius:9px; font-weight:650; white-space:normal; }
.button.primary,.primary { background:var(--green); color:white; }
.button.secondary,.secondary { background:var(--white); color:var(--ink); border-color:var(--line)!important; }
.button.ghost,.ghost { background:transparent; color:inherit; }
.button:hover, button:hover { filter:brightness(.955); }
.small { font-size:.84rem; min-height:35px!important; padding:.35rem .64rem!important; }
.muted { color:var(--muted); }
.stack { display:grid; gap:1rem; }
.row { display:flex; gap:.7rem; align-items:center; flex-wrap:wrap; }
.split { display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.eyebrow { font-size:.76rem; letter-spacing:.105em; text-transform:uppercase; font-weight:750; }
.landing { max-width:1210px; padding:0 32px; margin:auto; }
.landing-nav { min-height:88px; border-bottom:1px solid var(--line); }
.hero { position:relative; display:grid; grid-template-columns:1.15fr .85fr; gap:3rem; align-items:center; padding:clamp(3rem,8vw,6.6rem) 0 4.2rem; }
.hero h1 { margin:.85rem 0 1.1rem; font-size:clamp(2.7rem,5.8vw,4.55rem);font-weight:650;line-height:1.01; letter-spacing:-.052em; max-width:680px; }
.hero h1 em { color:var(--green); font-weight:normal; }
.hero p { max-width:33rem; font-size:1.15rem; color:var(--muted); margin-bottom:1.5rem; }
.hero-art { min-height:328px; display:grid; align-items:center; padding:clamp(1.1rem,3.4vw,2.7rem); border-radius:22px; background:var(--deep); color:#ffffff; overflow:hidden; position:relative; }
.hero-art::after,.welcome::after { content:''; position:absolute; pointer-events:none; width:350px;height:350px;border:1px solid #ec83b848; border-radius:50%; right:-106px;top:-110px; box-shadow:0 0 0 24px #ec83b822,0 0 0 48px #ec83b818,0 0 0 72px #ec83b815,0 0 0 96px #ec83b818; }
.art-card { position:relative; z-index:1; background:#ffffff; color:var(--ink); padding:1.35rem; border-radius:14px; box-shadow:0 18px 46px #230d3466; }
.art-card h2 { margin:.25rem 0 .85rem; font-size:1.55rem;font-weight:650; letter-spacing:-.045em; }
.art-card .eyebrow { color:var(--green); }
.art-line { display:flex; align-items:center; gap:11px; padding:.65rem 0; border-top:1px solid var(--line); }
.art-line p { font-size:.84rem; margin:0; }
.glyph { width:34px; height:34px; flex:none; display:grid; place-items:center; border-radius:8px; background:var(--sage); color:var(--green); font-weight:750; }
.audiences { display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; border-top:1px solid var(--line); padding:1.4rem 0 2rem; }
.audiences section { padding:1.2rem 1.2rem 1.2rem 0; }
.audiences h2 { font-size:1.55rem;font-weight:650; margin-bottom:.4rem; letter-spacing:-.04em; }
.landing footer { border-top:1px solid var(--line); padding:1.2rem 0 2rem; }
.workspace { min-height:100vh; display:grid; grid-template-columns:234px 1fr; }
.sidebar { display:flex; flex-direction:column; position:sticky; top:0; height:100vh; padding:24px 16px 18px; background:var(--white); border-right:1px solid var(--line); }
.sidebar .brand { margin:0 0 2.15rem .5rem; }
.sidebar nav { display:grid; gap:4px; }
.sidebar .nav-name { padding:0 .65rem .5rem; color:var(--muted); }
.nav-btn { border:0;background:transparent;color:var(--muted);text-align:left; font-weight:620; min-height:44px; border-radius:8px; padding:.64rem .75rem; display:flex; align-items:center; gap:.65rem; }
.nav-btn[aria-current] { background:var(--sage);color:var(--deep); }
.nav-btn span { width:1.15rem; text-align:center; }
.sidebar-footer { margin-top:auto; border-top:1px solid var(--line); padding:.9rem .3rem 0; display:flex; align-items:center; justify-content:space-between; gap:.25rem; }
.sidebar-footer strong { overflow-wrap:anywhere; }
.main { min-width:0; }
.top { background:var(--white); border-bottom:1px solid var(--line); min-height:68px; padding:12px clamp(16px,3.35vw,50px); }
.top select { min-height:38px; }
.content { max-width:1430px; margin:auto; padding:clamp(18px,3.4vw,48px); padding-top:clamp(22px,3vw,38px); display:grid; gap:20px; }
.page-title h1 { font-size:clamp(1.65rem,3.7vw,2.18rem);font-weight:650;line-height:1.1; letter-spacing:-.035em; margin:.12rem 0 .35rem; overflow-wrap:anywhere; }
.welcome { background:var(--deep);color:#ffffff; padding:clamp(1.3rem,3vw,2.4rem); border-radius:16px; overflow:hidden; position:relative; }
.welcome > * { position:relative; z-index:1; }
.welcome h2 { font-size:clamp(1.5rem,3.3vw,2.25rem);font-weight:650;line-height:1.1; letter-spacing:-.04em; margin:.4rem 0 .7rem; }
.welcome p { max-width:36rem; color:#eedbea; margin-bottom:1rem; }
.welcome .eyebrow { color:#efd1e4; }
.metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.metric,.card { background:var(--white); border:1px solid var(--line); border-radius:13px; padding:clamp(.9rem,2vw,1.3rem); min-width:0; }
.metric strong { display:block; font-size:clamp(1.15rem,2.45vw,1.82rem); letter-spacing:-.045em; line-height:1.2; margin:.4rem 0; overflow-wrap:anywhere; }
.metric .muted { font-size:.86rem; }
.card h2 { font-size:1.17rem; margin-bottom:.3rem; }
.columns { display:grid; grid-template-columns:1.32fr 1fr; gap:13px; }
meter { display:block; width:100%; height:12px; margin:.85rem 0 .4rem; }
meter::-webkit-meter-bar { border:0;background:var(--sage); }
meter::-webkit-meter-optimum-value { background:var(--green); }
.list { margin:.65rem 0 0; padding:0; list-style:none; }
.list > li { border-top:1px solid var(--line); padding:.78rem 0; }
.status { display:inline-flex; padding:.19rem .55rem; border-radius:6px; background:#d7f2ec; color:#0d5147; font-size:.78rem;font-weight:650; }
.status.warn { background:var(--amber); color:#6b460f; }
.scroll { overflow:auto; }
table { border-collapse:collapse;width:100%; text-align:left; font-size:.91rem; }
td,th { padding:.72rem .62rem; border-bottom:1px solid var(--line); }
td:first-child,th:first-child { padding-left:0; }
th { color:var(--muted); font-weight:600; white-space:nowrap; }
td:last-child { padding-right:0; }
tbody tr:last-child td { border:0; }
.empty { padding:1.15rem 0 .4rem; color:var(--muted); }
.outbox-text { margin:.55rem 0 .75rem; overflow-wrap:anywhere; }
.year { border:1px solid var(--line); border-radius:8px; background:var(--white); color:var(--ink); padding:.3rem .55rem; }
dialog { width:min(95vw,480px); border:1px solid var(--line); border-radius:15px; padding:1.4rem; color:var(--ink); background:var(--white); max-height:92dvh; }
dialog::backdrop { background:#25142f89; }
dialog form { display:grid; gap:.85rem; margin-top:1rem; }
label { display:grid; gap:.27rem; font-weight:625; }
label.check { display:flex; gap:.5rem; align-items:flex-start; font-weight:500; }
label input:not([type=checkbox]),label select { width:100%; min-height:43px; border:1px solid #c7c8d0; border-radius:7px; background:white; color:var(--ink); padding:.43rem .62rem; font-weight:450; }
input[type=checkbox] { accent-color:var(--green); flex:none; }
.form-error { color:#9e2927; font-size:.86rem; }
#notice { position:fixed; bottom:18px; right:18px; max-width:calc(100% - 36px); background:var(--deep); color:white; padding:.7rem 1rem;border-radius:9px; z-index:3; }
@media(max-width:880px) { .workspace{grid-template-columns:182px 1fr} .sidebar{padding-inline:9px} .hero{gap:1.4rem} .columns{grid-template-columns:1fr} }
@media(max-width:640px) { .landing{padding:0 17px} .landing-nav{min-height:69px} .hero,.audiences{grid-template-columns:1fr} .hero{padding:2.35rem 0 1.8rem} .hero-art{min-height:0} .workspace{display:block} .sidebar{position:static;height:auto;padding:12px 12px 5px;border-right:0;border-bottom:1px solid var(--line)} .sidebar .brand{margin:0 0 .6rem} .sidebar nav{display:flex;overflow:auto;gap:5px} .nav-btn{font-size:.9rem;white-space:nowrap} .sidebar nav .nav-name,.sidebar-footer strong{display:none} .sidebar-footer{margin:0;position:absolute;top:9px;right:12px;border:0;padding:0} .top{min-height:54px} .metrics{gap:8px} .metric{padding:.6rem} .metric strong{font-size:1.12rem} .metric .muted{font-size:.73rem} }
@media(max-width:365px) { .metrics{grid-template-columns:1fr} }

/* Cabeçalho e superfícies do NotaFlow, com menus por produto. */
.workspace { display:block; }
.sidebar { height:auto; min-height:64px; display:flex; flex-direction:row; align-items:center; gap:20px; padding:10px clamp(16px,3.35vw,50px); border-right:0; border-bottom:1px solid var(--line); z-index:2; }
.sidebar .brand { margin:0; flex:none; }
.sidebar nav { display:flex; flex:1; min-width:0; overflow:auto; }
.sidebar nav .nav-name { display:none; }
.nav-btn { white-space:nowrap; }
.nav-btn span { display:none; }
.sidebar-footer { position:static; border:0; padding:0; margin:0 0 0 auto; flex:none; max-width:190px; }
.sidebar-footer strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.top { min-height:49px; }
.metrics { gap:0; background:var(--white); border:1px solid var(--line); border-radius:12px; }
.metric { border:0; border-radius:0; }
.metric + .metric { border-left:1px solid var(--line); }
@media(max-width:900px) {
  .sidebar { flex-wrap:wrap; gap:4px 12px; padding-bottom:6px; }
  .sidebar nav { order:3; flex-basis:100%; }
}
@media(max-width:640px) {
  .sidebar { position:static; }
  .sidebar .nav-btn { padding-inline:.55rem; }
}
@media(max-width:365px) {
  .metric + .metric { border-left:0; border-top:1px solid var(--line); }
}