/* conta da Ata no site: login (ataai.app/entrar) e painel (ataai.app/app), v1.12.0
   Mesmo visual do painel de admin: fundo claro, cartões brancos arredondados.
   Prefixo "ap-": bloqueadores de anúncio escondem classes "ad-*". */
:root {
  --bg: #f3f3f6; --app: #ffffff; --side: #f7f7fa; --card: #ffffff; --soft: #f4f5f8;
  --ink: #12151f; --ink-soft: #3a3f4b; --muted: #737a8a; --line: #e8e9ef; --line-strong: #d4d7e0;
  --blue: #2f6df0; --blue-weak: #eef3ff; --green: #1a8a5c; --green-weak: #e3f5ec; --red: #c8413a;
  --amber: #fdf2dd; --lav: #eaedfc; --hl: #fff4c7;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b0e16; --app: #111623; --side: #0e131e; --card: #161c2b; --soft: #1b2233;
  --ink: #eef1f8; --ink-soft: #c3c9d8; --muted: #8a92a6; --line: #232b3e; --line-strong: #34405c;
  --blue: #6b93ff; --blue-weak: #1a2542; --green: #34d399; --green-weak: #122a20; --red: #f87171;
  --amber: #2e2512; --lav: #1c2242; --hl: #3a3313;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: "General Sans", system-ui, -apple-system, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.ap-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.01em; text-decoration: none; }
.ap-brand img { width: 30px; height: 30px; border-radius: 9px; }

.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none; transition: border-color .12s, opacity .12s; }
.ap-btn:hover { border-color: var(--line-strong); }
.ap-btn:disabled { opacity: .5; cursor: default; }
.ap-primary { background: var(--ink); color: var(--app); border-color: var(--ink); }
.ap-primary:hover { opacity: .9; border-color: var(--ink); }
.ap-link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; font-size: inherit; }
.ap-link:hover { text-decoration: underline; }
.ap-btn.loading { position: relative; color: transparent !important; }
.ap-btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--muted); border-right-color: transparent; animation: ap-spin .7s linear infinite; }
.ap-primary.loading::after { border-color: var(--app); border-right-color: transparent; }
.ap-muted { color: var(--muted); }
.ap-hint-box { background: var(--soft); border-radius: 12px; padding: 10px 14px; color: var(--ink-soft); font-size: 13.5px; margin: 0 0 16px; }
@keyframes ap-spin { to { transform: rotate(360deg); } }

/* ---------- login ---------- */
.ap-auth-page { background: var(--app); }
.ap-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; }
.ap-auth-form { display: flex; flex-direction: column; padding: 32px 48px; }
.ap-auth-box { width: 100%; max-width: 380px; margin: auto; padding: 40px 0; }
.ap-auth-box h1 { font-family: "Clash Display", "General Sans", sans-serif; font-size: 32px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.15; }
.ap-sub { color: var(--muted); margin: 0 0 28px; line-height: 1.5; }
.ap-google { width: 100%; padding: 12px; border: 1.5px solid var(--line-strong); font-weight: 600; font-size: 14.5px; }
.ap-google:hover { border-color: var(--blue); }
.ap-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 22px 0; }
.ap-or::before, .ap-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#ap-form { display: flex; flex-direction: column; gap: 14px; }
.ap-field { display: flex; flex-direction: column; gap: 7px; }
.ap-field > span:first-child { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.ap-forgot { font-size: 12.5px; font-weight: 500; }
.ap-field input { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; font-size: 15px; background: var(--card); outline: none; transition: border-color .12s, box-shadow .12s; }
.ap-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-weak); }
.ap-pass { position: relative; display: block; }
.ap-pass input { padding-right: 84px; }
.ap-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.ap-eye:hover { color: var(--ink); background: var(--soft); }
.ap-hint { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); }
.ap-msg { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; color: var(--red); background: color-mix(in srgb, var(--red) 9%, transparent); border: 1px solid color-mix(in srgb, var(--red) 25%, transparent); }
.ap-msg.ok { color: var(--green); background: var(--green-weak); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
#ap-form .ap-primary { width: 100%; padding: 13px; font-size: 15px; font-weight: 600; margin-top: 4px; min-height: 48px; }
.ap-switch { margin: 24px 0 0; text-align: center; color: var(--muted); }
.ap-auth-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.ap-auth-foot a { color: var(--ink-soft); }

.ap-auth-art { background: #12151f; color: #eef1f8; display: flex; align-items: center; justify-content: center; padding: 48px; position: relative; overflow: hidden; }
.ap-auth-art::before { content: ""; position: absolute; inset: -30% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(47,109,240,.45), transparent 65%); }
.ap-art-in { position: relative; max-width: 460px; }
.ap-art-kicker { display: inline-block; font-size: 12.5px; font-weight: 600; color: #a9c1ff; background: rgba(107,147,255,.14); padding: 5px 12px; border-radius: 999px; margin: 0 0 18px; }
.ap-art-in h2 { font-family: "Clash Display", "General Sans", sans-serif; font-size: 34px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; margin: 0 0 28px; }
.ap-art-card { background: #fff; color: #12151f; border-radius: 20px; padding: 20px 22px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); transform: rotate(-1.2deg); }
.ap-art-head { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; margin-bottom: 14px; }
.ap-art-dot { width: 10px; height: 10px; border-radius: 50%; background: #1a8a5c; grid-row: span 2; }
.ap-art-head small { color: #737a8a; grid-column: 2; }
.ap-art-sec { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: #737a8a; margin: 12px 0 6px; }
.ap-art-card ul { margin: 0; padding-left: 18px; line-height: 1.6; }
.ap-art-tasks { list-style: none; padding: 0 !important; }
.ap-art-tasks li { display: flex; gap: 8px; align-items: center; }
.ap-art-tasks i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #d4d7e0; flex: none; }
.ap-art-points { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; color: #c3c9d8; }
.ap-art-points li { padding-left: 26px; position: relative; }
.ap-art-points li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 8px; border-left: 2px solid #34d399; border-bottom: 2px solid #34d399; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .ap-auth { grid-template-columns: 1fr; }
  .ap-auth-art { display: none; }
  .ap-auth-form { padding: 24px 16px; min-height: 100vh; }
  .ap-auth-box h1 { font-size: 28px; }
}

/* ---------- painel ---------- */
.ap-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.ap-side { background: var(--side); border-right: 1px solid var(--line); padding: 24px 18px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.ap-nav { display: flex; flex-direction: column; gap: 2px; }
.ap-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; text-decoration: none; color: var(--ink-soft); font-weight: 500; border: 0; background: none; cursor: pointer; text-align: left; width: 100%; }
.ap-nav-item:hover { background: var(--soft); color: var(--ink); }
.ap-nav-item.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(18,21,31,.06), inset 0 0 0 1px var(--line); }
.ap-nav-item svg { width: 18px; height: 18px; flex: none; }
.ap-nav-count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }
.ap-nav-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 0 12px; margin: 6px 0 4px; }
.ap-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.ap-promo { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.ap-promo b { color: var(--ink); display: block; margin-bottom: 4px; }
.ap-promo .ap-btn { margin-top: 10px; width: 100%; padding: 8px; font-size: 13px; }
.ap-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; position: relative; }
.ap-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--lav); color: var(--blue); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; }
.ap-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ap-user-txt { min-width: 0; flex: 1; }
.ap-user-txt b, .ap-user-txt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-user-txt small { color: var(--muted); font-size: 12px; }
.ap-icon-btn { border: 0; background: none; padding: 7px; border-radius: 10px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.ap-icon-btn:hover { background: var(--soft); color: var(--ink); }
.ap-icon-btn svg { width: 18px; height: 18px; }

.ap-main { min-width: 0; padding: 28px 36px 60px; }
.ap-top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ap-top h1 { font-family: "Clash Display", "General Sans", sans-serif; font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin: 0; flex: 1; min-width: 200px; }
.ap-search { position: relative; flex: 0 1 360px; min-width: 220px; }
.ap-search input { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 10px 16px 10px 40px; outline: none; }
.ap-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-weak); }
.ap-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.ap-burger { display: none; }

.ap-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.ap-chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 13px; font-size: 13px; cursor: pointer; color: var(--ink-soft); }
.ap-chip.on { background: var(--ink); color: var(--app); border-color: var(--ink); }

.ap-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
@media (max-width: 640px) { .ap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ap-stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.ap-stat small { color: var(--muted); font-size: 12.5px; }
.ap-stat b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }

.ap-group { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 22px 0 8px; }
.ap-list { display: flex; flex-direction: column; gap: 8px; }
.ap-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; text-decoration: none; transition: border-color .12s, box-shadow .12s; }
.ap-row:hover { border-color: var(--line-strong); box-shadow: 0 8px 24px -18px rgba(18,21,31,.4); }
.ap-plat { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.ap-plat.meet { background: var(--green-weak); color: var(--green); }
.ap-plat.zoom { background: var(--blue-weak); color: var(--blue); }
.ap-plat.teams { background: var(--lav); color: #5b5fc7; }
.ap-plat.upload { background: var(--amber); color: #9a6a00; }
.ap-row-main { min-width: 0; }
.ap-row-main b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-row-main small { color: var(--muted); font-size: 12.5px; }
.ap-row-main .ap-snip { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-row-main mark { background: var(--hl); color: inherit; border-radius: 3px; padding: 0 2px; }
.ap-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ap-tag { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--ink-soft); white-space: nowrap; }
.ap-tag.ok { background: var(--green-weak); color: var(--green); }
.ap-tag.team { background: var(--lav); color: var(--blue); }
.ap-more { margin: 18px auto 0; display: flex; }

.ap-empty { background: var(--card); border: 1px dashed var(--line-strong); border-radius: 22px; padding: 44px 24px; text-align: center; max-width: 560px; margin: 30px auto; }
.ap-empty h2 { margin: 0 0 8px; font-size: 20px; }
.ap-empty p { color: var(--muted); line-height: 1.55; margin: 0 0 18px; }
.ap-skel { height: 70px; border-radius: 16px; background: linear-gradient(90deg, var(--soft), var(--card), var(--soft)); background-size: 200% 100%; animation: ap-shine 1.2s infinite; }
@keyframes ap-shine { to { background-position: -200% 0; } }
.ap-error { color: var(--red); background: color-mix(in srgb, var(--red) 8%, transparent); border: 1px solid color-mix(in srgb, var(--red) 25%, transparent); border-radius: 14px; padding: 12px 14px; }

/* reunião */
.ap-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 500; margin-bottom: 14px; }
.ap-back:hover { color: var(--ink); }
.ap-doc-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.ap-doc-head h1 { font-family: "Clash Display", "General Sans", sans-serif; font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 6px; }
.ap-doc-head .ap-meta { color: var(--muted); }
.ap-doc-title { flex: 1; min-width: 240px; }
.ap-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.ap-tab { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ap-tab.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.ap-doc { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; align-items: start; }
.ap-paper { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 30px; line-height: 1.65; min-width: 0; }
.ap-paper h2 { font-size: 18px; margin: 22px 0 8px; }
.ap-paper h2:first-child, .ap-paper h3:first-child { margin-top: 0; }
.ap-paper h3, .ap-paper h4 { font-size: 15.5px; margin: 18px 0 6px; }
.ap-paper ul, .ap-paper ol { padding-left: 22px; }
.ap-paper li.ap-task { list-style: none; margin-left: -20px; }
.ap-paper code { background: var(--soft); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.ap-sum + .ap-sum { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.ap-sum-title { font-size: 12px !important; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 10px !important; }
.ap-line { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 6px 0; }
.ap-line.cont { padding-top: 0; }
.ap-line-time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 3px; }
.ap-line-speaker { display: block; font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.ap-line p { margin: 0; }
.ap-line.hl p { background: var(--hl); border-radius: 6px; padding: 2px 6px; margin-left: -6px; }
.ap-line mark { background: var(--hl); color: inherit; border-radius: 3px; }
.ap-aside { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 20px; }
.ap-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.ap-box h3 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.ap-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ap-people li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.ap-people li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.ap-bar { height: 4px; border-radius: 4px; background: var(--soft); margin-top: 4px; overflow: hidden; }
.ap-bar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.ap-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--app); padding: 10px 18px; border-radius: 999px; font-weight: 500; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); z-index: 50; }

@media (max-width: 1100px) { .ap-doc { grid-template-columns: 1fr; } .ap-aside { position: static; } }
@media (max-width: 860px) {
  .ap-shell { grid-template-columns: 1fr; }
  .ap-side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 40; transform: translateX(-100%); transition: transform .2s, visibility .2s; visibility: hidden; }
  .ap-shell.menu .ap-side { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  .ap-shell.menu::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 30; }
  .ap-burger { display: grid; }
  .ap-main { padding: 18px 16px 48px; }
  .ap-search { flex: 1 1 100%; }
  .ap-row { grid-template-columns: 40px minmax(0, 1fr); }
  .ap-row .ap-tags { grid-column: 2; justify-content: flex-start; }
  .ap-paper { padding: 20px 18px; }
  .ap-line { grid-template-columns: 1fr; gap: 0; }
}
