.afp{padding:3rem 0 5rem;min-height:60vh}
.afp .box{background:var(--surface-2);border:1px solid var(--line);border-radius:18px;padding:1.6rem;max-width:520px;margin:0 auto}
.afp .wide{max-width:1100px}
.afp h2{font-size:1.5rem;margin-bottom:.4rem}.afp h3{font-size:1.1rem;margin:1.6rem 0 .8rem}
.afp .tabs{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:1.2rem}
.afp .tab{padding:.55rem 1rem;border:1px solid var(--line);border-radius:999px;background:#fff;cursor:pointer;font:inherit;font-weight:600;font-size:.92rem}
.afp .tab[aria-selected="true"]{background:var(--accent);color:#fff;border-color:var(--accent)}
.afp .field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:1rem}
.afp label{font-weight:600;font-size:.9rem}
.afp input,.afp select,.afp textarea{padding:.7rem .9rem;border:1px solid var(--line);border-radius:12px;font:inherit;background:#fff;width:100%}
.afp .row2{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.afp .stats{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));margin:1.2rem 0}
.afp .stat{background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:1.1rem 1.2rem}
.afp .stat small{color:var(--muted);display:block;font-size:.82rem}
.afp .stat b{font-family:'Fraunces',serif;font-size:1.9rem;color:var(--accent);font-weight:600}
.afp .tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:#fff}
.afp table{width:100%;border-collapse:collapse;font-size:.9rem}
.afp th,.afp td{padding:.65rem .8rem;text-align:left;border-bottom:1px solid var(--line-soft);white-space:nowrap}
.afp th{background:var(--surface);font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.afp td input,.afp td select{padding:.35rem .5rem;border-radius:8px;min-width:90px;width:auto}
.afp .pill{display:inline-block;padding:.15rem .6rem;border-radius:999px;font-size:.78rem;font-weight:600;background:#eee}
.afp .pill.ok{background:#d9efe6;color:#15513f}.afp .pill.warn{background:#f7ebc8;color:#7a5a10}.afp .pill.bad{background:#f3d6d0;color:#8a2f1e}
.afp .msg{padding:.8rem 1rem;border-radius:12px;margin:.8rem 0;font-size:.93rem;line-height:1.5}
.afp .msg.err{background:#f3d6d0;color:#8a2f1e}.afp .msg.info{background:#e3eef0;color:#214a52}.afp .msg.good{background:#d9efe6;color:#15513f}
.afp .linkbtn{background:none;border:0;color:var(--accent);cursor:pointer;font:inherit;text-decoration:underline;padding:0}
.afp .code{font-family:'IBM Plex Mono',monospace;background:var(--surface);border:1px dashed var(--accent);padding:.35rem .7rem;border-radius:10px;font-size:1.1rem}
.afp .topbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:.6rem}
.afp .btn-sm2{padding:.4rem .8rem;font-size:.82rem}
.afp [hidden]{display:none!important}
