/* Apontamentos: botão "Apontar", pontos numerados e janelinha. */
.fb { --fb: #e11d48; --fb-ink: #fff; font: 14px/1.45 var(--font); }
.fb-bar { position: fixed; left: 18px; bottom: 18px; z-index: 9990; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 8px 28px rgba(0,0,0,.14); }
.fb-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 12px; border: 0; border-radius: 999px; background: var(--fb); color: var(--fb-ink); font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .15s var(--ease, ease), box-shadow .15s; }
.fb-btn:hover { box-shadow: 0 0 0 4px rgba(225,29,72,.16); }
.fb-btn:active { transform: scale(.97); }
.fb-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--fb); font: 700 12px/20px var(--font); font-style: normal; text-align: center; }
.fb-eye { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; }
.fb-eye:hover { background: var(--bg); color: var(--ink); }
.fb-eye.is-off { color: var(--fb); }
html.fb-mode, html.fb-mode * { cursor: crosshair !important; }
html.fb-mode .fb-bar .fb-btn { box-shadow: 0 0 0 4px rgba(225,29,72,.25); }
.fb-tip { position: fixed; left: 50%; top: 14px; z-index: 9995; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 16px; border-radius: 12px; background: #111; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.fb-tip button { border: 0; border-radius: 8px; padding: 6px 10px; background: rgba(255,255,255,.14); color: #fff; font: 600 13px var(--font); cursor: pointer !important; white-space: nowrap; }
.fb-hl { position: fixed; left: 0; top: 0; z-index: 9985; pointer-events: none; border: 2px dashed var(--fb); border-radius: 6px; background: rgba(225,29,72,.06); transition: transform .06s linear, width .06s linear, height .06s linear; }
.fb-layer { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 9986; }
.fb-pin { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -30px 0 0 -15px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 3px 6px rgba(0,0,0,.3)); }
.fb-pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--fb); color: var(--fb-ink); border: 2px solid #fff; font: 700 12px/1 var(--font); }
.fb-pin b { transform: rotate(45deg); font-weight: 700; }
.fb-pin.is-on span, .fb-pin:hover span { background: #111; }
.fb-pin--draft span { background: #111; }
.fb-pin.is-pulse span { animation: fb-pulse 1.1s ease-out 3; }
@keyframes fb-pulse { 0% { box-shadow: 0 0 0 0 rgba(225,29,72,.6); } 100% { box-shadow: 0 0 0 16px rgba(225,29,72,0); } }
.fb-pop { position: fixed; z-index: 9996; width: 330px; max-width: calc(100vw - 24px); padding: 14px; border-radius: 14px; background: var(--card); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.fb-pop.is-sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; max-width: none; border-radius: 16px 16px 0 0; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.fb-pop-h { position: relative; display: flex; flex-direction: column; gap: 2px; padding-right: 28px; margin-bottom: 10px; }
.fb-pop-h small { color: var(--muted); font-size: 12px; }
.fb-x { position: absolute; right: -4px; top: -6px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.fb-x:hover { background: var(--bg); color: var(--ink); }
.fb-pop textarea { width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; resize: vertical; }
.fb-pop textarea:focus { outline: 2px solid var(--fb); outline-offset: 1px; border-color: transparent; }
.fb-pop-b { white-space: normal; word-wrap: break-word; max-height: 220px; overflow: auto; }
.fb-reply { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--ok-soft, #e9f8ea); }
.fb-reply small { display: block; font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fb-pop textarea + .fb-acts, .fb-pop-b + .fb-acts, .fb-reply + .fb-acts { margin-top: 10px; }
.fb-pop [data-fb-reply] { margin-top: 10px; }
.fb-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.fb-acts:empty { display: none; }
.fb-a { height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background: transparent; color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.fb-a:hover { border-color: var(--ink); }
.fb-a:disabled { opacity: .6; }
.fb-a--main { background: var(--fb); border-color: var(--fb); color: #fff; }
.fb-a--main:hover { border-color: var(--fb); filter: brightness(1.08); }
.fb-a--ok { background: var(--ok, #1ab91e); border-color: transparent; color: #fff; }
.fb-a--del { margin-right: auto; color: var(--late, #dc2626); border-color: transparent; }
.fb-toast { position: fixed; left: 18px; bottom: 74px; z-index: 9997; max-width: calc(100vw - 36px); padding: 10px 14px; border-radius: 10px; background: #111; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
@media (max-width: 720px) {
	.fb-bar { left: 12px; bottom: 12px; }
	.fb-btn span { display: none; }
	.fb-btn { padding: 0 11px; }
	.fb-toast { left: 12px; bottom: 64px; }
	.fb-tip { top: auto; bottom: 70px; font-size: 13px; }
}
@media print { .fb { display: none; } }

/* Tela de apontamentos no painel */
.fbl { display: grid; gap: 12px; }
.fbl-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.fbl-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #e11d48; color: #fff; font-weight: 700; font-size: 12px; }
.fbl-n > span { transform: rotate(45deg); }
.fbl-item.is-done .fbl-n { background: var(--ok, #1ab91e); }
.fbl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.fbl-body { margin: 6px 0 8px; font-size: 15px; white-space: pre-line; word-wrap: break-word; }
.fbl-where { font-size: 12px; color: var(--muted); word-break: break-all; }
.fbl-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 10px; }
.fbl-form textarea { flex: 1 1 260px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); color: var(--ink); font: inherit; resize: vertical; }
.fbl-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.fbl-tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.fbl-tabs a.is-on { background: var(--ink); color: var(--card); border-color: var(--ink); }
@media (max-width: 600px) { .fbl-item { grid-template-columns: 1fr; } .fbl-n { width: 28px; height: 28px; } }
