/* predeti eventos — Padrão Visual de Sistemas PREDETI (nov/2026)
   Fundo branco, texto grafite, um único destaque âmbar, cores de apoio só com função. */
:root {
  --pd-ink: #121317; --pd-muted: #5F6368; --pd-logo-grey: #8A8F98;
  --pd-line: #E3E5E8; --pd-surface: #F4F5F7; --pd-white: #FFFFFF; --pd-dark-panel: #0E0F13;
  --pd-amber: #F5A524; --pd-amber-soft: #FFE7BF; --pd-amber-text: #9A5B00;
  --pd-mint: #1FAF7A;  --pd-mint-soft: #D4F5E6;
  --pd-sky: #3B82F6;   --pd-sky-soft: #DCE9FF;
  --pd-lilac: #8B5CF6; --pd-lilac-soft: #EDE4FF;
  --pd-coral: #EF5A4C; --pd-coral-soft: #FFE1DD;
  --pd-whatsapp: #25D366;
  --pd-font: "Google Sans Flex", "Google Sans", Figtree, system-ui, sans-serif;
  --pd-font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --pd-radius-pill: 999px; --pd-radius-field: 16px; --pd-radius-card: 24px;
  --pd-shadow-card: 0 8px 30px -12px rgba(18,19,23,.20);
  --pd-shadow-float: 0 30px 60px -20px rgba(18,19,23,.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --side: 248px;
}
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--pd-font); font-size: 14px; line-height: 1.55; color: var(--pd-ink);
  background: var(--pd-white); font-variant-numeric: tabular-nums; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--pd-ink); }
h1 { font-size: clamp(24px, 2.4vw, 28px); font-weight: 450; letter-spacing: -0.035em; line-height: 1.1; }
h2 { font-size: 20px; font-weight: 450; letter-spacing: -0.02em; line-height: 1.2; }
h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.muted { color: var(--pd-muted); }
.mono, .proto { font-family: var(--pd-font-mono); font-size: 12px; }
.proto { color: var(--pd-muted); }
.eyebrow { font-family: var(--pd-font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--pd-muted); }
:focus-visible { outline: 2px solid var(--pd-ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- estrutura ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px;
  padding: 20px 14px 16px; background: var(--pd-dark-panel); color: #A9AEB6; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2a2d35 transparent; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 6px; text-decoration: none; color: var(--pd-ink); min-height: 44px; }
.brand .sim { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 700; }
.brand span.w { font-size: 19px; letter-spacing: -0.02em; }
.brand span.p { color: var(--pd-logo-grey); font-size: 19px; margin-left: 2px; }
.brand img:not(.sim) { max-height: 44px; max-width: 190px; width: auto; height: auto; object-fit: contain; display: block; }
.chip-logo { display: inline-flex; padding: 8px 12px; border-radius: 14px; background: #fff; }
.chip-logo.dk { background: var(--pd-dark-panel); }
.chip-logo img { max-height: 36px !important; max-width: 170px !important; }
.side .brand { color: #fff; margin-bottom: 6px; }
.side .brand span.p { color: #A9AEB6; }
.side-sub { padding: 0 10px 14px; margin-top: -4px; font-size: 12px; color: #8A8F98; }
.side .brand + .nav, .side .side-sub + .nav { margin-top: 10px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--pd-radius-pill);
  text-decoration: none; color: #A9AEB6; font-weight: 500; font-size: 14px; transition: background .2s, color .2s; }
.nav a:hover { background: #1b1d23; color: #fff; }
.nav a.on { background: #23262e; color: #fff; }
.nav a .ico { width: 20px; height: 20px; }
.nav a .cnt { margin-left: auto; font-family: var(--pd-font-mono); font-size: 11px; background: var(--pd-coral);
  color: #fff; border-radius: 999px; padding: 1px 8px; }
.nav .sec { margin: 18px 12px 6px; color: #5d616b; }
.c-sky { color: #6FA3FA; } .c-mint { color: #36C98F; } .c-amber { color: var(--pd-amber); }
.c-lilac { color: #A98BFA; } .c-coral { color: #F47A6E; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 20px;
  background: #1b1d23; color: #fff; }
.me .nm { font-weight: 500; line-height: 1.2; }
.me .muted { color: #8A8F98 !important; }
.me .iconbtn { color: #A9AEB6; } .me .iconbtn:hover { background: #2a2d35; color: #fff; }
.me form { margin-left: auto; }
.me .av { background: #2a2d35; border-color: #2a2d35; color: #fff; }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--pd-white); border: 1px solid var(--pd-line);
  display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.avs { display: flex; } .avs .av { margin-left: -6px; width: 30px; height: 30px; font-size: 10.5px; border: 2px solid #fff; background: var(--pd-surface); }
.avs .av:first-child { margin-left: 0; }
.construido { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 11.5px; color: var(--pd-logo-grey); }
.construido img { height: 16px; width: auto; display: block; opacity: .9; }
.construido:hover img { opacity: 1; }
.side .construido { padding: 14px 12px 2px; color: #6b6f78; }
.pg-rodape { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--pd-line); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.rodape-legal { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12px; color: var(--pd-muted); }
.rodape-legal .rl-lnks { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rodape-legal a { color: var(--pd-muted); text-decoration: underline; text-underline-offset: 2px; }
.rodape-legal a:hover { color: var(--pd-ink); }
.rodape-legal.dk, .rodape-legal.dk a { color: #8A8F98; }
.rodape-legal.dk a:hover { color: #fff; }

main.pg { padding: 28px clamp(16px, 3vw, 40px) 64px; max-width: 1320px; width: 100%; }
.top { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.top .sub { margin-top: 6px; color: var(--pd-muted); font-size: 15px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.stack > * + * { margin-top: 16px; }
.mobilebar { display: none; }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%);
    transition: transform .3s var(--ease); box-shadow: var(--pd-shadow-float); }
  body.menu .side { transform: none; }
  .mobilebar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; position: sticky; top: 0; z-index: 30;
    background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--pd-line); }
  .mobilebar .brand img:not(.sim) { max-height: 34px; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
}

/* ---------- componentes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
  border: 0; border-radius: var(--pd-radius-pill); background: var(--pd-ink); color: #fff; font: 500 14px/1 var(--pd-font);
  text-decoration: none; cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s; white-space: nowrap; }
.btn:hover { background: #000; box-shadow: var(--pd-shadow-card); }
.btn.sec { background: var(--pd-surface); color: var(--pd-ink); }
.btn.sec:hover { background: var(--pd-line); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--pd-muted); }
.btn.ghost:hover { background: var(--pd-surface); color: var(--pd-ink); box-shadow: none; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.danger { background: var(--pd-coral-soft); color: var(--pd-coral); }
.btn.danger:hover { background: var(--pd-coral); color: #fff; }
.btn.full { width: 100%; }
.iconbtn { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 0; background: transparent; color: var(--pd-muted);
  display: inline-grid; place-items: center; cursor: pointer; }
.iconbtn:hover { background: var(--pd-surface); color: var(--pd-ink); }
.iconbtn .ico { width: 18px; height: 18px; }

.card { background: var(--pd-white); border: 1px solid var(--pd-line); border-radius: var(--pd-radius-card); padding: 22px; }
.card.soft { background: var(--pd-surface); border-color: transparent; }
.card .hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
a.card { display: block; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--pd-shadow-card); }
.circ { width: 44px; height: 44px; border-radius: 50%; background: var(--pd-white); display: grid; place-items: center; flex: none; }
.card.soft .circ { background: var(--pd-white); }

.kpi .n { font-size: 34px; font-weight: 450; letter-spacing: -0.035em; line-height: 1; margin: 10px 0 4px; }
.kpi .l { color: var(--pd-muted); font-size: 13px; font-weight: 500; }

.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500; white-space: nowrap; background: var(--pd-surface); color: var(--pd-muted); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.plain::before { display: none; }
.t-sky { background: var(--pd-sky-soft); color: var(--pd-sky); }
.t-mint { background: var(--pd-mint-soft); color: #0E7A53; }
.t-amber { background: var(--pd-amber-soft); color: var(--pd-amber-text); }
.t-lilac { background: var(--pd-lilac-soft); color: var(--pd-lilac); }
.t-coral { background: var(--pd-coral-soft); color: var(--pd-coral); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.d-sky { background: var(--pd-sky); } .d-mint { background: var(--pd-mint); } .d-amber { background: var(--pd-amber); }
.d-lilac { background: var(--pd-lilac); } .d-coral { background: var(--pd-coral); }

/* formulários */
label.f { display: block; }
label.f > span { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; }
label.f > small { display: block; color: var(--pd-muted); font-size: 12px; margin-top: 4px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
input[type=date], input[type=time], input[type=datetime-local], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 16px; border: 1px solid transparent; border-radius: var(--pd-radius-field);
  background: var(--pd-surface); font: 400 16px/1.4 var(--pd-font); color: var(--pd-ink); transition: background .2s, border-color .2s; }
textarea { min-height: 96px; resize: vertical; }
.card.soft input:not([type=checkbox]):not([type=radio]):not([type=file]), .card.soft select, .card.soft textarea { background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; background: var(--pd-white); border-color: var(--pd-ink); }
input:disabled, input[readonly], select:disabled { color: var(--pd-muted); cursor: default; }
input[readonly]:focus { background: var(--pd-surface); border-color: transparent; }
.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-flex; height: 36px; align-items: center; padding: 0 14px; border-radius: 999px;
  background: var(--pd-surface); font-weight: 500; cursor: pointer; transition: background .2s; }
.chips input:checked + span { background: var(--pd-ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--pd-ink); outline-offset: 3px; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--pd-line); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--pd-ink); }
.switch input:checked + i::after { transform: translateX(20px); }

/* tabelas */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 500; font-size: 12px; color: var(--pd-muted); padding: 0 12px 10px; white-space: nowrap; }
.tbl td { padding: 12px; border-top: 1px solid var(--pd-line); vertical-align: middle; }
.tbl tr.lnk { cursor: pointer; } .tbl tr.lnk:hover td { background: var(--pd-surface); }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl tfoot td { font-weight: 600; }
.scroll { overflow-x: auto; }
@media (max-width: 640px) {
  .stk thead { display: none; } .stk tr { display: grid; padding: 10px 0; border-top: 1px solid var(--pd-line); }
  .stk td { border: 0; padding: 3px 0; text-align: left !important; }
}

/* abas */
.tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; margin: 0 0 24px; scrollbar-width: none; }
.tabs a { flex: none; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--pd-muted); }
.tabs a:hover { background: var(--pd-surface); color: var(--pd-ink); }
.tabs a.on { background: var(--pd-ink); color: #fff; }
.tabs a .c { font-family: var(--pd-font-mono); font-size: 11px; margin-left: 6px; opacity: .7; }

.flash { padding: 12px 18px; border-radius: 16px; margin-bottom: 16px; font-weight: 500; animation: subir .5s var(--ease); }
.flash.ok { background: var(--pd-mint-soft); color: #0E7A53; }
.flash.erro { background: var(--pd-coral-soft); color: #B3362B; }
.flash.aviso { background: var(--pd-amber-soft); color: var(--pd-amber-text); }
@keyframes subir { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.empty { text-align: center; padding: 36px 16px; color: var(--pd-muted); }
.bar { height: 6px; border-radius: 999px; background: var(--pd-line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--pd-ink); border-radius: inherit; transition: width .4s var(--ease); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--pd-line); }
.list li:first-child { border-top: 0; padding-top: 0; }
.when { text-align: center; width: 52px; flex: none; }
.when b { display: block; font-size: 22px; font-weight: 450; letter-spacing: -0.03em; line-height: 1; }
.when span { font-family: var(--pd-font-mono); font-size: 11px; color: var(--pd-muted); text-transform: uppercase; }

dialog { border: 0; border-radius: var(--pd-radius-card); padding: 0; width: min(560px, calc(100vw - 32px));
  box-shadow: var(--pd-shadow-float); color: var(--pd-ink); }
dialog::backdrop { background: rgba(14,15,19,.35); backdrop-filter: blur(2px); }
dialog form.body { padding: 24px; display: grid; gap: 14px; }
dialog .acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.btn.wa { background: var(--pd-whatsapp); color: #fff; }
.btn.wa:hover { background: #1fb855; }

/* campo de senha com botão de mostrar */
.senha-caixa { position: relative; display: block; width: 100%; }
.senha-caixa input { width: 100%; padding-right: 52px !important; }
.senha-olho { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; background: transparent; color: var(--pd-muted); border-radius: 12px; cursor: pointer; }
.senha-olho:hover, .senha-olho:focus-visible { color: var(--pd-ink); background: var(--pd-surface); outline: none; }
.f.desafio b { letter-spacing: .02em; font-size: 16px; font-family: inherit; }
