/* App e notificações (/app/ e /admin/notificacoes): partials/install-box.php e partials/push-box.php */
.ap { display: grid; gap: 18px; }
.ap--admin { max-width: 760px; }
.ap-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius, 18px); padding: clamp(18px, 3vw, 28px); }
.ap-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ap-card__head h2 { font-size: clamp(20px, 2.4vw, 24px); margin: 0; letter-spacing: -.01em; }
.ap-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #1a1a1a; font-weight: 800; display: grid; place-items: center; flex: none; font-size: 15px; }
.ap-card p { margin: 0 0 14px; color: var(--text-2); }
.ap-card p:last-child { margin-bottom: 0; }
.ap-card b { color: var(--text); }
.ap-steps { margin: 0 0 14px; padding-left: 22px; color: var(--text-2); display: grid; gap: 8px; }
.ap-steps svg { display: inline-block; vertical-align: -3px; color: #3d8bfd; }
.ap-note { color: var(--muted) !important; font-size: 13.5px; }
.ap-note a { color: var(--accent); text-decoration: underline; }
.ap-ok { color: var(--text) !important; }
.ap-ok::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.ap-label { font-weight: 600; color: var(--text) !important; margin-bottom: 10px !important; }
.ap-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-bottom: 8px; }
.ap-topic { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; transition: border-color .2s, background .2s; }
.ap-topic:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); }
.ap-topic input { width: 20px; height: 20px; accent-color: var(--accent); margin: 1px 0 0; flex: none; }
.ap-topic span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.ap-topic small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ap-topic--discreet { margin-top: 14px; }
.ap-preview { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); max-width: 380px; }
.ap-preview img { border-radius: 9px; flex: none; }
.ap-preview div { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 14px; line-height: 1.35; }
.ap-preview b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-preview span { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-preview em { font-style: normal; color: var(--muted); font-size: 12px; align-self: flex-start; }
.ap-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-msg { margin: 12px 0 0 !important; font-size: 14px; color: var(--accent) !important; min-height: 0; }
.ap-msg:empty { display: none; }
.ap-msg.is-bad { color: #ff7a7a !important; }
.ap-dev { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ap-dev:first-of-type { border-top: 0; }
.ap-dev > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.ap-stats div { background: var(--bg-3, rgba(255, 255, 255, .03)); border-radius: 12px; padding: 12px; }
.ap-stats b { display: block; font-size: 24px; font-weight: 800; color: var(--accent); line-height: 1; }
.ap-stats span { display: block; font-size: 12px; color: var(--text-2); margin-top: 6px; }
@media (max-width: 560px) {
  .ap-actions .btn { width: 100%; justify-content: center; }
}
