:root {
  --bg: #f1fffa;
  --surface: #ffffff;
  --surface-2: #eef5f2;
  --border: #dde8e3;
  --text: #0b0b0b;
  --muted: #5f6b66;
  --brand: #1c946b;
  --brand-2: #2ef4af;
  --brand-grad: linear-gradient(135deg, #2ef4af 0%, #1c946b 100%);
  --brand-soft: #dcfbef;
  --ink: #0b0b0b;
  --ink-2: #151816;
  --ink-line: #232825;
  --gold: #c6a15b;
  --gold-soft: #f7efdf;
  --danger: #d64545;
  --danger-soft: #fdecec;
  --warn: #a8701a;
  --warn-soft: #fdf4e3;
  --info: #3767c4;
  --info-soft: #eaf0fb;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11,11,11,.04), 0 8px 24px -16px rgba(11,11,11,.12);
  --font-display: 'Sora', 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Manrope, system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }

/* Layout */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 4px 10px 16px; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); display: grid; place-items: center; color: #0b0b0b; font-weight: 800; font-size: 14px; }
.quick { display: flex; align-items: center; gap: 8px; justify-content: center; background: var(--text); color: #fff; border: 0; border-radius: 10px; padding: 10px; cursor: pointer; font-weight: 500; margin-bottom: 14px; }
.quick:hover { opacity: .9; }
.nav-group { font-size: 12px; color: var(--muted); padding: 14px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--text); border: 0; background: none; width: 100%; text-align: left; }
.nav-item:hover { background: var(--surface-2); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-item svg { width: 16px; height: 16px; flex: none; }
.nav-item .lock { margin-left: auto; width: 12px; height: 12px; opacity: .5; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--border); padding: 12px 10px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.sidebar-foot .who { flex: 1; min-width: 0; line-height: 1.2; }
.sidebar-foot .who small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 17px; margin: 0; font-weight: 600; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; }
.content { padding: 24px 28px 60px; max-width: 1280px; }

/* Controls */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); border-radius: 9px; padding: 8px 12px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--text); color: #fff; border-color: var(--text); }
.btn.primary:hover { opacity: .9; }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 5px 9px; font-size: 13px; }
.btn svg { width: 15px; height: 15px; }
.icon-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 9px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px; background: var(--surface); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 80px; resize: vertical; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
label.field > span { font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; }

/* Cards */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 22px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.kpi .ic { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 12px; }
.kpi .ic svg { width: 16px; height: 16px; }
.kpi .label { color: var(--muted); font-size: 13px; }
.kpi .value { font-size: 26px; font-weight: 700; margin: 4px 0 6px; letter-spacing: -.02em; }
.kpi .hint { color: var(--muted); font-size: 12px; }
.kpi.admin { border-color: #cdeee1; background: linear-gradient(180deg, #fbfffd, #fff); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card h3 { margin: 0 0 4px; font-size: 15px; }
.card .sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }

/* Table */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: 12px; color: var(--muted); font-weight: 500; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: #fafbfa; }
td.wrap { white-space: normal; }
.empty { color: var(--muted); text-align: center; padding: 30px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.badge.green { background: var(--brand-soft); color: var(--brand); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.badge.yellow { background: var(--warn-soft); color: var(--warn); }
.badge.blue { background: var(--info-soft); color: var(--info); }
.badge.dark { background: var(--text); color: #fff; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }

/* Kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--surface-2); border-radius: var(--radius); padding: 10px; min-height: 200px; }
.col.drop { outline: 2px dashed var(--brand); }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; font-weight: 600; font-size: 13px; }
.col-head .count { color: var(--muted); font-weight: 500; }
.k-card { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 12px; margin-bottom: 8px; cursor: grab; }
.k-card:hover { border-color: #cfd5d2; }
.k-card .t { font-weight: 500; margin-bottom: 6px; }
.k-card .m { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 12px; }

/* Drawer / modal */
.overlay { position: fixed; inset: 0; background: rgba(11,11,11,.35); z-index: 50; display: flex; justify-content: flex-end; }
.overlay.center { justify-content: center; align-items: center; padding: 16px; }
.drawer { width: min(640px, 100%); height: 100%; background: var(--surface); overflow-y: auto; display: flex; flex-direction: column; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: 16px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.panel-head h2 { margin: 0; font-size: 17px; flex: 1; }
.panel-body { padding: 20px 22px; }
.panel-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); }
.panel-foot .left { margin-right: auto; }
.tabs { display: flex; gap: 4px; padding: 0 22px; border-bottom: 1px solid var(--border); }
.tab { border: 0; background: none; padding: 12px 10px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 500; }
.tab.active { color: var(--text); border-color: var(--text); }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }

/* Onboarding */
.steps { display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 11px; padding: 12px; }
.step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 600; font-size: 12px; flex: none; }
.step.done .n { background: var(--brand); color: #fff; }
.step.doing .n { background: var(--warn-soft); color: var(--warn); }
.step .txt { flex: 1; }
.step .txt small { color: var(--muted); display: block; }
.step select { width: 150px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; min-width: 80px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); }

/* List rows */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .grow small { color: var(--muted); display: block; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 30% 20%, #e6faf2, var(--bg) 50%); }
.login .card { width: min(400px, 100%); padding: 28px; }
.login h1 { font-size: 22px; margin: 18px 0 6px; }
.login p { color: var(--muted); margin: 0 0 20px; }
.login .btn { width: 100%; justify-content: center; margin-top: 12px; padding: 11px; }
.notice { background: var(--brand-soft); color: #11684b; padding: 12px; border-radius: 10px; margin-top: 14px; font-size: 13px; }
.notice.err { background: var(--danger-soft); color: var(--danger); }

#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 99; }
#toast .t { background: var(--text); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }

.masked { filter: blur(7px); user-select: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .menu-btn { display: grid; }
  .content { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 10px; }
  .toolbar input, .toolbar select { min-width: 0; flex: 1; }
}


/* ===== Identidade Axia Growth ===== */
h1, h2, h3, .kpi .value, .wordmark { font-family: var(--font-display); }
.wordmark { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.wordmark b { color: #fff; font-weight: 800; }
.wordmark span { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

.sidebar { background: var(--ink); border-right: 1px solid var(--ink-line); color: #e9f2ee; }
.logo { gap: 10px; padding: 6px 10px 20px; font-size: 17px; }
.logo small, .login-brand small { font-family: var(--font-display); font-size: 10px; letter-spacing: .2em; color: var(--ink); background: var(--brand-2); padding: 3px 6px; border-radius: 5px; font-weight: 700; }
.quick { background: var(--brand-grad); color: var(--ink); font-weight: 700; box-shadow: 0 6px 20px -8px rgba(46,244,175,.6); }
.nav-group { color: #7f8c86; text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; font-weight: 600; }
.nav-item { color: #c9d6d0; }
.nav-item:hover { background: var(--ink-2); color: #fff; }
.nav-item.active { background: var(--ink-2); color: var(--brand-2); box-shadow: inset 2px 0 0 var(--brand-2); }
.nav-item .lock { color: var(--gold); opacity: .9; }
.sidebar-foot { border-top-color: var(--ink-line); }
.sidebar-foot .avatar { background: var(--brand-grad); color: var(--ink); }
.sidebar-foot .who small { color: #7f8c86; }
.sidebar-foot .icon-btn { background: transparent; border-color: var(--ink-line); color: #c9d6d0; }
.sidebar-foot .icon-btn:hover { background: var(--ink-2); }

.topbar { background: rgba(241,255,250,.85); backdrop-filter: blur(10px); }
.topbar h1 { font-size: 18px; letter-spacing: -.01em; }

.btn.primary { background: var(--ink); border-color: var(--ink); }
.btn.primary:hover { background: #1a1f1c; opacity: 1; }
.kpi .ic { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.kpi .value { font-weight: 700; }

/* cards de áreas restritas (financeiro) em escuro + dourado */
.kpi.admin { background: var(--ink); border-color: var(--ink-line); color: #fff; background-image: radial-gradient(120% 80% at 100% 0%, rgba(46,244,175,.14), transparent 60%); }
.kpi.admin .label, .kpi.admin .hint { color: #9fb0a8; }
.kpi.admin .ic { background: rgba(46,244,175,.12); color: var(--brand-2); }
.kpi.admin .value { color: #fff; }
.badge.dark { background: var(--gold-soft); color: #7a5b1f; }
.badge.gold { background: var(--gold-soft); color: #7a5b1f; }

.progress > i { background: var(--brand-grad); }
.step.done .n { background: var(--brand-grad); color: var(--ink); }
.tab.active { border-color: var(--brand); }
.col { background: #e6f2ed; }
th { background: #f4faf7; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }

/* login escuro com a marca */
.login { background: var(--ink); background-image: radial-gradient(60% 50% at 80% 10%, rgba(46,244,175,.18), transparent 70%), radial-gradient(50% 40% at 10% 90%, rgba(28,148,107,.22), transparent 70%); }
.login .card { background: #101311; border-color: var(--ink-line); color: #fff; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.login h1 { color: #fff; }
.login p, .login label.field { color: #9fb0a8; }
.login input { background: #0b0d0c; border-color: var(--ink-line); color: #fff; }
.login .btn.primary { background: var(--brand-grad); color: var(--ink); border: 0; font-weight: 700; }
.login-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.login .notice { background: rgba(46,244,175,.1); color: var(--brand-2); }
.login .notice.err { background: rgba(214,69,69,.12); color: #ff8a8a; }
.login .btn:not(.primary) { background: transparent; color: #fff; border-color: var(--ink-line); }

/* login: senha, lembrar de mim, links */
.login-fields { display: flex; flex-direction: column; gap: 14px; }
.pw { position: relative; }
.pw input { padding-right: 42px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; color: #7f8c86; cursor: pointer; display: grid; place-items: center; }
.pw-eye svg { width: 16px; height: 16px; }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; color: #c9d6d0; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--brand-2); margin: 0; }
.login a { color: var(--brand-2); }
.login-foot { margin-top: 18px; text-align: center; color: #9fb0a8; font-size: 13px; }
.sidebar-foot { gap: 8px; }
