.presence-slug-input{display:flex;align-items:stretch;border:1px solid #d7e0e5;border-radius:16px;overflow:hidden;background:#fff}.presence-slug-input span{display:flex;align-items:center;padding:0 14px;background:#f3f6f8;color:#52616b;font-size:.86rem;white-space:nowrap}.presence-slug-input input{border:0!important;border-radius:0!important;min-width:0}.presence-history{margin-top:20px;border-top:1px solid #e7ecef;padding-top:16px}.presence-history>strong{display:block;margin-bottom:10px}.presence-history>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #eef2f4}.presence-history code{overflow:hidden;text-overflow:ellipsis}.presence-history small{color:#71808a}

/* PL4B — cards de QR fluidos, sem estouro de URL/botões. */
.presence-qr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}.presence-qr-card{display:grid;grid-template-columns:124px minmax(0,1fr);gap:16px;align-items:start;min-width:0;background:#fff;border:1px solid #e4e9ed;border-radius:24px;padding:18px;box-shadow:0 12px 34px rgba(23,43,58,.06);overflow:hidden}.presence-qr-card.is-disabled{opacity:.58}.presence-qr-preview{display:flex;align-items:flex-start;justify-content:center;min-width:0}.presence-qr-preview img{width:118px;height:118px;max-width:100%;object-fit:contain;border-radius:15px;border:1px solid #edf0f2;background:#fff}.presence-qr-info{min-width:0;overflow:hidden}.presence-qr-info>span{font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#7a8790}.presence-qr-info h3{margin:4px 0 7px;font-size:1.08rem;line-height:1.2;overflow-wrap:anywhere}.presence-qr-info p{margin:0 0 8px;overflow-wrap:anywhere}.presence-qr-info code{display:block;width:100%;max-width:100%;padding:8px 10px;border-radius:10px;background:#f6f8f9;font-size:.68rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.presence-qr-info small{display:block;margin:8px 0;color:#70808a}.presence-qr-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0}.presence-qr-actions a,.presence-qr-actions button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:38px;border:1px solid #d8e0e4;background:#fff;border-radius:10px;padding:8px 9px;font:inherit;font-size:.73rem;font-weight:900;color:#28434e;cursor:pointer;text-decoration:none;text-align:center;white-space:normal;line-height:1.15}.presence-create-qr{margin-top:22px}.presence-dashboard .dash-wrap{padding-bottom:50px}
.presence-print-body{background:#eceff1}.presence-print-page{min-height:100vh;padding:24px}.presence-print-toolbar{max-width:700px;margin:0 auto 16px;display:flex;justify-content:space-between;gap:12px}.presence-print-toolbar a,.presence-print-toolbar button{border:0;border-radius:12px;padding:11px 14px;background:#18392e;color:#fff;text-decoration:none;font-weight:900;cursor:pointer}.presence-print-sheet{width:min(100%,700px);margin:auto;background:#fff;color:#111;padding:34px;border-radius:8px;text-align:center;box-shadow:0 8px 35px #0002}.presence-print-sheet img{width:300px;height:300px;max-width:75vw}.presence-print-sheet h1{margin:12px 0 4px}.presence-print-sheet p{margin:4px 0 16px}.presence-print-sheet small{display:block;word-break:break-all;color:#555}
@media(max-width:980px){.presence-qr-grid{grid-template-columns:1fr}}
@media(max-width:620px){.presence-slug-input{display:grid}.presence-slug-input span{padding:10px 12px;white-space:normal}.presence-history>div{grid-template-columns:1fr}.presence-qr-card{grid-template-columns:96px minmax(0,1fr);padding:14px;gap:12px;border-radius:18px}.presence-qr-preview img{width:92px;height:92px}.presence-qr-actions{grid-template-columns:1fr 1fr}.presence-print-page{padding:12px}.presence-print-sheet{padding:22px}}
@media(max-width:430px){.presence-qr-card{grid-template-columns:1fr}.presence-qr-preview{justify-content:flex-start}.presence-qr-preview img{width:112px;height:112px}.presence-qr-actions{grid-template-columns:1fr}.presence-qr-info code{white-space:normal;overflow-wrap:anywhere}}
@media print{.presence-print-body{background:#fff}.presence-print-toolbar{display:none}.presence-print-page{padding:0}.presence-print-sheet{box-shadow:none;width:100%;padding:8mm;border-radius:0}.presence-print-sheet img{width:65mm;height:65mm}}
