/* HARA Administradora — painel flutuante exclusivo do modo administrador */
#haraAdminFab{position:fixed;right:18px;bottom:24px;z-index:155;width:62px;height:62px;border-radius:50%;border:1px solid rgba(238,205,118,.7);background:radial-gradient(circle at 35% 25%,#377b68,#12382f 58%,#071b17);color:#f3d986;box-shadow:0 14px 38px rgba(0,0,0,.45),0 0 0 5px rgba(212,175,55,.10);display:none;align-items:center;justify-content:center;font:700 25px Georgia;cursor:pointer}
#haraAdminFab.on{display:flex}#haraAdminFab.busy{animation:haPulse 1.1s infinite}@keyframes haPulse{50%{transform:scale(1.06);box-shadow:0 0 0 12px rgba(212,175,55,0)}}
#haraAdminPanel{position:fixed;z-index:160;right:14px;bottom:96px;width:min(430px,calc(100vw - 28px));height:min(690px,calc(100vh - 120px));display:none;flex-direction:column;overflow:hidden;border-radius:24px;border:1px solid rgba(212,175,55,.42);background:linear-gradient(165deg,#0d211c 0%,#07120f 48%,#060908 100%);box-shadow:0 26px 70px rgba(0,0,0,.64);color:#f4f0e7}
#haraAdminPanel.on{display:flex}.ha-head{padding:16px 17px 13px;background:linear-gradient(120deg,rgba(212,175,55,.16),rgba(30,111,89,.12));border-bottom:1px solid rgba(212,175,55,.18);display:flex;align-items:center;gap:11px}.ha-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#d8b85c,#80651d);color:#07130f;font:700 21px Georgia}.ha-title{flex:1}.ha-title b{display:block;font:700 16px Georgia;color:#f2dfa8}.ha-title small{font-size:10.5px;color:#aebcb6}.ha-engine{font-size:9px;font-weight:800;letter-spacing:.8px;color:#4de0ac;border:1px solid rgba(77,224,172,.3);padding:4px 7px;border-radius:99px}.ha-push{border:1px solid rgba(212,175,55,.35);background:rgba(212,175,55,.12);color:#f2dfa8;border-radius:99px;padding:5px 8px;font-size:9px;font-weight:800;white-space:nowrap}.ha-close{background:transparent;border:0;color:#d5cdbd;font-size:23px;padding:4px;cursor:pointer}
.ha-body{flex:1;overflow-y:auto;padding:14px}.ha-msg{max-width:88%;padding:11px 13px;border-radius:15px;margin:0 0 10px;font-size:13px;line-height:1.5;white-space:pre-wrap}.ha-msg.hara{background:rgba(255,255,255,.055);border:1px solid rgba(212,175,55,.16);color:#ebe5d7}.ha-msg.user{margin-left:auto;background:linear-gradient(135deg,#17634f,#0d493b);color:#fff}.ha-msg.err{border-color:rgba(226,92,74,.45);color:#ffb6aa}.ha-msg.transcricao{background:transparent;border:1px dashed rgba(212,175,55,.28);color:#c2b892;font-style:italic;font-size:12px}.ha-plan{border:1px solid rgba(212,175,55,.28);border-radius:15px;padding:12px;margin:10px 0;background:rgba(212,175,55,.06)}.ha-plan h4{margin:0 0 7px;color:#efd37c;font-size:12px}.ha-action{font-size:12px;color:#d7d2c6;border-top:1px solid rgba(255,255,255,.07);padding:8px 0}.ha-action:first-of-type{border-top:0}.ha-plan-buttons{display:flex;gap:8px;margin-top:9px}.ha-plan-buttons button{flex:1;padding:10px;border-radius:10px;border:1px solid rgba(212,175,55,.35);font-weight:800;font-size:11px;cursor:pointer}.ha-exec{background:linear-gradient(100deg,#d4af37,#efd98c);color:#102019}.ha-cancel{background:transparent;color:#c9c2b4}
.ha-compose{padding:11px 12px 13px;border-top:1px solid rgba(212,175,55,.18);background:rgba(0,0,0,.22)}.ha-input-row{display:flex;gap:8px;align-items:flex-end}.ha-text{flex:1;min-height:45px;max-height:110px;resize:none;border:1px solid rgba(212,175,55,.24);border-radius:13px;background:rgba(255,255,255,.055);color:#fff;padding:11px;font:13px inherit;outline:none}.ha-text:focus{border-color:#d4af37}.ha-round{width:45px;height:45px;flex:0 0 45px;border-radius:13px;border:1px solid rgba(212,175,55,.32);background:rgba(212,175,55,.10);color:#efd37c;font-size:18px;cursor:pointer}.ha-round.rec{background:#9d302a;color:#fff;animation:haPulse 1s infinite}.ha-send{background:linear-gradient(145deg,#2c8f70,#155944);color:#fff}.ha-status{min-height:16px;padding:6px 2px 0;font-size:10.5px;color:#91a49d}.ha-autonomy{display:flex;align-items:center;gap:7px;font-size:10.5px;color:#aebcb6;margin:0 0 8px}.ha-autonomy input{accent-color:#d4af37}
@media(max-width:560px){#haraAdminPanel{inset:68px 8px 8px;width:auto;height:auto;border-radius:21px}#haraAdminFab{right:14px;bottom:18px}}
.ha-dashboard-card{position:relative;overflow:hidden;margin:2px 0 18px;padding:18px;border-radius:20px;border:1px solid rgba(212,175,55,.36);background:radial-gradient(120% 120% at 100% 0,rgba(212,175,55,.22),transparent 50%),linear-gradient(145deg,#123b31,#081b17 62%,#070b09);box-shadow:0 18px 38px rgba(0,0,0,.25);color:#fff;cursor:pointer}.ha-dashboard-card:after{content:'H';position:absolute;right:18px;top:50%;transform:translateY(-50%);font:700 72px Georgia;color:rgba(238,209,126,.10)}.ha-dashboard-card .tag{font-size:9px;font-weight:900;letter-spacing:1.5px;color:#e8c970}.ha-dashboard-card h3{font:700 20px Georgia;margin:6px 0 5px;color:#f5e6ba}.ha-dashboard-card p{max-width:290px;font-size:11.5px;line-height:1.5;color:#b7c5c0;margin:0}.ha-dashboard-card .ready{display:inline-flex;align-items:center;gap:6px;margin-top:11px;font-size:10px;font-weight:800;color:#53e1ad}.ha-dashboard-card .ready:before{content:'';width:7px;height:7px;border-radius:50%;background:#53e1ad;box-shadow:0 0 9px #53e1ad}

/* HARA compacta, móvel, redimensionável e fixável */
#haraAdminFab{width:46px;height:46px;font-size:19px;touch-action:none;user-select:none}
#haraAdminPanel{resize:both;min-width:300px;min-height:360px;max-width:calc(100vw - 8px);max-height:calc(100vh - 62px)}
#haraAdminPanel.pinned{top:58px!important;right:8px!important;left:auto!important;bottom:auto!important}
.ha-head,.hpc-head{cursor:move;touch-action:none;user-select:none}
.ha-layout{width:25px;height:25px;border:1px solid rgba(212,175,55,.25);background:rgba(255,255,255,.05);color:#efd37c;border-radius:8px;padding:0;font-size:12px}
#haraPushFab{position:fixed;right:72px;bottom:24px;z-index:155;width:46px;height:46px;border-radius:50%;border:1px solid rgba(77,224,172,.45);background:linear-gradient(145deg,#17634f,#082a22);box-shadow:0 12px 30px rgba(0,0,0,.4);display:none;place-items:center;font-size:18px;cursor:pointer;touch-action:none}
#haraPushFab.on{display:grid}
#haraPushPanel{position:fixed;z-index:161;right:12px;bottom:82px;width:min(420px,calc(100vw - 16px));height:min(690px,calc(100vh - 105px));min-width:300px;min-height:380px;resize:both;overflow:hidden;display:none;flex-direction:column;color:#f2eee4;background:linear-gradient(160deg,#0d211c,#050b09);border:1px solid rgba(212,175,55,.4);border-radius:20px;box-shadow:0 25px 70px rgba(0,0,0,.65)}
#haraPushPanel.on{display:flex}.hpc-head{padding:13px 15px;display:flex;align-items:center;gap:9px;border-bottom:1px solid rgba(212,175,55,.2);background:rgba(212,175,55,.08)}.hpc-head b{flex:1;color:#f2d77f}.hpc-head small{font-size:9px;color:#91a49d}.hpc-head button{border:0;background:none;color:#fff;font-size:22px}
.hpc-tabs{display:flex}.hpc-tabs button{flex:1;padding:10px;border:0;border-bottom:2px solid transparent;background:rgba(255,255,255,.03);color:#91a49d;font-size:10px;font-weight:900}.hpc-tabs button.on{color:#f0d47e;border-color:#d4af37}
.hpc-body{padding:13px;overflow:auto;flex:1}.hpc-body label{display:block;font-size:10px;color:#aebcb6;margin-bottom:9px}.hpc-body input,.hpc-body select,.hpc-body textarea{display:block;width:100%;margin-top:4px;border:1px solid rgba(212,175,55,.23);border-radius:10px;background:#10231e;color:#fff;padding:9px;font:12px inherit;box-sizing:border-box}.hpc-body textarea{min-height:58px;resize:vertical}.hpc-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.hpc-checks{display:flex;flex-wrap:wrap;gap:9px;margin:5px 0 10px}.hpc-checks label{display:flex;align-items:center;gap:5px;margin:0}.hpc-checks input{width:auto;margin:0;accent-color:#d4af37}.hpc-send{width:100%;padding:12px;border:0;border-radius:11px;background:linear-gradient(120deg,#d4af37,#f0dc97);color:#102019;font-size:11px;font-weight:900}.hpc-report{padding:11px;border:1px solid rgba(212,175,55,.18);border-radius:12px;margin-bottom:9px;background:rgba(255,255,255,.04);font-size:11px}.hpc-report b,.hpc-report small{display:block}.hpc-report small{color:#91a49d;margin:3px 0 7px}#hpcStatus{font-size:10px;color:#5ee3b4;padding-top:8px;line-height:1.4}
@media(max-width:560px){#haraAdminPanel{inset:auto 8px 74px auto;width:min(360px,calc(100vw - 16px));height:min(520px,calc(100vh - 145px));border-radius:18px}#haraPushPanel{inset:auto 8px 74px auto;width:min(390px,calc(100vw - 16px));height:min(620px,calc(100vh - 145px))}#haraAdminFab{right:14px;bottom:16px}#haraPushFab{right:68px;bottom:16px}.ha-title small,.ha-engine{display:none}.ha-head{padding:9px;gap:5px}.ha-mark{width:32px;height:32px}.ha-push{padding:4px 5px;font-size:8px}}
.hpc-audience{border:1px solid rgba(212,175,55,.24);border-radius:14px;padding:10px;margin:10px 0}.hpc-audience legend{padding:0 6px;color:#aebcb6;font-size:11px}.hpc-audience-buttons{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.hpc-audience-btn{border:1px solid rgba(212,175,55,.25);border-radius:10px;padding:9px 5px;background:rgba(255,255,255,.035);color:#c8d1cc;font-size:11px;font-weight:700}.hpc-audience-btn.on{background:linear-gradient(135deg,#17634f,#0d493b);border-color:#38b68c;color:#fff;box-shadow:0 0 0 2px rgba(56,182,140,.12)}.hpc-target-summary{margin-top:8px;padding:7px 9px;border-radius:9px;background:rgba(212,175,55,.08);color:#efd37c;font-size:10.5px}.hpc-target-picker{margin:8px 0 12px}.hpc-target-picker[hidden]{display:none}.hpc-target-hint{font-size:11px;color:#efd37c;margin-bottom:6px}.hpc-target-picker>input{width:100%;height:40px;border:1px solid rgba(212,175,55,.22);border-radius:10px;background:rgba(255,255,255,.045);color:#fff;padding:0 11px}.hpc-target-list{max-height:250px;overflow-y:auto;margin-top:7px;border:1px solid rgba(212,175,55,.18);border-radius:11px;background:#091712}.hpc-list-title{position:sticky;top:0;z-index:1;padding:7px 10px;background:#10251d;color:#d8bc6d;font-size:9px;font-weight:800;letter-spacing:.8px}.hpc-target-row{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;padding:9px 10px;margin:0!important;border-top:1px solid rgba(255,255,255,.055);cursor:pointer}.hpc-target-row input{width:18px!important;height:18px!important;flex:none;margin:0!important}.hpc-target-row span{min-width:0}.hpc-target-row b{display:block;color:#f2eee4;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hpc-target-row small{display:block;color:#8ea79c;font-size:9.5px}.hpc-empty{padding:15px;color:#8ea79c;font-size:11px;text-align:center}
