/* =====================================================================
   Portal Amorim Junior — sistema visual
   ===================================================================== */
:root {
  --bg: #f6f5f2;
  --bg-2: #efede8;
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --ink: #0b0b0c;
  --ink-2: #3a3a3f;
  --muted: #74747c;
  --faint: #a8a8ae;
  --line: #e7e5e0;
  --line-2: #dcd9d2;
  --accent: #b08a55;          /* champanhe */
  --accent-ink: #7a5a2c;
  --accent-soft: #f4ecdf;
  --ok: #15803d; --ok-soft: #e8f6ec;
  --warn: #b45309; --warn-soft: #fdf1e2;
  --bad: #c0262d; --bad-soft: #fdeceb;
  --info: #2950c8; --info-soft: #eaf0fd;
  --shadow-sm: 0 1px 2px rgba(16, 14, 10, .05);
  --shadow: 0 1px 2px rgba(16, 14, 10, .04), 0 8px 24px -10px rgba(16, 14, 10, .12);
  --shadow-lg: 0 2px 6px rgba(16, 14, 10, .05), 0 24px 60px -20px rgba(16, 14, 10, .28);
  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --nav-bg: rgba(246, 245, 242, .72);
  --hero-1: #0b0b0c; --hero-2: #1b1712;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: "Inter Display", "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --bg: #0c0c0e; --bg-2: #121215; --surface: #151518; --surface-2: #1a1a1e;
    --ink: #f3f2ef; --ink-2: #cfcdc8; --muted: #94939a; --faint: #66656c;
    --line: #26262b; --line-2: #313137;
    --accent: #d2ad74; --accent-ink: #e6c48f; --accent-soft: #2a2218;
    --ok: #4ade80; --ok-soft: #10261a; --warn: #fbbf24; --warn-soft: #2b2010;
    --bad: #f87171; --bad-soft: #2d1416; --info: #8aa7ff; --info-soft: #151d36;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 8px rgba(0,0,0,.5), 0 30px 70px -20px rgba(0,0,0,.8);
    --nav-bg: rgba(12, 12, 14, .7);
    --hero-1: #121110; --hero-2: #1d1913;
    color-scheme: dark;
  }
}
:root[data-tema="escuro"] {
  --bg: #0c0c0e; --bg-2: #121215; --surface: #151518; --surface-2: #1a1a1e;
  --ink: #f3f2ef; --ink-2: #cfcdc8; --muted: #94939a; --faint: #66656c;
  --line: #26262b; --line-2: #313137;
  --accent: #d2ad74; --accent-ink: #e6c48f; --accent-soft: #2a2218;
  --ok: #4ade80; --ok-soft: #10261a; --warn: #fbbf24; --warn-soft: #2b2010;
  --bad: #f87171; --bad-soft: #2d1416; --info: #8aa7ff; --info-soft: #151d36;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 8px rgba(0,0,0,.5), 0 30px 70px -20px rgba(0,0,0,.8);
  --nav-bg: rgba(12, 12, 14, .7);
  --hero-1: #121110; --hero-2: #1d1913;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--font); letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 15px; height: 15px; } .ic.lg { width: 22px; height: 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- topo */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--nav-bg); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-in { max-width: 1240px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.marca { display: flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -.02em; }
.marca-logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, #1c1813, #0b0b0c 60%); color: #e9cf9f;
  font: 700 13px/1 var(--font-display); letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(233, 207, 159, .28), 0 4px 12px -4px rgba(0,0,0,.4);
}
.marca small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 1px; }
.marca b { display: block; font-size: 15px; line-height: 1.1; }
/* logotipo oficial (troca conforme o tema) */
.logo-img { height: 46px; width: auto; }
.logo-p-escuro { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) .logo-p-claro { display: none !important; }
  :root:not([data-tema="claro"]) .logo-p-escuro { display: block !important; }
}
:root[data-tema="escuro"] .logo-p-claro { display: none !important; }
:root[data-tema="escuro"] .logo-p-escuro { display: block !important; }
.marca { gap: 14px; }
.marca-div { width: 1px; height: 26px; background: var(--line-2); }
.marca-txt { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.menu { display: flex; gap: 4px; flex: 1; }
.menu a {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 10px;
  color: var(--muted); font-weight: 520; font-size: 14px; transition: color .18s, background .18s;
}
.menu a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.menu a.ativo { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.bolha {
  min-width: 19px; height: 19px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center;
  background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
}
.nav-dir { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icone-btn {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); transition: background .18s, color .18s;
}
.icone-btn:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.perfil { position: relative; }
.perfil > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 99px; transition: background .18s; }
.perfil > summary::-webkit-details-marker { display: none; }
.perfil > summary:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); color: #fff;
  font-weight: 650; font-size: 12.5px; letter-spacing: .02em;
}
.avatar.com-foto { background: var(--bg-2); overflow: hidden; padding: 0; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.avatar.com-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.cinza { background: var(--bg-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.perfil-nome { font-size: 13.5px; font-weight: 600; line-height: 1.15; }
.perfil-nome small { display: block; font-weight: 450; color: var(--muted); font-size: 12px; }
.pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 260px; padding: 8px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: surgir .16s ease-out;
}
.pop a, .pop button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 0;
  background: none; cursor: pointer; font-size: 14px; color: var(--ink-2); text-align: left;
}
.pop a:hover, .pop button:hover { background: var(--bg); color: var(--ink); }
.pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.pop .quem { padding: 10px 12px 12px; }
.pop .quem b { display: block; font-size: 14px; }
.pop .quem span { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.so-celular { display: none !important; }

/* ---------------------------------------------------------------- estrutura */
.pagina { max-width: 1240px; margin: 0 auto; padding: 32px 24px 80px; }
.pagina.estreita { max-width: 860px; }
.cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 26px; flex-wrap: wrap; }
.cab h1 { margin: 0; font: 680 30px/1.15 var(--font-display); letter-spacing: -.032em; }
.cab p { margin: 6px 0 0; color: var(--muted); }
.migalha { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; font-weight: 520; margin-bottom: 14px; }
.migalha:hover { color: var(--ink); }
.secao-tit { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 44px 0 16px; }
.secao-tit h2 { margin: 0; font: 650 19px/1.2 var(--font-display); letter-spacing: -.022em; display: flex; align-items: center; gap: 10px; }
.secao-tit a { font-size: 13.5px; color: var(--muted); font-weight: 520; display: inline-flex; gap: 4px; align-items: center; }
.secao-tit a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 38px 40px 34px; color: #f5f1ea;
  background: radial-gradient(1200px 400px at 85% -40%, rgba(210, 173, 116, .35), transparent 60%),
              radial-gradient(700px 300px at -10% 130%, rgba(120, 140, 255, .14), transparent 60%),
              linear-gradient(135deg, var(--hero-2), var(--hero-1));
  box-shadow: var(--shadow-lg); isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 90% at 75% 0%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; z-index: -1; border-radius: 50%;
  background: conic-gradient(from 180deg, transparent, rgba(233, 207, 159, .22), transparent 40%);
  filter: blur(30px); animation: girar 18s linear infinite;
}
.hero-brasao {
  position: absolute; right: 150px; bottom: -70px; height: 320px; width: auto; z-index: -1;
  opacity: .07; pointer-events: none; transform: rotate(-8deg);
}
.hero-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.hero-data { font-size: 13px; font-weight: 550; letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 241, 234, .55); }
.hero h1 { margin: 10px 0 0; font: 660 38px/1.08 var(--font-display); letter-spacing: -.038em; }
.hero h1 span { background: linear-gradient(92deg, #f3dcb0, #c69a5a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 12px 0 0; color: rgba(245, 241, 234, .66); font-size: 15.5px; max-width: 560px; }
.relogio { text-align: right; font-variant-numeric: tabular-nums; }
.relogio b { display: block; font: 300 46px/1 var(--font-display); letter-spacing: -.04em; color: #fff; }
.relogio span { font-size: 12.5px; color: rgba(245, 241, 234, .5); letter-spacing: .06em; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.chip-hero {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 550;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #f5f1ea; transition: background .2s, transform .2s;
}
a.chip-hero:hover { background: rgba(255, 255, 255, .13); transform: translateY(-1px); }
.chip-hero .ponto { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); }
.chip-hero.atencao .ponto { background: #fb7185; box-shadow: 0 0 0 4px rgba(251, 113, 133, .2); animation: pulsar 1.8s ease-in-out infinite; }

/* ---------------------------------------------------------------- sistemas */
.sistemas { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.sis {
  --c: #4f46e5;
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 22px; padding: 22px; min-height: 178px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s, border-color .28s; isolation: isolate;
}
.sis::before {
  content: ""; position: absolute; inset: auto -30% -70% auto; width: 260px; height: 260px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 34%, transparent), transparent 65%);
  opacity: .55; transition: opacity .35s, transform .5s cubic-bezier(.2, .8, .2, 1);
}
.sis:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
.sis:hover::before { opacity: 1; transform: scale(1.25) translate(-10px, -10px); }
.sis-ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  font: 700 17px/1 var(--font-display); letter-spacing: -.02em;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000));
  box-shadow: 0 10px 22px -10px var(--c), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.sis-ico:has(img) { background: #0e0d0c; overflow: hidden; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(233, 207, 159, .14); }
.sis-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sis-topo { display: flex; justify-content: space-between; align-items: flex-start; }
.sis-seta {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted);
  border: 1px solid var(--line); background: var(--surface); transition: all .28s cubic-bezier(.2, .8, .2, 1);
}
.sis:hover .sis-seta { background: var(--c); border-color: var(--c); color: #fff; transform: rotate(45deg); }
.sis h3 { margin: 0; font: 650 18px/1.2 var(--font-display); letter-spacing: -.02em; }
.sis p { margin: 5px 0 0; color: var(--muted); font-size: 13.5px; }
.sis-url { margin-top: auto; font-size: 12px; color: var(--faint); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.vazio {
  padding: 36px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: var(--r);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
}
.vazio .ic { margin: 0 auto 10px; width: 28px; height: 28px; color: var(--faint); }

/* ---------------------------------------------------------------- comunicados */
.grade-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.pend-lista { display: grid; gap: 14px; }
.pend {
  --tom: var(--info); --tom-soft: var(--info-soft);
  position: relative; padding: 22px 24px 20px 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); overflow: hidden; transition: opacity .4s, transform .45s cubic-bezier(.2, .8, .2, 1), max-height .45s, margin .45s, padding .45s;
}
.pend::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tom); }
.pend.importante { --tom: var(--warn); --tom-soft: var(--warn-soft); }
.pend.urgente { --tom: var(--bad); --tom-soft: var(--bad-soft); }
.pend.saindo { opacity: 0; transform: translateX(30px) scale(.98); }
.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.pend h3 { margin: 10px 0 6px; font: 650 18px/1.3 var(--font-display); letter-spacing: -.018em; }
.pend h3 a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pend p.res { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.pend-acoes { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px; border-radius: 99px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .02em; background: var(--bg-2); color: var(--ink-2);
}
.tag.normal { background: var(--info-soft); color: var(--info); }
.tag.importante { background: var(--warn-soft); color: var(--warn); }
.tag.urgente { background: var(--bad-soft); color: var(--bad); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.pend-t { background: var(--bad-soft); color: var(--bad); }
.tag.cat { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }
.tag.fix { background: var(--accent-soft); color: var(--accent-ink); }
.tag .ic { width: 12px; height: 12px; stroke-width: 2.4; }

.feito {
  display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--r);
  background: linear-gradient(120deg, var(--ok-soft), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--ok) 22%, var(--line));
}
.feito-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; flex: none; }
.feito > div b { display: block; font-size: 15.5px; }
.feito > div span { color: var(--muted); font-size: 14px; }

.lista { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.item { display: flex; gap: 14px; padding: 15px 18px; border-top: 1px solid var(--line); align-items: flex-start; transition: background .15s; }
.item:first-child { border-top: 0; }
a.item:hover { background: var(--surface-2); }
.item-ponto { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--line-2); }
.item-ponto.novo { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.item b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.item .meta { margin-top: 3px; }
.item-corpo { min-width: 0; flex: 1; }

.cartao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 22px; }
.cartao h3 { margin: 0 0 4px; font: 650 15.5px/1.3 var(--font-display); letter-spacing: -.015em; }
.cartao > p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }
.lado { display: grid; gap: 16px; position: sticky; top: 88px; }
.mini { display: grid; gap: 14px; }
.mini-it a { font-size: 13.5px; font-weight: 560; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-it a:hover { text-decoration: underline; text-underline-offset: 3px; }
.barra { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin-top: 7px; }
.barra i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.barra.cheia i { background: var(--ok); }
.mini-it small { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 5px; }

/* filtros e busca */
.barra-filtro { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.abas { display: inline-flex; padding: 4px; gap: 2px; border-radius: 13px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.abas a { padding: 7px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 560; color: var(--muted); display: inline-flex; gap: 7px; align-items: center; }
.abas a:hover { color: var(--ink); }
.abas a.ativo { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.busca { position: relative; width: 300px; max-width: 100%; }
.busca .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.busca input { padding-left: 40px !important; }

/* leitura do comunicado */
.leitura { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.leitura-cab { padding: 34px 40px 26px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.leitura-cab h1 { margin: 14px 0 14px; font: 680 30px/1.18 var(--font-display); letter-spacing: -.03em; }
.autor { display: flex; align-items: center; gap: 11px; font-size: 13.5px; }
.autor > div b { display: block; font-weight: 600; }
.autor > div span { color: var(--muted); font-size: 12.5px; }
.texto { padding: 30px 40px 34px; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.texto p { margin: 0 0 1.05em; }
.texto h3 { font: 650 18px/1.3 var(--font-display); color: var(--ink); margin: 1.4em 0 .5em; }
.texto ul { margin: 0 0 1.1em; padding-left: 1.2em; }
.texto li { margin: .3em 0; }
.texto li::marker { color: var(--accent); }
.texto a { color: var(--info); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.texto strong { color: var(--ink); font-weight: 650; }
.ciencia {
  margin: 0 40px 34px; padding: 20px 22px; border-radius: var(--r); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.ciencia.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.ciencia-txt > div b { display: block; font-size: 15px; }
.ciencia-txt > div span { font-size: 13.5px; color: var(--ink-2); }
.ciencia-txt { display: flex; gap: 14px; align-items: center; }
.ciencia-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--accent-ink); flex: none; box-shadow: var(--shadow-sm); }
.ciencia.ok .ciencia-ico { background: var(--ok); color: #fff; }

/* ---------------------------------------------------------------- botões e formulários */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 17px; border-radius: 11px;
  border: 0; cursor: pointer; font-size: 14px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  background: var(--ink); color: var(--bg); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px -8px rgba(0,0,0,.5);
  transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 22px -10px rgba(0,0,0,.55); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.sec { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line-2); }
.btn.sec:hover { background: var(--surface-2); }
.btn.fantasma { background: transparent; color: var(--ink-2); box-shadow: none; }
.btn.fantasma:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn.ouro { background: linear-gradient(135deg, #d9b67f, #a87d43); color: #1b140b; }
.btn.ok { background: var(--ok); color: #fff; }
.btn.perigo { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.btn.grande { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 13px; }
.btn.pq { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.btn.cheio { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-ciente { position: relative; overflow: hidden; }
.btn-ciente.feito { background: var(--ok); color: #fff; }

.campo { display: grid; gap: 7px; margin-bottom: 18px; }
.campo > label, .rotulo { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.campo small { color: var(--muted); font-size: 12.5px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], select, textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface);
  font-size: 14.5px; transition: border-color .18s, box-shadow .18s; outline: none;
}
textarea { height: auto; min-height: 260px; padding: 13px 14px; line-height: 1.6; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input.codigo { height: 58px; text-align: center; font: 600 26px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .42em; padding-left: .42em; }
input[type=color] { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 11px; padding: 4px; background: var(--surface); cursor: pointer; }
.linha { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.escolhas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.escolha { position: relative; }
.escolha input { position: absolute; opacity: 0; pointer-events: none; }
.escolha label {
  display: grid; gap: 3px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; background: var(--surface);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.escolha label b { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.escolha label span { font-size: 12.5px; color: var(--muted); }
.escolha label i { width: 9px; height: 9px; border-radius: 50%; background: var(--info); }
.escolha.importante label i { background: var(--warn); }
.escolha.urgente label i { background: var(--bad); }
.escolha input:checked + label { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: var(--surface-2); }
.escolha input:focus-visible + label { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.marcar { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; background: var(--surface); margin-bottom: 10px; }
.marcar:hover { background: var(--surface-2); }
.marcar input { margin: 3px 0 0; width: 17px; height: 17px; accent-color: var(--ink); flex: none; }
.marcar b { display: block; font-size: 14px; }
.marcar span { font-size: 12.5px; color: var(--muted); }
.acoes-form { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.form-grade { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.dica { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.dica code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: var(--bg-2); padding: 1px 6px; border-radius: 6px; color: var(--ink-2); }
.previa { max-height: 520px; overflow: auto; }
.previa .texto { padding: 0; font-size: 14.5px; }

.alerta { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; background: var(--bad-soft); color: var(--bad); animation: surgir .25s ease-out; }
.alerta.ok { background: var(--ok-soft); color: var(--ok); }
.alerta.info { background: var(--info-soft); color: var(--info); }
.alerta.aviso { background: var(--warn-soft); color: var(--warn); }
.alerta .ic { margin-top: 1px; }
.copiar { display: flex; gap: 8px; margin-top: 10px; }
.copiar input { font: 12.5px ui-monospace, Consolas, monospace; height: 38px; }

/* ---------------------------------------------------------------- tabelas (admin) */
.tabela { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tabela th { text-align: left; font-size: 11.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tabela td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr { transition: background .15s; }
.tabela tbody tr:hover { background: var(--surface-2); }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; }
.pessoa { display: flex; align-items: center; gap: 11px; }
.pessoa > div b { display: block; font-weight: 600; font-size: 14px; }
.pessoa > div span { color: var(--muted); font-size: 12.5px; }
.prog { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.prog .barra { flex: 1; margin: 0; }
.prog small { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.esmaecido { opacity: .55; }
.rolagem { overflow-x: auto; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.kpi span { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.kpi b { display: block; font: 650 30px/1.1 var(--font-display); letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi.verde b { color: var(--ok); } .kpi.vermelho b { color: var(--bad); }
.anel { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 14px;
  background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--bg-2) 0); position: relative; }
.anel::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--surface); }
.anel b { position: relative; font: 650 28px/1 var(--font-display); letter-spacing: -.03em; }
.anel b small { font-size: 15px; color: var(--muted); }

.sis-linha { display: grid; grid-template-columns: 50px 1fr 1.4fr 1.6fr 64px 70px auto; gap: 12px; align-items: end; padding: 16px 18px; border-top: 1px solid var(--line); }
.sis-linha:first-child { border-top: 0; }
.sis-linha .campo { margin: 0; }
.sis-linha .campo label { font-size: 12px; }
.sis-linha .sis-ico { width: 44px; height: 44px; font-size: 15px; border-radius: 12px; }

/* ---------------------------------------------------------------- telas de acesso */
.acesso { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.acesso-arte {
  position: relative; overflow: hidden; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; color: #f5f1ea;
  background: radial-gradient(900px 500px at 100% 0%, rgba(210, 173, 116, .32), transparent 60%),
              radial-gradient(700px 500px at 0% 100%, rgba(120, 140, 255, .14), transparent 60%),
              linear-gradient(150deg, #1d1913, #0b0b0c 60%);
  isolation: isolate;
}
.acesso-arte::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 52px 52px; mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 10%, transparent 75%);
}
.orbe { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; animation: flutuar 14s ease-in-out infinite; }
.orbe.a { width: 380px; height: 380px; right: -60px; top: 12%; background: rgba(214, 170, 102, .35); }
.orbe.b { width: 300px; height: 300px; left: 8%; bottom: -60px; background: rgba(96, 120, 255, .18); animation-delay: -6s; }
.acesso-logo { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.acesso-logo img { height: 96px; width: auto; filter: drop-shadow(0 6px 24px rgba(214, 170, 102, .25)); }
.acesso-logo span { font-size: 11.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: rgba(245, 241, 234, .45); padding-left: 2px; }
.marca-dagua { position: absolute; right: -70px; bottom: -40px; height: 520px; width: auto; opacity: .06; z-index: -1; transform: rotate(-10deg); pointer-events: none; }
.caixa-logo { display: none; margin-bottom: 34px; }
.caixa-logo img { height: 52px; width: auto; }
.acesso-arte h2 { margin: 0; font: 640 46px/1.06 var(--font-display); letter-spacing: -.042em; max-width: 520px; }
.acesso-arte h2 span { background: linear-gradient(92deg, #f3dcb0, #c69a5a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acesso-arte p { color: rgba(245, 241, 234, .62); font-size: 16px; max-width: 460px; margin: 18px 0 0; }
.vitrine { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.vitrine span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(245,241,234,.85); }
.vitrine i { width: 8px; height: 8px; border-radius: 3px; }
.acesso-rodape { font-size: 12.5px; color: rgba(245, 241, 234, .4); }
.acesso-form { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.caixa { width: 100%; max-width: 392px; animation: subir .5s cubic-bezier(.2, .8, .2, 1); }
.caixa h1 { margin: 0 0 8px; font: 680 28px/1.15 var(--font-display); letter-spacing: -.032em; }
.caixa > p { margin: 0 0 28px; color: var(--muted); }
.caixa .link { color: var(--ink-2); font-size: 13.5px; font-weight: 560; }
.caixa .link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.senha-campo { position: relative; }
.senha-campo button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; }
.rodape-form { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.qr { display: grid; place-items: center; padding: 16px; border-radius: 16px; background: #fff; width: fit-content; margin: 0 auto 16px; box-shadow: var(--shadow); }
.segredo { text-align: center; font: 600 14px ui-monospace, Consolas, monospace; letter-spacing: .08em; color: var(--ink-2); background: var(--bg-2); padding: 10px; border-radius: 10px; margin-bottom: 20px; word-break: break-all; }
.passos { counter-reset: p; display: grid; gap: 14px; margin: 0 0 22px; padding: 0; list-style: none; }
.passos li { counter-increment: p; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 14px; color: var(--ink-2); }
.passos li::before { content: counter(p); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 700; }
.forca { height: 4px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin-top: 8px; }
.forca i { display: block; height: 100%; width: 0; transition: width .3s, background .3s; }

/* ---------------------------------------------------------------- modal urgente */
.veu {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(8, 7, 6, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: aparecer .3s ease-out;
}
.modal {
  width: 100%; max-width: 620px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  background: var(--surface); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .7); animation: subir .45s cubic-bezier(.2, .8, .2, 1);
}
.modal-faixa {
  padding: 18px 28px; display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 650; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(110deg, #b4232a, #e0454b);
}
.modal-faixa .ic { animation: pulsar 1.6s ease-in-out infinite; }
.modal-cab { padding: 26px 32px 6px; }
.modal-cab h2 { margin: 10px 0 0; font: 680 25px/1.2 var(--font-display); letter-spacing: -.028em; }
.modal .texto { padding: 18px 32px 8px; overflow: auto; font-size: 15px; }
.modal-pe { padding: 18px 32px 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface-2); }
.modal-pe small { color: var(--muted); font-size: 12.5px; max-width: 300px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 14px; background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 550; box-shadow: var(--shadow-lg); transition: all .35s cubic-bezier(.2, .8, .2, 1);
}
.toast.ver { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { color: #4ade80; }

.rodape { max-width: 1240px; margin: 0 auto; padding: 0 24px 40px; color: var(--faint); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- animações */
@keyframes surgir { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes subir { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulsar { 50% { opacity: .45; } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes flutuar { 50% { transform: translate(-30px, 30px) scale(1.08); } }
.entra { animation: subir .6s cubic-bezier(.2, .8, .2, 1) both; }
.entra.d1 { animation-delay: .06s; } .entra.d2 { animation-delay: .12s; } .entra.d3 { animation-delay: .18s; } .entra.d4 { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 1020px) {
  .grade-2, .form-grade { grid-template-columns: 1fr; }
  .lado { position: static; }
  .acesso { grid-template-columns: 1fr; }
  .acesso-arte { display: none; }
  .caixa-logo { display: block; }
  .sis-linha { grid-template-columns: 44px 1fr 1fr; }
  .sis-linha .largo { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-in { padding: 0 16px; gap: 10px; }
  .menu {
    position: fixed; left: 12px; right: 12px; top: 72px; flex-direction: column; padding: 8px; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none;
  }
  .menu.aberto { display: flex; animation: surgir .18s ease-out; }
  .menu a { padding: 12px 14px; }
  .so-celular { display: grid !important; }
  .perfil-nome { display: none; }
  .logo-img { height: 28px; }
  .marca-div, .marca-txt { display: none; }
  .hero-brasao { right: -40px; height: 240px; }
  .pagina { padding: 20px 16px 64px; }
  .hero { padding: 26px 22px; border-radius: 18px; }
  .hero h1 { font-size: 28px; }
  .relogio { display: none; }
  .cab h1 { font-size: 25px; }
  .leitura-cab, .texto { padding-left: 22px; padding-right: 22px; }
  .leitura-cab h1 { font-size: 24px; }
  .ciencia { margin: 0 22px 24px; }
  .linha, .escolhas, .kpis { grid-template-columns: 1fr; }
  .busca { width: 100%; }
  .abas { width: 100%; overflow-x: auto; }
  .modal-cab, .modal .texto, .modal-pe { padding-left: 22px; padding-right: 22px; }
  .tabela .ocultar { display: none; }
  .sistemas { gap: 10px; }
  .sis { min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 16px; }
  .sis-topo { display: contents; }
  .sis-ico { width: 44px; height: 44px; font-size: 14px; order: 0; }
  .sis > div:nth-child(2) { order: 1; flex: 1; min-width: 0; }
  .sis-seta { order: 2; }
  .sis-url { display: none; }
  .sis h3 { font-size: 16px; }
  .sis p { font-size: 13px; }
  .rodape { padding: 0 16px 32px; }
}
.vitrine img { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(233, 207, 159, .2); }
.vitrine .ic { color: #d2ad74; }

/* ---------------------------------------------------------------- saudação conforme a hora */
.hero.hero-manha {
  background: radial-gradient(1000px 420px at 90% -30%, rgba(255, 196, 120, .45), transparent 60%),
              radial-gradient(700px 300px at -10% 130%, rgba(255, 160, 120, .14), transparent 60%),
              linear-gradient(135deg, #2a2016, #120e0a);
}
.hero.hero-tarde {
  background: radial-gradient(1200px 400px at 85% -40%, rgba(210, 173, 116, .38), transparent 60%),
              radial-gradient(700px 300px at -10% 130%, rgba(120, 140, 255, .14), transparent 60%),
              linear-gradient(135deg, var(--hero-2), var(--hero-1));
}
.hero.hero-noite {
  background: radial-gradient(900px 380px at 85% -40%, rgba(110, 130, 255, .30), transparent 60%),
              radial-gradient(700px 300px at 0% 130%, rgba(210, 173, 116, .16), transparent 60%),
              linear-gradient(135deg, #10121c, #07080c);
}
.hero-sub b { color: #fff; font-weight: 600; }

/* ---------------------------------------------------------------- contadores nos cartões */
.sis-conta {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 560;
}
.sis-conta b { font: 700 15px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.sis-conta.alerta-c { background: var(--bad-soft); color: var(--bad); }
.sis-conta.alerta-c::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); align-self: center; animation: pulsar 1.6s ease-in-out infinite; }

/* ---------------------------------------------------------------- painel Seu dia */
.dia { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.dia-dir { display: grid; gap: 16px; align-content: start; }
.dia-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bloco {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
  padding: 20px 22px; overflow: hidden; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
a.bloco:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bloco-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.bloco-cab h3 { margin: 0; font: 650 16px/1.2 var(--font-display); letter-spacing: -.015em; }
.bloco-cab span { font-size: 12.5px; color: var(--muted); }
.bloco-cab > div { flex: 1; min-width: 0; }
.bloco-ico { width: 38px; height: 38px; border-radius: 11px; overflow: hidden; flex: none; display: grid; place-items: center; background: #0e0d0c; box-shadow: 0 6px 16px -10px rgba(0,0,0,.6); }
.bloco-ico img { width: 100%; height: 100%; object-fit: cover; }
.bloco-ico.neutro { background: var(--accent-soft); color: var(--accent-ink); }
.bloco-link { font-size: 13px; font-weight: 560; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; padding: 6px 10px; border-radius: 9px; }
.bloco-link:hover { background: var(--bg); color: var(--ink); }
.prazos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.prazo { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 12px; transition: background .15s; }
.prazo:hover { background: var(--surface-2); }
.prazo-data {
  width: 68px; height: 52px; border-radius: 12px; flex: none; display: grid; place-items: center; align-content: center; text-align: center;
  background: var(--bg-2); color: var(--ink-2);
}
.prazo-data b { font: 700 14.5px/1.05 var(--font-display); }
.paleta-campo input::-webkit-search-cancel-button { display: none; }
.prazo-data small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.prazo.hoje .prazo-data { background: var(--bad); color: #fff; box-shadow: 0 8px 18px -10px var(--bad); }
.prazo.hoje .prazo-data small { color: rgba(255,255,255,.8); }
.prazo.amanha .prazo-data { background: var(--warn-soft); color: var(--warn); }
.prazo-txt { flex: 1; min-width: 0; }
.prazo-txt b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prazo-txt span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prazo-txt code { font: 11.5px ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--faint); }
.agenda { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 4px; position: relative; }
.agenda::before { content: ""; position: absolute; left: 61px; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; }
.agenda li { display: grid; grid-template-columns: 46px 14px 1fr; gap: 10px; align-items: start; padding: 8px 0; border-radius: 10px; transition: opacity .3s; }
.agenda li.passou { opacity: .45; }
.agenda li.agora .ag-hora { color: var(--accent-ink); }
.agenda li.agora .ag-ponto { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.ag-hora { font: 650 13px/1.5 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ag-ponto { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; position: relative; z-index: 1; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); }
.ag-ponto.unico { background: #d9b67f; } .ag-ponto.dialogar { background: #e3b95e; } .ag-ponto.crm { background: #a87d43; }
.agenda b { display: block; font-size: 14px; font-weight: 600; }
.agenda span { display: block; font-size: 12.5px; color: var(--muted); }
.mini-bloco { display: grid; gap: 2px; align-content: start; }
.mini-bloco .bloco-ico { margin-bottom: 12px; }
.mini-num { font: 680 40px/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.mini-rot { font-size: 14px; font-weight: 600; }
.mini-bloco small { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.mini-bloco.tem-alerta small { color: var(--bad); font-weight: 560; }
.mini-bloco.tem-alerta::after { content: ""; position: absolute; top: 18px; right: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); animation: pulsar 1.6s ease-in-out infinite; }
.secao-tit .tag { margin-left: auto; }

/* ---------------------------------------------------------------- busca universal (Ctrl+K) */
.busca-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 8px 0 12px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: 13.5px; min-width: 220px; transition: border-color .2s, box-shadow .2s;
}
.busca-btn:hover { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink-2); }
.busca-btn span { flex: 1; text-align: left; }
kbd { font: 600 11px/1 var(--font); padding: 4px 6px; border-radius: 6px; background: var(--bg-2); color: var(--muted); box-shadow: inset 0 -1px 0 var(--line-2); }
.paleta-veu { position: fixed; inset: 0; z-index: 140; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px;
  background: rgba(8, 7, 6, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: aparecer .15s ease-out; }
.paleta { width: 100%; max-width: 640px; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 40px 100px -20px rgba(0,0,0,.6), 0 0 0 1px var(--line); animation: subir .25s cubic-bezier(.2, .8, .2, 1); }
.paleta-campo { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.paleta-campo .ic { color: var(--accent); width: 20px; height: 20px; }
.paleta-campo input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 17px; height: auto; padding: 0; box-shadow: none !important; }
.paleta-lista { max-height: min(56vh, 460px); overflow: auto; padding: 8px; }
.paleta-grupo { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 10px 12px 6px; }
.paleta-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; cursor: pointer; }
.paleta-item.ativo { background: var(--accent-soft); }
.paleta-item .p-ico { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--bg-2); color: var(--ink-2); font-size: 12px; font-weight: 650; }
.paleta-item .p-ico img { width: 100%; height: 100%; object-fit: cover; }
.paleta-item .p-ico.redondo { border-radius: 50%; }
.paleta-item b { display: block; font-size: 14px; font-weight: 600; }
.paleta-item span.p-sub { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paleta-item > div { flex: 1; min-width: 0; }
.paleta-item .ic.p-seta { color: var(--faint); opacity: 0; }
.paleta-item.ativo .ic.p-seta { opacity: 1; color: var(--accent-ink); }
.paleta-vazio { padding: 28px; text-align: center; color: var(--muted); font-size: 14px; }
.paleta-rodape { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--surface-2); }
.paleta-rodape kbd { margin-right: 4px; }

@media (max-width: 1020px) { .dia { grid-template-columns: 1fr; } .busca-btn { min-width: 0; } .busca-btn span, .busca-btn kbd { display: none; } }
@media (max-width: 760px) { .dia-minis { grid-template-columns: 1fr 1fr; } .mini-num { font-size: 32px; } .prazo-data { width: 48px; height: 46px; } }

/* ---------------------------------------------------------------- flyers */
.pend-mini {
  float: right; width: 128px; aspect-ratio: 4 / 5; margin: 8px 0 8px 20px; border-radius: 12px; overflow: hidden;
  background: var(--bg-2); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.pend-mini:hover { transform: scale(1.03) rotate(-1deg); }
.pend-mini img { width: 100%; height: 100%; object-fit: cover; }
.pend.com-flyer .pend-acoes { clear: both; }
.flyer { margin: 0; padding: 28px 40px 6px; }
.flyer-zoom {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; border-radius: 16px; overflow: hidden; background: var(--bg-2);
  box-shadow: var(--shadow-lg); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.flyer-zoom:hover { transform: translateY(-2px); }
.flyer-zoom img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; margin: 0 auto; }
.flyer figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.flyer figcaption > span { display: inline-flex; align-items: center; gap: 6px; }
.modal-flyer { width: 100%; height: auto; max-height: 52vh; object-fit: contain; border-radius: 14px; margin: 0 0 16px; background: var(--bg-2); cursor: zoom-in; }
.previa-flyer { width: 100%; height: auto; border-radius: 12px; margin-bottom: 14px; box-shadow: var(--shadow); }

.soltar {
  position: relative; display: grid; place-items: center; min-height: 150px; padding: 22px; border-radius: 14px; cursor: pointer; text-align: center;
  border: 1.5px dashed var(--line-2); background: var(--surface-2); transition: border-color .2s, background .2s;
}
.soltar:hover, .soltar.arrastando { border-color: var(--accent); background: var(--accent-soft); }
.soltar input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.soltar-vazio { display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: 13.5px; pointer-events: none; }
.soltar-vazio b { color: var(--ink); font-size: 14.5px; margin-top: 6px; }
.soltar-vazio .ic { color: var(--accent); }
.soltar-cheio { display: grid; justify-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.soltar-cheio img { max-height: 220px; max-width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.soltar-cheio button { position: relative; z-index: 2; }
.flyer-atual { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 10px; }
.flyer-atual img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; flex: none; }
.flyer-atual b { display: block; font-size: 14px; }
.flyer-atual > div > span { display: block; font-size: 12.5px; color: var(--muted); }
.flyer-atual.removendo img { opacity: .3; filter: grayscale(1); }

.zoom-veu {
  position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 24px; cursor: zoom-out;
  background: rgba(8, 7, 6, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: aparecer .2s ease-out;
}
.zoom-veu img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); animation: subir .3s cubic-bezier(.2, .8, .2, 1); }
.zoom-fechar { position: fixed; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; line-height: 1; }
@media (max-width: 760px) {
  .pend-mini { width: 96px; margin-left: 14px; }
  .flyer { padding: 20px 22px 4px; }
}
