:root{color-scheme:light;--navy:#082c69;--blue:#0b4eae;--bright:#1478e7;--soft:#eaf3ff;--bg:#f3f7fd;--ink:#10294d;--muted:#5f708a;--border:#dce7f5;--white:#fff;--good:#0b8e56;--shadow:0 6px 22px rgba(17,56,117,.06)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}input,select{color:var(--ink)}small{font-size:12px}strong,b{font-weight:760}h1,h2,h3,p{margin-top:0}h1{font-size:27px;line-height:1.2;letter-spacing:-.5px}h2{font-size:17px;letter-spacing:-.2px;margin-bottom:0}p{line-height:1.6}.muted{color:var(--muted)}
.app-shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;align-self:start;min-height:100vh;padding:26px 14px 24px;background:linear-gradient(165deg,#08285f 0,#0a438d 65%,#0a3976 100%);color:#fff;display:flex;flex-direction:column}.brand,.auth-brand{display:flex;align-items:center;gap:11px;padding:0 11px}.brand b{font-size:19px;letter-spacing:-.3px}.brand em{font-size:18px;font-weight:500;font-style:normal;color:#b5ddff}.brand small,.auth-brand small{display:block;color:#c4dcf6;font-size:11px}.mark{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:#fff;color:#0d58b0;font-size:25px;font-weight:900;box-shadow:0 6px 20px #0019414d;flex-shrink:0}.side-caption{color:#9fc8f7;font-size:10px;font-weight:800;letter-spacing:1.1px;padding:34px 15px 13px}.side-nav{display:grid;gap:6px}.side-nav a{display:flex;align-items:center;gap:13px;font-weight:650;color:#d0e4ff;border-radius:11px;padding:12px 14px;min-height:48px;transition:background .2s,color .2s}.side-nav a:hover{background:#ffffff17;color:#fff}.side-nav a.active{background:#fff;color:#07428d;box-shadow:0 4px 12px #0025572b}.nav-icon{width:22px;text-align:center;font-size:21px;line-height:1}.side-footer{margin-top:auto;padding:17px 14px 0;color:#c3daef;display:grid;gap:4px;font-size:11px}.side-footer small{font-weight:750;color:#fff}
.main-area{min-width:0}.topbar{background:#fff;min-height:74px;border-bottom:1px solid var(--border);padding:15px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px}.breadcrumb{font-weight:700;color:#18477e}.breadcrumb span{color:#97a7b8;margin:0 10px}.logout{margin:0}.page{padding:26px 30px 40px;max-width:1520px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:23px}.page-heading h1{margin:0 0 5px}.page-heading p{margin:0;font-size:14px}.page-footer{margin-top:26px;color:#8797ab;font-size:12px;text-align:center}
.panel,.stat-card{border:1px solid var(--border);background:#fff;border-radius:17px;box-shadow:var(--shadow)}.panel{padding:22px;min-width:0}.panel+.panel{margin-top:0}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:17px}.section-head h2{line-height:1.3}.section-sub{margin:4px 0 0;color:var(--muted);font-size:12px}.eyebrow{display:inline-flex;align-items:center;font-size:10px;line-height:1.4;padding:5px 9px;background:#ecf4ff;color:#1353a3;border-radius:7px;font-weight:800;letter-spacing:.3px;white-space:nowrap}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:17px}.stat-card{padding:19px;display:flex;flex-direction:column;align-items:flex-start;min-height:156px}.stat-symbol{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--tone),white 90%);color:var(--tone);font-size:20px;font-weight:900;margin-bottom:12px}.stat-caption{color:#607693;font-weight:650;font-size:12px}.stat-card strong{font-size:26px;letter-spacing:-.8px;color:#0c4189;line-height:1.4;overflow-wrap:anywhere}.stat-card small{color:#8493a7;line-height:1.4;margin-top:2px}.two-columns{display:grid;grid-template-columns:1.15fr 1fr;gap:17px;margin-bottom:17px}.top-panels{align-items:stretch}.chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-bottom:17px}.top-panels .panel{min-height:270px}
.status{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:max-content;padding:5px 10px;border-radius:7px;font-size:11px;font-weight:830;white-space:nowrap}.status.good{color:#06613d;background:#daf8e8}.status.bad{color:#a7202d;background:#fee4e7}.status.amber{color:#8d5e04;background:#fff1d4}.status.blue{color:#0b539d;background:#e0f1ff}.status.gray{color:#58687a;background:#ecf0f4}.backup-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:13px}.subtle{font-size:12px;color:#687f9b}.last-id{color:#12447e;font-weight:800;overflow-wrap:anywhere;font-size:19px;line-height:1.4;margin-bottom:18px}.last-details{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}.last-details>div{display:grid;gap:5px;background:#f1f7ff;border:1px solid #e2efff;padding:12px;border-radius:10px}.last-details small{color:#7185a0}.last-details b{font-size:15px;color:#113f7d}.button-row,.quick-actions,.action-wrap{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.button-row form,.quick-actions form,.action-wrap form{margin:0}.helper{color:#73849b;font-size:12px;line-height:1.55;margin:15px 0 0}.status-list{display:grid}.status-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #e9f0f9}.status-list>div:last-child{border-bottom:0}.status-list>div>span:first-child{color:#5d718c}.status-list strong{font-size:13px;color:#214772;text-align:right}.text-link{color:#0963c7;font-weight:750;font-size:12px;display:inline-flex;align-items:center;margin-top:18px}.text-link:hover{text-decoration:underline}.inline-warning{background:#fff0f0;color:#a33132;padding:10px 12px;border-radius:9px;font-size:12px;margin:12px 0}
.donut-layout{display:grid;grid-template-columns:185px 1fr;gap:25px;align-items:center;min-height:210px}.donut{height:176px;width:176px;border-radius:50%;position:relative;display:grid;place-items:center}.donut-hole{width:110px;height:110px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 0 0 3px #ffffffa6}.donut-hole b{font-size:30px;color:#0c4189;line-height:1.1}.donut-hole small{color:#8090a2;font-size:11px}.donut-legend{display:grid;gap:8px}.donut-legend>div{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:9px;font-size:12px}.donut-legend strong{font-size:14px;color:#174273}.legend-dot{height:11px;width:11px;border-radius:4px}
.bar-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:stretch;gap:10px;height:210px;padding:12px 5px 0}.bar-col{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px}.bar-value{font-size:12px;color:#376ba9;font-weight:750}.bar-track{width:min(100%,45px);height:145px;border-radius:8px 8px 5px 5px;background:repeating-linear-gradient(to top,#f3f8ff 0 1px,transparent 1px 38px);position:relative;display:flex;align-items:flex-end}.bar-track span{display:block;width:100%;border-radius:7px 7px 4px 4px;min-height:0;background:linear-gradient(180deg,#43a4fb,#0c65c5);transition:height .6s ease;box-shadow:0 3px 10px #075cbe2b}.bar-day{color:#70849e;font-size:11px}.quick-actions{gap:10px}.quick-actions form{flex-shrink:0}
.btn{border:1px solid transparent;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:750;font-size:12px;line-height:1.2;padding:11px 15px;min-height:38px;background:#eaf3ff;color:#124b91;text-align:center;transition:filter .15s,background .15s;white-space:nowrap}.btn:hover{filter:brightness(.96)}.btn.primary{background:#1165cf;color:white;border-color:#1165cf}.btn.outline{background:#fff;border-color:#bfd7f2;color:#0b559e}.btn.soft{background:#edf5ff;color:#0859b5}.btn.small{font-size:11px;padding:8px 11px;min-height:32px}.btn.danger{background:#c12536;color:white}.btn.block{width:100%;font-size:14px;padding:14px}.btn.top-logout{background:#e9f2ff;color:#0e4a9d}.btn:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #70c4ff;outline-offset:2px}
.table-scroll{overflow:auto;width:100%;border:1px solid #e2ebf6;border-radius:12px}.data-table{border-collapse:collapse;width:100%;min-width:760px;table-layout:auto}.data-table thead{background:#f0f6ff}.data-table th{color:#426186;text-align:left;font-size:11px;font-weight:800;white-space:nowrap;padding:12px 13px}.data-table td{padding:13px;border-top:1px solid #e8f0fa;vertical-align:middle;color:#183c67;font-size:12px}.data-table tbody tr:hover{background:#fbfdff}.data-table td:first-child{min-width:145px}.data-table td:nth-child(2){min-width:170px}.data-table td:nth-child(4){min-width:126px}.data-table td:last-child{min-width:205px}.data-table td strong,.type-label{font-weight:750;display:block}.data-table td small{display:block;font-size:10px;color:#7f90a6;margin-top:4px;overflow-wrap:anywhere}.data-table .numeric{font-weight:760;white-space:nowrap}.action-wrap{gap:6px}.action-wrap .btn{white-space:normal}.inline-form{display:inline-flex}.restore-details{width:100%;font-size:11px}.restore-details summary{cursor:pointer;color:#315b8c;font-weight:700}.restore-form{display:grid;gap:7px;margin-top:9px;padding:10px;background:#fdf5f5;border:1px solid #ffe1e1;border-radius:8px}.restore-form p{margin:0;font-size:11px}.restore-form input{padding:8px}.table-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:14px;color:#627997}.info-strip{margin-top:17px;background:#e9f3ff;border:1px solid #c7dcf6;color:#25517f;padding:14px;border-radius:11px;font-size:12px}.info-strip strong{color:#0d488f}.empty-state{background:#f1f7ff;color:#536b89;border:1px dashed #b9d4f5;border-radius:12px;padding:18px}.empty-state p{margin:6px 0 0}.filters{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:12px;margin-bottom:16px}
label{display:block;font-size:12px;font-weight:760;color:#3e5a79;margin-bottom:13px}label input,label select{display:block;width:100%;margin-top:7px}input:not([type=hidden]),select{border:1px solid #c6d8ee;border-radius:9px;background:#fff;padding:11px 12px;min-height:42px;outline:0}input:focus,select:focus{border-color:#1880e9;box-shadow:0 0 0 3px #d6ebff}input[type=file]{padding:10px}.path-box{display:block;padding:14px 16px;background:#edf5ff;border:1px solid #cfe1f7;color:#104780;border-radius:10px;overflow-wrap:anywhere;white-space:normal;font-size:12px;line-height:1.7;margin:14px 0}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.steps>div{display:flex;gap:10px;align-items:center;background:#f1f7ff;padding:15px;border-radius:11px;color:#436080;font-size:12px}.steps b{background:#1a74d9;color:white;border-radius:50%;width:27px;height:27px;flex-shrink:0;display:grid;place-items:center}.info-panel{margin-top:17px}.slot-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.slot-grid>div{background:#eef6ff;border:1px solid #d8e8fb;min-height:92px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column}.slot-grid b{color:#0d58ad;font-size:23px}.slot-grid small{color:#6c82a0}.command-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:11px}.command-grid>div{display:grid;gap:7px;background:#eef5ff;padding:12px;border-radius:10px}.command-grid small{color:#69819e}.command-grid code{color:#114f9d;font-size:18px;font-weight:850}
.alert{padding:13px 15px;margin-bottom:18px;border-radius:10px;font-weight:680;border:1px solid}.alert-red{background:#fff0f0;color:#982a34;border-color:#ffccd0}.alert-green{background:#dcfae8;color:#076540;border-color:#baf2d1}
.auth-page{min-height:100vh;background:linear-gradient(145deg,#062657,#0e55ae);padding:65px 20px 30px;display:flex;align-items:center;flex-direction:column}.auth-brand{color:#fff;margin-bottom:23px}.auth-box{background:#fff;border-radius:18px;max-width:430px;width:100%;padding:30px;box-shadow:0 25px 70px #00184252}.auth-box h1{margin:0 0 9px;font-size:25px;color:#0d3670}.auth-box p{margin-bottom:20px}.auth-box label{margin-bottom:17px}.auth-note{margin-top:19px;padding-top:15px;text-align:center;border-top:1px solid #e1ebf6;font-size:11px;color:#8292a9}
@media(max-width:1180px){.stats-grid{grid-template-columns:repeat(2,1fr)}.donut-layout{grid-template-columns:160px 1fr;gap:9px}.donut{height:150px;width:150px}.donut-hole{height:94px;width:94px}}
@media(max-width:960px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;min-height:auto;padding:14px 18px 12px}.side-caption,.side-footer{display:none}.brand{padding:0 5px 12px}.side-nav{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}.side-nav a{flex:none;padding:9px 12px;min-height:39px;white-space:nowrap}.nav-icon{font-size:16px;width:17px}.two-columns,.chart-grid{grid-template-columns:1fr}.topbar{padding:12px 20px;min-height:58px}.page{padding:23px 19px 30px}.donut-layout{grid-template-columns:180px 1fr}.donut{height:170px;width:170px}.donut-hole{height:107px;width:107px}}
@media(max-width:600px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{padding:14px;min-height:142px}.stat-card strong{font-size:22px}.stat-caption,.stat-card small{font-size:11px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:24px}.panel{padding:17px;border-radius:13px}.donut-layout{grid-template-columns:1fr;justify-items:center}.donut-legend{width:100%}.filters{grid-template-columns:1fr}.steps{grid-template-columns:1fr}.slot-grid{grid-template-columns:1fr 1fr}.command-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.command-grid>div{padding:8px 3px;text-align:center}.command-grid code{font-size:16px}.last-details{gap:5px}.last-details>div{padding:9px 7px}.last-details b{font-size:12px}.last-id{font-size:15px}.topbar{padding:10px 15px;gap:8px}.top-logout{font-size:10px;padding:10px 9px}.breadcrumb{font-size:12px}.breadcrumb span{margin:0 3px}.brand b{font-size:17px}}

/* v1.4.3 - Download completo em destaque e arquivos legados agrupados */
.full-download{background:#d72239;color:#fff;border:1px solid #b8172c;font-weight:850;font-size:13px;padding:11px 17px;min-height:40px;box-shadow:0 4px 11px rgba(185,23,44,.18);letter-spacing:.1px}
.full-download:hover{background:#b8172c;color:#fff;filter:none}
.full-download:focus-visible{outline:3px solid #ff9fac;outline-offset:2px}
.download-primary{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;margin-bottom:2px}
.download-hint{font-size:10px;color:#647d9c;line-height:1.4;font-weight:550;max-width:260px}
.download-secondary{display:flex;flex-wrap:wrap;gap:6px;width:100%}
.action-wrap{align-items:flex-start;gap:8px}
.download-guide{margin:0 0 15px;background:#edf6ff;border-color:#cbdff7}
.data-table td:last-child{min-width:255px}
@media(max-width:960px){.download-primary .full-download{width:auto}}

/* v1.4.4 - reinicio assistido e seguro do historico */
.cleanup-panel{margin-top:18px;border-color:#c7dbf3;background:linear-gradient(180deg,#fff,#f8fbff)}
.cleanup-details{margin-top:14px}.cleanup-details summary{list-style:none;width:max-content;max-width:100%;background:#cb2537;border-color:#a81f30;color:#fff;min-height:44px;font-size:13px}
.cleanup-details summary::-webkit-details-marker{display:none}.cleanup-details[open] summary{margin-bottom:14px}
.cleanup-content{background:#fff;border:1px solid #d7e5f6;border-radius:12px;padding:18px;max-width:710px;color:#1b416b}
.cleanup-content p{font-size:13px}.cleanup-content .alert-red{font-size:12px;line-height:1.6;margin:13px 0 18px}
.cleanup-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cleanup-form button{grid-column:1/-1;width:max-content}
.cleanup-done{margin-top:18px;border-color:#b5e7d1;background:linear-gradient(180deg,#fff,#f0fdf7)}
@media(max-width:700px){.cleanup-form{grid-template-columns:1fr}.cleanup-form button{width:100%}}

/* v1.4.5 - proteção da instalação atual do próprio FOIMEU Rescue */
.self-cta{border-color:#bed7f3;background:linear-gradient(125deg,#fff 0,#ecf6ff 100%)}
.self-cta-content{display:flex;align-items:center;justify-content:space-between;gap:22px}
.self-cta-content strong{font-size:14px;color:#0d4388}
.self-cta-content p{margin:7px 0 0;max-width:740px}
.btn.self-primary{background:#0756ac;border-color:#0756ac;color:#fff;box-shadow:0 4px 11px rgba(6,86,172,.14);font-size:13px;min-height:44px}
.btn.self-primary:hover{background:#084685;filter:none}
.self-latest{margin-top:16px;border-top:1px solid #d8e7f5;padding-top:15px;display:flex;align-items:center;gap:16px;justify-content:space-between;flex-wrap:wrap;color:#466281;font-size:12px}
.self-latest strong{color:#184e92}
.self-hero{background:#fff;border-color:#b5d4f8}
.self-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.self-info-grid>div{min-height:94px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;padding:14px 16px;background:#edf6ff;border:1px solid #dceafb;border-radius:12px}
.self-info-grid small{color:#4f7195;font-size:11px;font-weight:650}
.self-info-grid strong{font-size:20px;line-height:1.15;color:#0b438a;overflow-wrap:anywhere}
.self-create-form{margin-top:20px;display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px}
.self-create-form label{flex:1 1 330px;margin:0}
.self-create-form input{margin-bottom:0}
.self-create-form button{min-width:218px}
.self-history{margin-top:17px}
.self-table td:last-child{min-width:250px}
.version-chip{display:inline-block;background:#eaf3ff;border:1px solid #c6ddfb;border-radius:7px;color:#104f9d;padding:5px 9px;font-weight:850}
.self-steps{margin-top:17px}
.self-steps>div{align-items:flex-start;line-height:1.5}
@media(max-width:720px){.self-info-grid{grid-template-columns:1fr}.self-cta-content{flex-direction:column;align-items:flex-start}.self-create-form{flex-direction:column;align-items:stretch}.self-create-form label{flex-basis:auto}.self-create-form button{width:100%}.self-steps{grid-template-columns:1fr}}
.retention-panel{border:1px solid #cfe0fa;background:#ffffff}
.retention-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 18px}
.retention-stats>div{background:#f0f6ff;border:1px solid #cfe2ff;border-radius:12px;padding:14px;min-width:0}
.retention-stats small{display:block;color:#335e95;font-size:12px;margin-bottom:4px}
.retention-stats strong{display:block;color:#073b7c;font-size:19px;overflow-wrap:anywhere}
.retention-details{border:1px solid #e3c5c5;border-radius:12px;padding:14px;margin-top:18px;background:#fff9f9}
.retention-details summary{font-weight:700;cursor:pointer;color:#9f2424}
.retention-form{display:grid;gap:12px;padding-top:16px;max-width:520px}
.retention-form label{display:grid;gap:7px;font-size:13px;font-weight:650}
.retention-form input{width:100%;padding:12px;border-radius:8px;border:1px solid #c9d6e7;background:#fff;color:#09294c}
.retention-form button{justify-self:start}
@media(max-width:860px){.retention-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:440px){.retention-stats{grid-template-columns:1fr}}
