:root {
  --ink: #323234;
  --muted: #606062;
  --accent: #F07335;
  --accent-press: #dc6528;
  --paper: #F2EBDF;
  --mist: #E6E7E8;
  --card: #fffdf8;
  --line: rgba(96, 96, 98, .16);
  --ok: #2c6b48;
  --warn: #8d5a10;
  --risk: #8e342c;
  --stop: #7c7d80;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --radius: 18px;
  --top: 72px;
  --shadow: 0 10px 30px rgba(50, 50, 52, .04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 420px at 100% -10%, rgba(240, 115, 53, .08), transparent 60%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--ink); color: var(--paper);
  padding: 8px 12px; border-radius: 8px; z-index: 20;
}
.skip:focus { top: 12px; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  min-height: var(--top); padding: 12px 28px;
  background: rgba(242, 235, 223, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-family: var(--serif); font-size: 20px;
  box-shadow: inset 0 -8px 0 var(--accent);
}
.brand strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 560; letter-spacing: -.03em; line-height: 1; }
.brand em { display: block; margin-top: 3px; font-style: normal; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.search {
  flex: 1; display: flex; align-items: center; gap: 8px; max-width: 560px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 44px;
  position: relative;
}
.search input { border: 0; outline: 0; background: transparent; width: 100%; }
.search:focus-within { border-color: var(--accent); }
.search-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px;
  box-shadow: var(--shadow); display: none;
}
.search-pop a { display: block; padding: 8px 10px; border-radius: 10px; }
.search-pop a:hover { background: var(--paper); }
.search-pop small { color: var(--muted); display: block; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.iconbtn, .avatar-link {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); display: grid; place-items: center; position: relative;
}
.bell-n {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--accent); color: #24170f; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}
.who { display: flex; align-items: center; gap: 10px; padding-right: 4px; }
.who span { display: block; }
.who small { color: var(--muted); }

.worknav {
  display: flex; gap: 4px; padding: 0 28px; overflow-x: auto;
  border-bottom: 1px solid var(--line); background: rgba(242, 235, 223, .72);
}
.worknav a {
  padding: 14px 12px 12px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent;
}
.worknav a.is-on { color: var(--ink); border-color: var(--accent); font-weight: 600; }

.stage { width: min(1180px, calc(100% - 40px)); margin: 28px auto 48px; position: relative; }
.page-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 22px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.display { font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); font-weight: 560; letter-spacing: -.035em; line-height: 1.02; }
.lede { color: var(--muted); max-width: 46ch; margin-top: 8px; }
h2.sec { font-family: var(--serif); font-size: 28px; font-weight: 560; letter-spacing: -.03em; margin: 28px 0 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  padding: 10px 16px; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s;
}
.btn:hover { border-color: rgba(96,96,98,.35); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #24170f; font-weight: 650; }
.btn-primary:hover { background: var(--accent-press); }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; color: var(--risk); border-color: rgba(142,52,44,.35); }
.btn-small { padding: 7px 12px; font-size: 14px; }
.btn.is-busy { opacity: .65; pointer-events: none; }
.btn-add { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #24170f; cursor: pointer; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.chip, .filters a, .filters button.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; color: var(--muted); font-size: 14px;
}
.chip.is-on, .filters a.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row {
  display: grid; grid-template-columns: 132px 1fr auto; gap: 8px 18px;
  padding: 16px 18px; border-bottom: 1px solid var(--line); align-items: center;
  border-left: 3px solid transparent;
}
.row:last-child { border-bottom: 0; }
.row > a.row-go { display: contents; }
.row form { margin: 0; }
.row:hover { background: rgba(242, 235, 223, .45); }
.row.is-risk { border-left-color: var(--risk); }
.row.is-attention { border-left-color: var(--accent); }
.row.is-stop { border-left-color: var(--stop); }
.row .proto { font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.row strong { display: block; font-weight: 600; }
.row .sub { color: var(--muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; color: var(--muted); background: var(--mist); border-radius: 999px; padding: 2px 8px; }

.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.badge-baixa { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.badge-normal { background: var(--mist); color: var(--ink); }
.badge-alta { background: rgba(240,115,53,.16); color: #8a3d12; }
.badge-urgente { background: var(--accent); color: #24170f; }
.badge-critica { background: var(--ink); color: var(--paper); }
.saude { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.saude i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: block; }
.saude-verde { color: var(--ok); }
.saude-amarelo { color: var(--warn); }
.saude-vermelho { color: var(--risk); }
.saude-cinza { color: var(--stop); }
.saude-neutro { color: var(--muted); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stack { display: grid; gap: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .9fr); gap: 18px; align-items: start; }
.aside { display: grid; gap: 14px; }
.meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; }

.field { display: grid; gap: 6px; }
.field label, .lbl { font-size: 13px; font-weight: 650; }
.req { color: #F07335; font-weight: 700; }
.field small, .hint { color: var(--muted); font-size: 13px; }
input[type="text"], input[type="password"], input[type="email"], input[type="date"], input[type="time"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,115,53,.18); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.checkline { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.dyn { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }

.steps { list-style: none; display: flex; gap: 0; padding: 0; margin: 18px 0; overflow-x: auto; }
.steps li { min-width: 92px; position: relative; text-align: center; color: var(--muted); font-size: 12px; }
.steps li i {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--mist); background: var(--paper); display: block; margin: 0 auto 6px;
}
.steps li::before {
  content: ""; position: absolute; top: 5px; left: -50%; right: 50%; height: 2px; background: var(--mist); z-index: -1;
}
.steps li:first-child::before { display: none; }
.steps li.is-done { color: var(--ink); }
.steps li.is-done i { background: var(--ink); border-color: var(--ink); }
.steps li.is-done::before { background: var(--ink); }
.steps li.is-now { color: var(--ink); font-weight: 700; }
.steps li.is-now i { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(240,115,53,.25); background: var(--accent); }

.sla-track { height: 6px; background: var(--mist); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.sla-track span { display: block; height: 100%; background: var(--ink); }
.sla-track.is-late span { background: var(--risk); }
.sla-track.is-warn span { background: var(--accent); }

.tl { position: relative; margin: 8px 0 0 6px; display: grid; gap: 16px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { padding-left: 26px; position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
}
.tl-item time { display: block; color: var(--muted); font-size: 12px; }
.tl-item strong { font-weight: 650; }
.tl-item p { color: var(--muted); font-size: 14px; }

.kboard { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.kcol { min-width: 260px; scroll-snap-align: start; background: rgba(255,253,248,.55); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.kcol h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; display: flex; justify-content: space-between; margin-bottom: 8px; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; cursor: grab; }
.kcard strong { display: block; font-size: 15px; }
.kcol.is-over { outline: 2px solid var(--accent); }

.task { padding: 12px 0; border-top: 1px solid var(--line); }
.task-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.check { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.check.is-done span { color: var(--muted); text-decoration: line-through; }
.progress { height: 4px; background: var(--mist); border-radius: 99px; margin-top: 8px; }
.progress span { display: block; height: 100%; background: var(--ink); }

.person { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.bar { height: 6px; background: var(--mist); border-radius: 99px; grid-column: 1 / -1; }
.bar span { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.person.is-limite .bar span { background: var(--accent); }
.person.is-sobrecarregado .bar span, .person.is-indisponivel .bar span { background: var(--risk); }

.insight { padding: 8px 0 18px; border-bottom: 1px solid var(--line); }
.insight-answer { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; line-height: 1.15; margin: 6px 0 10px; }
.compare { display: flex; gap: 18px; }
.compare div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 120px; }
.compare strong { display: block; font-family: var(--serif); font-size: 28px; }
.hbar { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; margin: 6px 0; font-size: 14px; }
.hbar i { display: block; height: 8px; background: var(--mist); border-radius: 99px; }
.hbar i b { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow { color: var(--muted); font-size: 12px; text-align: center; }
.day { min-height: 92px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; font-size: 12px; position: relative; cursor: pointer; }
.day.is-out { cursor: default; }
.day strong { font-size: 13px; }
.day a, .chip-ag { display: block; color: var(--ink); position: relative; }
.chip-t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--muted); padding: 1px 0 1px 6px; margin-top: 3px; font-size: 11px; }
.cor-cobertura .chip-t { border-left-color: #F07335; }
.cor-reuniao .chip-t { border-left-color: #323234; }
.cor-producao .chip-t { border-left-color: #2c6b48; }
.cor-externo .chip-t { border-left-color: #8d5a10; }
.cor-interno .chip-t { border-left-color: #606062; }
.chip-ag .tip {
  display: none; position: absolute; left: 0; top: calc(100% + 4px); z-index: 6;
  width: max-content; max-width: 220px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.chip-ag:hover .tip, .chip-ag:focus .tip, .chip-ag:focus-within .tip { display: block; }
.chip-ag .tip strong, .chip-ag .tip small, .chip-ag .tip p { display: block; white-space: normal; }
.chip-ag .tip small { color: var(--muted); margin-top: 2px; }
.chip-ag .tip p { margin: 6px 0 0; }
.day:hover, .day:focus-within { z-index: 3; }
dialog.agenda-novo { width: min(520px, calc(100% - 32px)); padding: 26px 24px 20px; }
dialog.agenda-novo h2 { font-family: var(--serif); font-weight: 560; font-size: 32px; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 14px; }
.cores { display: flex; flex-wrap: wrap; gap: 8px; }
.cores .cor { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.cores .cor::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.cores .cor-cobertura::before { background: #F07335; }
.cores .cor-reuniao::before { background: #323234; }
.cores .cor-producao::before { background: #2c6b48; }
.cores .cor-externo::before { background: #8d5a10; }
.cores .cor-interno::before { background: #606062; }
.day.is-out { opacity: .45; }
.day.is-today { border-color: var(--accent); }
.agenda-list { display: none; }

table.grade { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; }
.grade th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px; border-bottom: 1px solid var(--line); }
.grade td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grade tr:hover td { background: rgba(242,235,223,.4); }

.empty { padding: 28px 8px; }
.empty-title { font-family: var(--serif); font-size: 32px; letter-spacing: -.03em; margin-bottom: 6px; }
.notice { background: rgba(240,115,53,.12); border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.passo { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.passo p { margin: 0; }
.passo .hint { margin-top: 6px; }
.passo a { color: var(--accent); font-weight: 650; }
.comment { padding: 12px 0; border-top: 1px solid var(--line); }
.comment .who-line { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.interno { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

dialog {
  border: 0; border-radius: 20px; padding: 18px; background: var(--card); color: var(--ink);
  box-shadow: var(--shadow); width: min(420px, calc(100% - 32px));
}
dialog::backdrop { background: rgba(50,50,52,.35); }
dialog.confirma {
  width: min(460px, calc(100% - 32px));
  padding: 28px 26px 22px;
  border-radius: 24px;
}
dialog.confirma h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 560;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin: 0 0 10px;
}
dialog.confirma p { color: var(--muted); margin: 0 0 18px; }
dialog.confirma .confirma-acoes { display: flex; gap: 8px; justify-content: flex-end; }
dialog a, dialog button.linkish {
  display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 12px 8px; border-radius: 12px; cursor: pointer;
}
dialog a:hover { background: var(--paper); }
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 40; }
.toast { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 12px 14px; max-width: 320px; animation: rise .22s ease; }
.toast.erro { background: var(--risk); }
.toast.ok { background: var(--ink); }
@keyframes rise { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

.auth-body { min-height: 100vh; }
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; }
.auth-hero { background: #606062; color: #F2EBDF; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-hero h1 { font-family: var(--serif); font-weight: 560; font-size: clamp(42px, 5vw, 68px); letter-spacing: -.04em; line-height: .98; max-width: 12ch; }
.auth-hero p { max-width: 36ch; color: rgba(242,235,223,.82); font-size: 18px; }
.auth-flow { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; padding: 0; margin: 28px 0 0; }
.auth-flow li { border: 1px solid rgba(242,235,223,.3); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.ghost-num { position: absolute; right: -20px; bottom: -40px; font-family: var(--serif); font-size: 180px; color: rgba(242,235,223,.06); line-height: 1; }
.auth-panel { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: min(420px, 100%); }
.auth-card h2 { font-family: var(--serif); font-size: 36px; font-weight: 560; margin-bottom: 6px; }
.pager { display: flex; gap: 8px; margin-top: 14px; }

.tabbar { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.ico { width: 18px; height: 18px; }

@media (max-width: 980px) {
  .split, .form-grid, .auth-split { grid-template-columns: 1fr; }
  .auth-hero { min-height: 42vh; padding: 32px 24px; }
  .ghost-num { font-size: 120px; }
  .row { grid-template-columns: 1fr auto; }
  .row .proto { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .topbar { padding: 10px 14px; gap: 10px; }
  .brand em, .who small, .search { display: none; }
  .worknav { display: none; }
  .stage { width: min(100% - 28px, 1180px); margin: 18px auto 96px; }
  .display { font-size: 34px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    background: rgba(255,253,248,.96); border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .tabbar a, .tabbar button { flex: 1; }
  .tabbar a, .tabbar button { background: transparent; border: 0; text-align: center; font-size: 11px; color: var(--muted); }
  .tabbar .is-on { color: var(--ink); font-weight: 700; }
  .cal { gap: 4px; }
  .day { min-height: 72px; }
  .agenda-list { display: grid; gap: 8px; }
  .toasts { left: 12px; right: 12px; bottom: 76px; }
  .page-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.stage:has(.atlas) { width: min(1240px, calc(100% - 36px)); }
.atlas-top { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.atlas-filtros { display: grid; justify-items: end; gap: 8px; }
.atlas-periodo { display: flex; flex-wrap: wrap; gap: 4px; background: #fffdf8; padding: 4px; border-radius: 999px; box-shadow: 0 8px 24px rgba(50,50,52,.04); }
.atlas-periodo a { border-radius: 999px; padding: 8px 12px; color: var(--muted); font-size: 14px; }
.atlas-periodo a.is-on { background: #323234; color: #F2EBDF; }
.livre { justify-self: end; }
.livre summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.livre form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px; }
.livre label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }

.atlas-hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: stretch;
  background: radial-gradient(520px 240px at 0% 0%, rgba(240,115,53,.18), transparent 68%), #fffdf8;
  border-radius: 28px; padding: 26px; box-shadow: 0 18px 50px rgba(50,50,52,.05);
}
.hero-copy h2 { font-family: var(--serif); font-weight: 560; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.02; margin: 0 0 10px; }
.hero-frase { font-size: 18px; max-width: 40ch; margin: 0 0 16px; }
.hero-atalhos { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-atalhos button {
  border: 1px solid rgba(96,96,98,.22); background: rgba(255,253,248,.8); border-radius: 999px; padding: 7px 12px; cursor: pointer;
}
.hero-atalhos button:hover, .hero-atalhos button:focus-visible { border-color: var(--accent); }
.hero-palco {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-around;
  background-image: radial-gradient(circle at 0% 80%, rgba(240,115,53,.28), transparent 42%), linear-gradient(#323234, #323234);
  background-size: 220% 100%, auto;
  background-position: 0% 0, 0 0;
  color: #F2EBDF; border-radius: 24px; padding: 22px 12px;
  animation: brilho 14s ease-in-out infinite;
}
.hero-palco .anel {
  width: 126px; height: 126px; border: 0; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: conic-gradient(#F07335 calc(var(--p) * 1%), rgba(242,235,223,.16) 0);
}
.hero-palco .anel em {
  width: 90px; height: 90px; border-radius: 50%; background: #323234;
  display: grid; place-items: center; align-content: center; font-style: normal;
  position: relative; z-index: 1;
}
.hero-palco .anel strong { font-family: var(--serif); font-size: 26px; font-weight: 560; line-height: 1; color: #F2EBDF; }
.hero-palco .anel small { color: rgba(242,235,223,.72); font-size: 11px; }
.hero-palco .anel::after, button.rosca::after {
  content: ""; position: absolute; inset: -30%; z-index: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,253,248,.42) 50%, transparent 58%);
  transform: translateX(-80%);
  animation: luz 8.5s ease-in-out infinite;
}
button.rosca::after { animation-delay: -3s; }
@keyframes brilho {
  0%, 100% { background-position: 0% 0, 0 0; }
  50% { background-position: 100% 0, 0 0; }
}
@keyframes luz {
  0%, 62% { transform: translateX(-80%); }
  82%, 100% { transform: translateX(80%); }
}

.atlas-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 14px; margin-top: 14px; }
.atlas-card {
  background: #fffdf8; border-radius: 26px; padding: 18px 18px 16px; min-width: 0;
  box-shadow: 0 14px 36px rgba(50,50,52,.045);
}
.atlas-card.span-2 { grid-column: span 2; }
.atlas-card.tom-creme { background: #F6EEE3; }
.atlas-card.tom-grafite { background: #323234; color: #F2EBDF; position: relative; overflow: hidden; }
.atlas-card.tom-grafite::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, rgba(240,115,53,.16) 48%, rgba(242,235,223,.1) 54%, transparent 66%);
  transform: translateX(-100%);
  animation: luz 11s ease-in-out infinite;
  animation-delay: -2s;
}
.atlas-card.tom-grafite > * { position: relative; z-index: 1; }
.atlas-card.tom-alerta { box-shadow: inset 4px 0 0 var(--accent), 0 14px 36px rgba(50,50,52,.045); }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.atlas-card h2 { font-family: var(--serif); font-weight: 560; font-size: 26px; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 6px; }
.card-head p { margin: 0; color: var(--muted); }
.tom-grafite .card-head p, .tom-grafite .hint { color: rgba(242,235,223,.74); }
.abrir { border: 0; background: transparent; color: #c45c22; font-weight: 650; cursor: pointer; white-space: nowrap; padding: 4px 0; }
.abrir:hover, .abrir:focus-visible { color: var(--accent); }
.lider { font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); font-weight: 560; letter-spacing: -.04em; line-height: .95; margin: 10px 0 12px; }
.vazio-grafico { color: var(--muted); margin: 16px 0; grid-column: 1 / -1; }
.atlas button:focus-visible, .atlas a:focus-visible, .atlas-periodo a:focus-visible { outline: 2px solid #F07335; outline-offset: 2px; }
.atlas button, .atlas .atlas-periodo a { transition: transform .16s ease, filter .16s ease; }
.atlas button:hover, .atlas .atlas-periodo a:hover { transform: scale(1.045); }
.atlas button:active, .atlas .atlas-periodo a:active { transform: scale(.97); }
.atlas .is-press { animation: pressionar .34s ease; }
@keyframes pressionar {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.16); }
  100% { filter: brightness(1); }
}
.tom-grafite .vazio-grafico { color: rgba(242,235,223,.72); }

.fluxo-hit { display: block; width: 100%; border: 0; background: transparent; padding: 8px 0 0; cursor: pointer; }
.fluxo { width: 100%; height: auto; display: block; }
.area-abertos { fill: rgba(240,115,53,.22); }
.linha-abertos, .linha-concluidos { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.linha-abertos { stroke: #F07335; }
.linha-concluidos { stroke: #323234; }
.guia { stroke: rgba(96,96,98,.16); }
.eixo-linha { stroke: rgba(96,96,98,.28); }
.eixo-txt, .legenda-linhas { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.legenda-linhas { justify-content: flex-start; align-items: center; gap: 8px; margin-top: 4px; }
.swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

button.rosca {
  width: 176px; height: 176px; border: 0; border-radius: 50%; padding: 0; margin: 14px auto; cursor: pointer;
  display: grid; place-items: center; position: relative; overflow: hidden;
}
button.rosca em {
  width: 112px; height: 112px; border-radius: 50%; background: #fffdf8; display: grid; place-items: center;
  font-family: var(--serif); font-style: normal; font-size: 32px; color: var(--ink);
  position: relative; z-index: 1;
}
.tom-creme button.rosca em { background: #F6EEE3; }
.legenda { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; }
.legenda button { border: 0; background: transparent; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.dupla button { border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; padding: 0; }
.dupla span { display: block; color: var(--muted); font-size: 13px; }
.dupla strong { font-family: var(--serif); font-size: 36px; font-weight: 560; letter-spacing: -.03em; }
.dupla i { display: flex; align-items: flex-end; height: 128px; margin-top: 8px; background: #E6E7E8; border-radius: 18px; overflow: hidden; }
.dupla i b { display: block; width: 100%; height: 0; background: #F07335; border-radius: 18px 18px 0 0; }
.dupla i b.is-ink { background: #323234; }

.metros { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 16px; }
.metro { border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 13px; max-width: 120px; }
.anel.claro {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--cor, #F07335) calc(var(--p) * 1%), #E6E7E8 0);
}
.anel.claro em { width: 68px; height: 68px; border-radius: 50%; background: #fffdf8; display: grid; place-items: center; font-style: normal; }
.tom-creme .anel.claro em, .tom-alerta .anel.claro em { background: #fffdf8; }
.anel.claro strong { font-family: var(--serif); font-size: 22px; font-weight: 560; }

.ranks { display: grid; gap: 4px; margin-top: 8px; }
.span-2 .ranks { grid-template-columns: 1fr 1fr; gap: 4px 22px; }
.rank {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; width: 100%; min-width: 0;
  border: 0; background: transparent; color: inherit; text-align: left; padding: 6px 4px; border-radius: 12px; cursor: pointer;
}
.rank.estatico { cursor: default; }
.rank:hover, .rank:focus-visible { background: rgba(240,115,53,.08); }
.tom-grafite .rank:hover, .tom-grafite .rank:focus-visible { background: rgba(242,235,223,.08); }
.rank .avatar { width: 32px; height: 32px; }
.rank-mid { display: grid; gap: 3px; min-width: 0; }
.rank-mid > b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-mid small { color: rgba(242,235,223,.7); font-size: 12px; }
.rank-mid > i { display: block; height: 10px; border-radius: 99px; background: rgba(230,231,232,.95); overflow: hidden; }
.tom-grafite .rank-mid > i { background: rgba(242,235,223,.16); }
.rank-mid > i > b { display: block; height: 100%; border-radius: inherit; }
.rank > strong { font-variant-numeric: tabular-nums; }

.mesa {
  margin-top: 18px; background: #fffdf8; border-radius: 28px; padding: 22px;
  display: grid; grid-template-columns: 280px 1fr; gap: 22px;
  box-shadow: 0 18px 50px rgba(50,50,52,.05);
}
.mesa h2 { font-family: var(--serif); font-weight: 560; font-size: 32px; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 8px; }
.mesa-controles, .mesa-resultado { min-width: 0; }
.mesa-controles label { display: grid; gap: 6px; margin: 12px 0; font-size: 13px; color: var(--muted); }
.mesa-controles select, .livre input[type="date"] { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mesa-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mesa-resultado .grade { margin-top: 14px; }
.ranks-lg .rank-mid > i { height: 14px; }

dialog.atlas-dialog {
  width: min(960px, calc(100% - 24px)); max-height: min(880px, calc(100% - 24px));
  padding: 0; border: 0; border-radius: 28px; background: #fffdf8; color: var(--ink); overflow: auto;
}
dialog.atlas-dialog::backdrop { background: rgba(36, 23, 15, .48); }
.modal-topo { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 26px 26px 0; }
.modal-topo h2 { font-family: var(--serif); font-weight: 560; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; line-height: 1.05; margin: 0; }
.atlas-resposta { margin: 8px 0 0; max-width: 52ch; }
.modal-corpo { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; padding: 18px 26px 26px; }
.modal-figura { background: #323234; color: #F2EBDF; border-radius: 22px; padding: 22px; min-height: 280px; }
.modal-figura .kicker { margin: 0; color: #F07335; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.modal-figura .num { display: block; font-family: var(--serif); font-weight: 560; font-size: clamp(56px, 8vw, 84px); letter-spacing: -.05em; line-height: .9; color: #F07335; margin: 6px 0; }
.figura-pct { margin: 0 0 16px; color: rgba(242,235,223,.78); }
.figura-vazio, .lado-vazio { color: rgba(242,235,223,.78); }
.lado-vazio { color: var(--muted); }
.modal-figura .rank { color: #F2EBDF; }
.modal-figura .rank.is-foco { background: rgba(240,115,53,.18); }
.fitas { display: flex; align-items: flex-end; gap: 3px; height: 140px; margin-top: 8px; }
.fitas i { flex: 1; min-height: 4px; border-radius: 4px 4px 0 0; display: block; }
dialog.atlas-dialog .modal-lado a,
dialog.atlas-dialog .lado-item {
  display: grid; gap: 2px; width: auto; padding: 12px 0; border-top: 1px solid var(--line);
  border-radius: 0; background: transparent; text-align: left;
}
dialog.atlas-dialog .modal-lado a:hover { background: transparent; }
dialog.atlas-dialog .modal-lado a:hover strong { color: #c45c22; }
dialog.atlas-dialog .modal-lado small { color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .atlas-hero, .atlas-grid, .mesa, .modal-corpo { grid-template-columns: 1fr; }
  .atlas-card.span-2, .span-2 .ranks { grid-column: auto; grid-template-columns: 1fr; }
  .atlas-filtros, .livre { justify-self: start; justify-items: start; }
  .hero-palco { min-height: 0; }
  dialog.atlas-dialog { width: calc(100% - 16px); border-radius: 20px; }
}
.stage:has(.mesa-tarefas) { width: min(1440px, calc(100% - 28px)); }
.legenda-tarefas { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; padding: 0; margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.legenda-tarefas li { display: flex; align-items: center; gap: 6px; }
.legenda-tarefas .amostra { border-radius: 999px; padding: 2px 8px; border: 1px solid rgba(96,96,98,.16); }
.mesa-restaurar { display: flex; gap: 8px; margin: 0 0 12px; }
.mesa-tarefas { position: relative; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; min-height: 68vh; }
.mesa-tarefas.mesa-solta { display: block; }
.pessoa-card { width: min(320px, 100%); background: #fffdf8; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 28px rgba(50,50,52,.06); }
.mesa-tarefas.mesa-solta .pessoa-card { position: absolute; width: 320px; }
.pessoa-card.is-alvo { outline: 2px solid var(--accent); }
.pessoa-card.is-arrastando { opacity: .72; z-index: 4; }
.pessoa-card:has(details[open]) { z-index: 8; }
.pessoa-head { display: flex; justify-content: space-between; gap: 8px; padding: 14px; border-radius: 18px 18px 0 0; cursor: grab; background: #fff; }
.pessoa-card.is-ausente .pessoa-head { background: #E6E7E8; color: #606062; }
.pessoa-quem { display: flex; gap: 10px; align-items: center; min-width: 0; }
.pessoa-quem .avatar, .pessoa-quem .avatar-lg { width: 44px; height: 44px; font-size: 14px; object-fit: cover; }
.pessoa-quem strong { display: block; font-size: 15px; line-height: 1.25; }
.pessoa-quem small, .pessoa-quem em { display: block; color: var(--muted); font-style: normal; font-weight: 500; font-size: 12px; }
.pessoa-acoes { display: flex; gap: 2px; align-items: flex-start; }
.pessoa-lista { display: grid; gap: 8px; padding: 10px 12px 12px; min-height: 72px; }
.pessoa-vazio { margin: 0; color: var(--muted); font-size: 13px; }
.tar-item { display: flex; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(96,96,98,.12); }
.tar-item.is-arrastando { opacity: .45; }
.tar-item a { color: inherit; font-weight: 600; }
.tar-corpo { min-width: 0; flex: 1; }
.tar-emoji { margin-left: 6px; }
.tar-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; color: var(--muted); font-size: 12px; }
.tar-marcas { display: flex; gap: 4px; margin-top: 6px; opacity: 0; }
.tar-item:hover .tar-marcas, .tar-item:focus-within .tar-marcas { opacity: 1; }
.tar-marcas button { border: 0; background: rgba(255,255,255,.72); border-radius: 999px; padding: 0 6px; cursor: pointer; }
.tar-passar { display: none; margin-top: 8px; font-size: 12px; color: var(--muted); }
.tar-passar select { width: 100%; margin-top: 4px; }
.prazo-ok { background: #fff; }
.prazo-quinzena { background: #fff4cc; }
.prazo-semana { background: #ffe3cc; }
.prazo-atraso { background: #f8d4d0; }
.sinal { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; margin-top: 5px; display: inline-block; }
.sinal-normal { background: #fff; box-shadow: inset 0 0 0 1.5px #606062; }
.sinal-ok { background: #2c6b48; }
.sinal-andamento { background: #2a5f8a; }
.sinal-espera { background: #d4a017; }
.sinal-pendente { background: #F07335; }
.sinal-critico { background: #a33b32; }
.pessoa-recado { margin: 0 12px 12px; padding: 12px; background: #F2EBDF; border-radius: 12px; border-left: 3px solid #F07335; }
.pessoa-recado .recado-rotulo { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #606062; }
.pessoa-recado p { margin: 0; }
.pessoa-recado small, .pessoa-recado .sub { color: var(--muted); }
.pessoa-recado textarea { width: 100%; min-height: 64px; margin-top: 8px; }
.pessoa-mais { position: relative; }
.pessoa-mais summary { list-style: none; cursor: pointer; }
.pessoa-mais summary::-webkit-details-marker { display: none; }
.pessoa-mais form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; width: 280px; display: grid; gap: 8px; padding: 12px; background: #fffdf8; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 28px rgba(50,50,52,.12); }
.pessoa-mais form p { margin: 0; font-weight: 700; }
.pessoa-mais input, .pessoa-mais select { width: 100%; }
.postit { position: absolute; z-index: 5; width: 190px; min-height: 128px; padding: 12px 12px 8px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 2px 14px 14px 14px; box-shadow: 0 10px 22px rgba(50,50,52,.12); }
.postit.postit-janela { position: fixed; z-index: 36; width: 190px; cursor: grab; touch-action: none; }
.postit.postit-janela.is-fixa { z-index: 37; cursor: default; box-shadow: 0 0 0 2px #323234, 0 14px 28px rgba(50,50,52,.22); }
.postit.postit-janela.is-fixa .postit-acoes { display: flex; }
.postit.is-arrastando { opacity: .92; z-index: 38; cursor: grabbing; }
.postit-texto { margin: 0; white-space: pre-wrap; }
.postit footer { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11px; color: rgba(50,50,52,.72); }
.postit-acoes { display: none; margin-left: auto; gap: 4px; }
.postit:hover .postit-acoes, .postit:focus-within .postit-acoes { display: flex; }
.postit-acoes button { border: 0; background: transparent; padding: 0; font-size: 11px; cursor: pointer; color: inherit; }
.avatar-mini { width: 18px; height: 18px; font-size: 8px; }
.postit.cor-amarelo { background: #ffe56a; }
.postit.cor-azul { background: #c9dff5; }
.postit.cor-verde { background: #d5edd9; }
.postit.cor-rosa { background: #f8d0d6; }
.postit.cor-laranja { background: #ffd0b5; }
.nota-privacidade { margin-top: 18px; }
@media (max-width: 760px) {
  .mesa-tarefas.mesa-solta .pessoa-card { position: static; width: 100%; }
  .pessoa-card, .postit:not(.postit-janela) { width: 100%; position: relative; left: auto !important; top: auto !important; }
  .postit.postit-janela { width: 190px; position: fixed !important; }
  .tar-passar, .tar-marcas { display: block; opacity: 1; }
  .postit-acoes { display: flex; }
}

@media print {
  .topbar, .worknav, .tabbar, .toasts, dialog.atlas-dialog { display: none !important; }
  .stage, .stage:has(.atlas) { width: 100%; margin: 0; }
  .atlas-card, .mesa, .atlas-hero { box-shadow: none; break-inside: avoid; }
  .hero-palco, .hero-palco .anel::after, button.rosca::after, .atlas-card.tom-grafite::before { animation: none !important; }
}
