:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#172b3c;background:#f2f6f8;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.52;cursor:not-allowed}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #9ed9ed;outline-offset:2px}h1,h2,h3,h4,p{margin-top:0}h1{font-size:20px;margin:0}h2{font-size:22px;margin:3px 0 8px}h3{font-size:16px;margin:0}h4{font-size:14px;margin:0 0 12px}p{color:#627587;line-height:1.5}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px clamp(18px,4vw,54px);background:#12334b;color:#fff}.topbar p{color:#b9d2df;margin:3px 0 0;font-size:12px}.brand,.top-actions,.section-head,.detail-head,.workspace-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{justify-content:start}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#24a6ac;color:#092d3d;font-weight:850;letter-spacing:-1px}.top-actions{font-size:12px;color:#cee1e8}.top-actions button{color:white}main{max-width:1550px;margin:28px auto;padding:0 clamp(14px,3vw,38px)}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-weight:800;font-size:11px;color:#2d8291}.workspace-head{margin-bottom:18px}.workspace-head p{margin:0}.panel,.login-card{border:1px solid #dce5eb;border-radius:14px;background:#fff;box-shadow:0 4px 18px #16354b0a}.panel{padding:20px}.login-card{max-width:440px;margin:80px auto;padding:30px}.login-card p{margin:8px 0 25px}.login-card label,.form-grid label{display:block;font-weight:650;font-size:12px;color:#415a6a}.login-card input,.form-grid input,.form-grid textarea{display:block;width:100%;border:1px solid #becdd6;border-radius:8px;padding:10px;margin:6px 0 14px;color:#172b3c;background:#fff}.login-card button,.new-panel form>button{background:#087f88;color:#fff;border:0;border-radius:8px;padding:10px 16px;font-weight:700}.quiet,.outline,.danger-outline{border:1px solid transparent;border-radius:8px;padding:9px 12px;background:transparent;color:#35566a}.outline{border-color:#9cb8c5;background:#fff;color:#146779;font-weight:700}.danger-outline{border-color:#ddb2b0;color:#a43232;white-space:nowrap}.quiet:hover,.outline:hover{background:#e8f2f6}.notice{padding:11px 15px;border-radius:9px;background:#e7f5f3;color:#07665d;margin-bottom:16px}.notice.error{background:#fff0ed;color:#a13e32}.new-panel{margin-bottom:18px}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0 15px;margin-top:16px}.wide{grid-column:1/-1}.new-panel small{display:block;color:#6a7d8c;margin-top:10px}.layout{display:grid;grid-template-columns:minmax(250px,315px) minmax(0,1fr);gap:18px;align-items:start}.session-pane{padding:0;position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto}.session-pane .section-head{padding:18px 18px 12px}.count{border-radius:12px;background:#e8f3f4;color:#216b73;padding:3px 8px;font-size:12px;font-weight:700}.session-list{padding:0 8px 9px}.session-item{display:block;width:100%;text-align:left;padding:13px 12px;border:0;border-top:1px solid #eef2f5;background:#fff;border-radius:7px;color:inherit}.session-item:hover,.session-item.active{background:#eef8f8}.session-title{display:flex;justify-content:space-between;align-items:center;font-weight:750;gap:8px}.session-item small{display:block;color:#657b8a;margin-top:5px}.detail-pane{min-height:460px}.detail-head{align-items:start}.detail-head p{margin:0}.empty{padding:90px 24px;color:#6b8191;text-align:center}.tabs,.subtabs{display:flex;gap:6px;border-bottom:1px solid #dce7eb;overflow:auto;margin:23px 0 20px}.tabs button,.subtabs button{border:0;background:transparent;color:#63798a;padding:12px 14px;white-space:nowrap;border-bottom:3px solid transparent;font-weight:700}.tabs button.active,.subtabs button.active{color:#087f88;border-color:#087f88}.subtabs{margin:16px 0}.subtabs button{padding:9px 12px}.badge{display:inline-flex;align-items:center;gap:4px;border-radius:20px;padding:4px 8px;background:#e4f4ec;color:#176d47;font-size:11px;font-weight:750;white-space:nowrap}.badge.bad{background:#fce9e7;color:#a13e32}.badge.neutral{background:#edf1f4;color:#5d7080}.badge.pending{background:#fff1d8;color:#885917}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:15px 0}.metric{border:1px solid #e1e9ed;border-radius:10px;padding:14px;background:#fbfcfd}.metric span{display:block;font-size:12px;color:#63798a}.metric strong{display:block;font-size:19px;margin:7px 0 3px}.metric small{color:#748895}.metric.bad{background:#fff8f7;border-color:#f2d7d4}.section-block{margin:24px 0}.section-block h3{margin-bottom:12px}.row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.event,.command-card,.interface-card{border:1px solid #e0e9ed;border-radius:10px;padding:14px;margin:10px 0;background:#fff}.event-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.event p,.command-card p{margin:5px 0}.muted{color:#738899}.mono,pre{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f7f9;padding:14px;border-radius:8px;margin:10px 0 0;max-height:360px;overflow:auto}.table-wrap{overflow:auto;border:1px solid #e0e9ed;border-radius:10px}table{width:100%;border-collapse:collapse;min-width:640px;font-size:12px}th,td{padding:11px 12px;border-bottom:1px solid #e9eef1;text-align:left;vertical-align:top}th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#667e8e;background:#f7fafb}tr:last-child td{border-bottom:0}.compact{color:#5a7282;font-size:12px}.chip{display:inline-block;background:#edf4f6;color:#355f72;border-radius:6px;padding:4px 7px;margin:3px}.run{border:0;border-radius:7px;background:#087f88;color:white;padding:9px 14px;font-weight:700}.empty-small{padding:24px;color:#708695;background:#f8fafb;border-radius:9px}.stats{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.stat{border-radius:7px;padding:7px 10px;background:#eef5f7;color:#395a6b;font-size:12px}@media(max-width:800px){.topbar{align-items:flex-start}.layout{grid-template-columns:1fr}.session-pane{position:static;max-height:300px}.detail-head,.workspace-head{align-items:start}.detail-head{flex-wrap:wrap}.tabs button{padding:11px 9px}.panel{padding:16px}}@media(max-width:500px){.topbar{flex-wrap:wrap}.workspace-head{flex-wrap:wrap}.session-pane{padding:0}.brand-mark{flex:none}}

/* Resultados preservam as colunas originais do Windows e rolam horizontalmente. */
.command-pre{white-space:pre;overflow-wrap:normal;word-break:normal;overflow:auto;max-height:560px;font-size:13px;line-height:1.55;tab-size:4}
.raw-output{margin-top:14px}
.raw-output summary{cursor:pointer;color:#176b78;font-weight:700;padding:8px 0}
.route-title{margin:17px 0 8px}
.result-line{line-height:1.6;overflow-wrap:anywhere}
.command-card{min-width:0}
.command-card .table-wrap{margin-top:8px}
.target-hint{display:block;color:#6a7d8c;margin:5px 0 0;font-size:11px;white-space:nowrap}
.filter-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0}
.filter-row select{width:auto;min-width:190px;max-width:100%}
.telemetry-panel[hidden]{display:none}
.telemetry-tools,.telemetry-filters{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:16px 0}
.telemetry-period-form{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:18px 0 10px;padding:14px;border:1px solid #e8e2eb;border-radius:11px;background:#faf7fb}
.telemetry-period-form label{display:flex;flex:1 1 210px;flex-direction:column;gap:6px;color:#5d5265;font-size:12px;font-weight:700}
.telemetry-period-form input{min-height:40px;border:1px solid #becdd6;border-radius:8px;padding:8px 10px;background:#fff;color:#172b3c}
.telemetry-period-form button{min-height:40px;white-space:nowrap}
.telemetry-period-status{padding:9px 12px;border-left:3px solid #70458b;background:#f7f2f9;color:#65576d;font-size:12px;line-height:1.5}
.telemetry-period-status.warning{border-color:#e18120;background:#fff5e9;color:#754313}
.telemetry-load-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;margin-top:8px;border-radius:8px;background:#eef5f7;color:#395a6b;font-size:12px}.telemetry-load-progress[hidden]{display:none}
.filter-field{display:flex;flex-direction:column;gap:5px;color:#5d7080;font-size:12px;font-weight:700}
.filter-field select,.telemetry-filters>input{min-height:38px;border:1px solid #becdd6;border-radius:8px;padding:8px 10px;background:#fff;color:#172b3c}
.telemetry-filters>input{min-width:180px}
.incident-card{border-left:4px solid #f49119}
.incident-form{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr));gap:12px;margin-top:14px;padding-top:14px;border-top:1px solid #e8e2eb}
.incident-form .incident-note,.incident-form>small{grid-column:1/-1}
.incident-note{display:flex;flex-direction:column;gap:5px;color:#5d7080;font-size:12px;font-weight:700}
.incident-note textarea{width:100%;resize:vertical;border:1px solid #becdd6;border-radius:8px;padding:9px;color:#172b3c}
.incident-form button{justify-self:start}
.wifi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.wifi-field{display:flex;flex-direction:column;gap:8px;min-width:0;border:1px solid #e0e9ed;border-radius:9px;padding:12px 14px;background:#fbfcfd}
.wifi-field small{color:#647b8b;font-size:12px}
.wifi-field strong{font-size:15px;overflow-wrap:anywhere}
.suggestions{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:10px 0 18px}
.suggestions small{flex-basis:100%}
.process-chip{border:0;cursor:pointer;font:inherit;font-size:12px}
.process-chip:hover{background:#d9eaef}
#config-status{margin-top:16px}
.tab-panel[hidden]{display:none}
@media(max-width:500px){.command-pre{font-size:12px}.wifi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.incident-form{grid-template-columns:1fr}.telemetry-filters>*{width:100%}.filter-field select,.telemetry-filters>input{width:100%}}

/* Diagnóstico MTR contínuo */
.mtr-form{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:20px 0 12px;padding:18px;border:1px solid #dce9eb;background:#f8fbfc;border-radius:12px}
.mtr-form label{flex:1 1 170px;min-width:140px;margin:0}
.mtr-form label:first-child{flex:2 1 280px}
.mtr-form input{width:100%}
.mtr-form button{min-height:40px;white-space:nowrap}
.mtr-notice{padding:10px 14px;color:#335c6b;background:#eaf5f6;border-radius:8px;line-height:1.5}
.mtr-chooser{display:flex;align-items:center;gap:12px;margin:20px 0}
.mtr-chooser select{max-width:100%;width:min(550px,100%)}
.mtr-run-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0}
.mtr-run-head h3{font-size:20px;margin-bottom:5px;overflow-wrap:anywhere}
.mtr-pill{display:inline-flex;align-items:center;gap:7px;flex:none;border-radius:20px;padding:7px 12px;font-size:12px;font-weight:800}
.mtr-pill.live{background:#dff8ee;color:#087f5b;animation:mtr-breathe 2s ease-in-out infinite}
.mtr-pill.stopped{background:#edf1f4;color:#63798a}
@keyframes mtr-breathe{50%{box-shadow:0 0 0 7px #06a77d19}}
.mtr-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:14px 0}
.mtr-summary-card{min-width:0;padding:15px;border:1px solid #dce9eb;border-radius:10px;background:linear-gradient(140deg,#f7fbfc,#edf8f7)}
.mtr-summary-card small,.mtr-summary-card>span{display:block;color:#617c89;margin-bottom:8px}
.mtr-summary-card strong{display:block;font-size:18px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.mtr-table table{min-width:1050px;font-variant-numeric:tabular-nums}
.mtr-table td,.mtr-table th{vertical-align:middle;white-space:nowrap}
.mtr-table tbody tr{cursor:pointer}
.mtr-table tbody tr:hover{background:#f1f9f8}
.mtr-table tbody tr.selected{background:#e3f5f2}
.mtr-table tbody tr.mtr-no-response{background:#fff1ef}.mtr-table tbody tr.mtr-loss-warning td:first-child{border-left:4px solid #e18120}
.mtr-table tbody tr:focus-visible{outline:2px solid #087f88;outline-offset:-2px}
.mtr-chart{display:block;width:100px;height:32px}
.mtr-chart-large{display:block;width:100%;height:150px;background:linear-gradient(180deg,#f3faf9,#fff);border-radius:9px}
.mtr-detail{padding:18px;border:1px solid #dce9eb;border-radius:12px;margin:14px 0 8px}
.mtr-detail-title{font-weight:800;color:#174e5b;margin-bottom:12px}
.mtr-detail p{margin:12px 0 0}
.mtr-caveat{font-size:12px;padding:12px 14px;border-left:3px solid #f0ae55;background:#fffaf1;border-radius:5px}
@media(max-width:650px){.mtr-form button{flex:1 1 130px}.mtr-run-head{align-items:start;flex-direction:column}.mtr-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
.mtr-actions{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0 5px}
.mtr-detail{background:#12334b;border-color:#12334b;box-shadow:0 12px 26px #12334b1e}
.mtr-detail-title{color:#e7fcfa}
.mtr-detail p{color:#bcd8e1}
.mtr-detail .mtr-chart-large{background:linear-gradient(180deg,#193f54,#12334b)}
.mtr-detail .mtr-chart-large path{stroke:#40ded1}
@media(prefers-reduced-motion:reduce){.mtr-pill.live{animation:none}}
.mtr-form select{width:100%;min-height:40px}

/* Identidade da Acesso Total: laranja, violeta, cinza claro e marca oficial. */
:root{font-family:Montserrat,"Segoe UI",Arial,sans-serif;color:#292632;background:#f5f4f6}
.topbar{background:#fff;color:#292632;border-bottom:3px solid #f49119;box-shadow:0 3px 18px #361c4a14;padding-block:9px}
.topbar p{color:#6f6878}.top-actions{color:#685e70}.top-actions button{color:#5f367d}
.brand{gap:19px}.brand-logo{display:block;width:137px;height:70px;object-fit:contain;flex:none}
.brand h1{color:#522473}.brand p{margin-top:4px}
.eyebrow,.tabs button.active,.subtabs button.active{color:#9b4d12}
.tabs button.active,.subtabs button.active{border-color:#f49119}
.run,.login-card button,.new-panel form>button{background:#ea7817;color:#fff}
.run:hover,.login-card button:hover,.new-panel form>button:hover{background:#cf630d}
.outline{color:#712f88;border-color:#bea8cb}.outline:hover,.quiet:hover{background:#f8effa}
.session-item:hover,.session-item.active,.mtr-table tbody tr.selected{background:#fbf3e9}
.count,.badge.neutral,.chip{background:#f4edf6;color:#613575}
.panel,.login-card{border-color:#e8e2eb;box-shadow:0 6px 24px #39204e0a}
.notice,.mtr-notice{background:#fff4e7;color:#784313}
.notice.error{background:#fff0ed;color:#a13e32}
.mtr-pill.live{background:#fff0dd;color:#a6530a}
.mtr-detail{background:#37204e;border-color:#37204e}
.mtr-detail .mtr-chart-large{background:linear-gradient(180deg,#482962,#37204e)}
.mtr-detail .mtr-chart-large path{stroke:#ffb152}
.mtr-summary-card{background:linear-gradient(140deg,#fffaf5,#f8f3fb)}
.mtr-chart path{stroke:#df7b21}
.indicator-help{position:relative;cursor:help}
.indicator-help:focus-visible{outline:3px solid #70458b;outline-offset:2px}
.indicator-tooltip{position:fixed;z-index:200;padding:9px 11px;border-radius:8px;background:#30203d;color:#fff;font-size:12px;font-weight:500;line-height:1.45;box-shadow:0 7px 20px #24152d42;pointer-events:none}
.indicator-tooltip[hidden]{display:none}
.telemetry-chart{margin:16px 0;padding:14px;border:1px solid #ded7e3;border-radius:11px;background:#fff;break-inside:avoid}
.telemetry-chart figcaption{font-weight:800;color:#34283d;margin-bottom:8px}.telemetry-chart svg{display:block;width:100%;height:auto;max-height:240px;overflow:visible}
.telemetry-chart-legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin:7px 0 3px;color:#6d6174;font-size:11px}.telemetry-chart-legend span{display:inline-flex;align-items:center;gap:6px}.telemetry-chart-legend i{width:8px;height:8px;border-radius:50%;background:var(--chart-color)}
.telemetry-chart .chart-grid{stroke:#e3e7ea;stroke-width:1}.telemetry-chart .chart-axis{stroke:#bcc7cc;stroke-width:1}.telemetry-chart .chart-line{stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.telemetry-chart .chart-track{fill:#e8f2f1}.telemetry-chart .chart-bar{fill:#1b8e83}.telemetry-chart .chart-label,.telemetry-chart .chart-value{fill:#6b7c88;font:11px Montserrat,"Segoe UI",Arial,sans-serif;text-anchor:middle}.telemetry-chart .chart-value{fill:#263843;font-weight:800}.telemetry-chart .chart-label-end{text-anchor:end}.telemetry-chart .chart-value-start{text-anchor:start}.telemetry-chart p{font-size:11px;margin:7px 0 0}
.telemetry-chart .chart-series-label{fill:#34283d;font-weight:800}.telemetry-chart .chart-unit{fill:#756b80;font-size:10px}.telemetry-chart .chart-failure{stroke:#b33b32;stroke-width:2.5}.telemetry-chart .chart-missing{fill:#fff;stroke:#6b7c88;stroke-width:1.7}.telemetry-chart .chart-empty{fill:#6b7c88;font:700 13px Montserrat,"Segoe UI",Arial,sans-serif;text-anchor:middle}.telemetry-chart .connectivity-chart-svg{max-height:490px}
.telemetry-chart .chart-bar-warning{fill:#e18120}.telemetry-chart .chart-bar-danger{fill:#b33b32}
.telemetry-chart svg.mtr-hop-chart{width:100%;height:auto;max-height:none}
.hop-identity{display:flex;flex-direction:column;gap:2px;max-width:260px}
.hop-identity strong{font-weight:650;overflow:hidden;text-overflow:ellipsis}
.hop-identity small{color:#756b80;font-size:11px;overflow:hidden;text-overflow:ellipsis}
.family-select{display:flex;align-items:center;gap:9px 12px;border:1px solid #e8e0eb;border-radius:11px;padding:13px 16px;background:#fbf9fc;margin:14px 0 16px}
.family-select legend{color:#6b367c;font-weight:750;font-size:12px;padding:0 5px}
.family-select small{color:#756b80}.family-toggle{cursor:pointer;position:relative}.family-toggle input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}
.family-toggle span{display:block;border:1px solid #c9bed0;border-radius:20px;padding:7px 15px;background:white;color:#5f526a;font-weight:700}
.family-toggle input:checked+span{background:#f49119;color:#2d1d20;border-color:#f49119}
.family-toggle input:focus-visible+span{outline:3px solid #70458b;outline-offset:2px}
.family-result{border-left:3px solid #e78b21;background:#fcfafc;padding:12px 15px;margin:12px 0;border-radius:0 8px 8px 0}
.family-result h4{color:#703681;margin:0 0 8px}
.interface-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:12px}
.interface-card{margin:0;min-width:0;border-left:3px solid #ec871c}
.interface-card h4{font-size:15px;color:#4f2469}
.interface-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.interface-field{min-width:0}.interface-field small{display:block;color:#746b7b;font-size:11px;margin-bottom:4px}
.interface-field strong{display:block;font-size:12px;line-height:1.6;font-weight:600;overflow-wrap:anywhere}
@media(max-width:600px){.brand{align-items:start;flex-wrap:wrap;gap:0 12px}.brand-logo{width:105px;height:54px}.family-select small{flex-basis:100%}.interface-grid{grid-template-columns:1fr}}
.detail-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.installer-info{font-size:12px;margin:8px 0 0;color:#754b22}.installer-info.error{color:#a13e32}
.installer-hash {font-size: .76rem; overflow-wrap: anywhere; color: #6c6071}
.target-results{display:grid;gap:6px;min-width:180px}
.target-results .target-hint{white-space:normal;overflow-wrap:anywhere}
.command-destination{display:block;max-width:460px;color:#5f526a;font-size:12px;font-weight:700;margin:14px 0}
.command-destination select{display:block;width:100%;padding:10px;margin-top:6px;border:1px solid #c9bed0;border-radius:8px;background:#fff;color:#292632}
.dns-result+.dns-result{border-top:1px solid #e8e2eb;margin-top:12px;padding-top:12px}
.dns-result p{display:inline;margin-left:8px}
.access-panel{margin:0 0 18px}.access-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;align-items:end;margin:16px 0}.access-form label{font-weight:650;font-size:12px}.access-form input,.access-form select{display:block;width:100%;padding:10px;border:1px solid #c9bed0;border-radius:8px;margin-top:6px}.access-form button{padding:11px 16px;background:#ea7817;color:white;border:0;border-radius:8px;font-weight:700}.user-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #e8e2eb;padding:12px 0}.user-row div{flex:1 1 240px}.user-row small{display:block;color:#6c6071;margin-top:5px}.user-row button{white-space:nowrap}.login-card #setup-help{margin:10px 0 22px}.login-card #auth-qr{display:block;width:min(260px,100%);height:auto;margin:10px auto}.login-card code,.access-panel code{font-family:ui-monospace,Consolas,monospace;overflow-wrap:anywhere}.login-card #auth-back{background:transparent;color:#5f367d;margin-top:15px}.top-actions{flex-wrap:wrap;justify-content:end}#initial-credential p{margin:7px 0 0;color:inherit}

/* Navegação e criação de chamados */
main{max-width:1800px}
.app-shell{display:grid;grid-template-columns:238px minmax(0,1fr);gap:22px;align-items:start}
.app-content{min-width:0}
.sidebar{position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto;border-radius:16px;padding:18px 12px;background:#34204a;color:#fff;box-shadow:0 12px 30px #34204a20}
.sidebar-title{font-weight:800;padding:7px 11px 19px;letter-spacing:.02em}
.sidebar details{border-top:1px solid #ffffff24;padding:8px 0}
.sidebar summary{cursor:pointer;list-style:none;border-radius:9px;padding:10px 12px;font-weight:700;color:#ffd4a4}
.sidebar summary::after{content:'⌄';float:right;transition:transform .25s ease}
.sidebar details[open] summary::after{transform:rotate(180deg)}
.sidebar nav{display:grid;gap:3px;overflow:hidden;animation:nav-open .28s ease both}
.sidebar nav button{border:0;text-align:left;background:transparent;color:#e9dfee;border-radius:9px;padding:10px 13px;transition:background .2s ease,transform .2s ease,color .2s ease}
.sidebar nav button:hover{background:#ffffff19;transform:translateX(3px)}
.sidebar nav button.active{background:#f49119;color:#24172b;font-weight:800}
.sidebar [hidden],.tabs [hidden]{display:none!important}
@keyframes nav-open{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.mobile-nav-toggle{display:none}
.new-panel{animation:panel-in .25s ease both}
@keyframes panel-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.new-session-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px}
.form-section{padding:16px 0 4px;margin:0;border-top:1px solid #ece4ee;color:#522473}
.form-section:first-child{border-top:0;padding-top:0}
.new-session-grid label{min-width:0}
.form-grid .check-row{display:flex;align-items:center;gap:11px;justify-content:flex-start;padding:12px 14px;background:#faf7fb;border:1px solid #e8e2eb;border-radius:10px;font-size:13px}
.form-grid .check-row input{display:inline-block;flex:none;width:18px;height:18px;margin:0;accent-color:#ea7817}
.form-grid .check-row span{flex:1}
#group-form{display:grid;gap:13px;margin:18px 0}
#group-form>label input{display:block;width:100%;max-width:420px;margin-top:6px;padding:10px;border:1px solid #c9bed0;border-radius:8px}
#group-form fieldset{border:1px solid #e8e2eb;border-radius:10px}
#group-permissions{display:flex;flex-wrap:wrap;gap:12px}
#group-permissions label{white-space:nowrap}
.group-sessions{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px;max-height:240px;overflow:auto}
.group-session{padding:8px;border-radius:7px;background:#faf7fb}
.admin-panel{margin-bottom:18px}
.admin-panel h3{margin:12px 0}
.admin-panel .table-wrap{margin:12px 0 22px}
@media(max-width:1100px){.new-session-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.app-shell{grid-template-columns:1fr}.mobile-nav-toggle{display:inline-flex;margin:0 0 12px}.sidebar{display:none;position:static;max-height:none}.sidebar.open{display:block;animation:panel-in .25s ease both}}
@media(max-width:560px){.new-session-grid{grid-template-columns:1fr}.new-session-grid .wide{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.sidebar nav,.new-panel,.sidebar.open{animation:none}.sidebar nav button,.sidebar summary::after{transition:none}}

/* Cada função ocupa a área principal sozinha. */
.app-content>.page-view,.app-content>.admin-panel,.app-content>.access-panel{animation:panel-in .24s ease both}
.app-content>[hidden]{display:none!important}
#sessions-view .session-pane{position:static;max-height:none;overflow:visible;padding:0}
#sessions-view .session-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:8px;padding:0 12px 14px}
#sessions-view .session-item{border:1px solid #ece5ec;padding:17px}
#detail .tab-panel{margin-top:24px}
#access-panel fieldset{border:1px solid #e8e2eb;border-radius:10px;margin:18px 0;padding:16px}
#access-panel legend{font-weight:750;color:#522473;padding:0 6px}
#access-panel .group-session{display:flex;align-items:center;gap:7px;cursor:pointer}
#access-panel .group-session input{width:17px;height:17px;accent-color:#ea7817}
@media(prefers-reduced-motion:reduce){.app-content>.page-view,.app-content>.admin-panel,.app-content>.access-panel{animation:none}}

/* Relatórios são montados no navegador e enviados ao diálogo Salvar como PDF. */
.pdf-report{display:none}
.pdf-report-header{display:flex;align-items:center;gap:18px;border-bottom:3px solid #f49119;padding-bottom:12px;margin-bottom:12px}
.pdf-report-header img{width:145px;height:72px;object-fit:contain}.pdf-report-header h1{font-size:22px;color:#522473}.pdf-report-header p{margin:5px 0 0}
.pdf-report-meta{display:flex;justify-content:space-between;gap:20px;margin-bottom:16px}.pdf-report-meta p{margin:0;font-size:12px}
.report-mode{display:inline-flex;align-items:center;border-radius:20px;padding:5px 9px;margin-top:7px;background:#f4edf6;color:#613575;font-size:10px;font-weight:800;letter-spacing:.06em}.report-mode.shared{background:#fff0dd;color:#8a4b12}
.pdf-report-section{margin:22px 0}.pdf-report-section>h2{font-size:18px;color:#522473;border-bottom:1px solid #ded4e3;padding-bottom:6px}
.report-warning{border-left:4px solid #e18120;background:#fff5e9;padding:10px 12px;margin:12px 0;color:#754313;font-size:12px}
.report-annotation{border-top:1px solid #e8e2eb;margin-top:10px;padding-top:8px}.report-annotation p{margin:3px 0;font-size:11px}
.report-summary-note{margin:14px 0 0;padding:10px 12px;border-left:4px solid #f49119;background:#fff5e9;font-size:11px}.pdf-report-summary>.table-wrap{margin-top:14px}
@media print{
  @page{size:A4 landscape;margin:10mm}
  body.printing-report{background:#fff;color:#222;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body.printing-report>:not(.pdf-report){display:none!important}
  body.printing-report .pdf-report{display:block!important}
  .pdf-report .table-wrap{overflow:visible;border-color:#bbb}.pdf-report table{min-width:0;font-size:9px;table-layout:auto}.pdf-report th,.pdf-report td{padding:5px 6px;overflow-wrap:anywhere}
  .pdf-report thead{display:table-header-group}.pdf-report tr,.pdf-report .metric,.pdf-report .event,.pdf-report .mtr-summary-card{break-inside:avoid}
  .pdf-report .cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.pdf-report .metric,.pdf-report .mtr-summary-card{padding:8px}.pdf-report .metric strong,.pdf-report .mtr-summary-card strong{font-size:14px}
  .indicator-tooltip{display:none!important}.pdf-report .mtr-detail{background:#fff;color:#222;border-color:#bbb;box-shadow:none}.pdf-report .mtr-detail-title,.pdf-report .mtr-detail p{color:#222}.pdf-report .mtr-detail .mtr-chart-large{background:#fff}
  .pdf-report .telemetry-chart{padding:8px;margin:10px 0}.pdf-report .telemetry-chart svg{max-height:155px}.pdf-report .telemetry-chart .connectivity-chart-svg{max-height:270px}.pdf-report .telemetry-chart svg.mtr-hop-chart{max-height:none}.pdf-report .telemetry-chart p{margin-bottom:0}.pdf-report-summary .telemetry-chart{max-width:48%;margin-left:auto}.pdf-report-summary>.table-wrap{max-width:100%}
  .pdf-report-section>h2,.pdf-report-section h3{break-after:avoid}.pdf-report-section{break-before:page}.pdf-report-section:first-of-type{break-before:auto}
  .pdf-report.pdf-report-mtr .pdf-report-section{break-before:auto}.pdf-report.pdf-report-mtr .mtr-hop-figure{break-inside:avoid-page}
  .pdf-report.pdf-report-analysis{font-size:11px}.pdf-report-analysis .pdf-report-section{break-before:auto;break-inside:avoid;margin:14px 0}.pdf-report-analysis .pdf-report-section>h2{font-size:15px;margin:8px 0}.pdf-report-analysis .report-finding{font-weight:650;color:#34283d;margin:8px 0}.pdf-report-analysis .report-summary-note{margin:8px 0;padding:7px 10px}.pdf-report-analysis .muted{font-size:10px}.pdf-report-analysis th,.pdf-report-analysis td{padding:4px 6px}.pdf-report-analysis td:first-child{max-width:160mm;overflow-wrap:anywhere}
}
