/* Painel do NOC no celular (painel.js): the same look as the approved prototype */
.pp { --pk: #8A94B8; --pc: #10101C; --ps: #232338; --pt: #E8ECF8; --pcy: #22D3EE; --pvi: #A78BFA; --pmg: #E040FB; --pgr: #3BE37A; --por: #FF9F1C; --prd: #FF3B5C; --pye: #FFD400;
  display: flex; flex-direction: column; gap: 12px; color: var(--pt); font-family: Inter, -apple-system, system-ui, sans-serif; padding-bottom: 24px; }
.pp a { color: inherit; text-decoration: none; }
.pp .mono, .pp-k, .pp-num { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }
.pp-k { font-weight: 700; font-size: 10.5px; color: var(--pk); letter-spacing: 1px; }
.pp-pull { align-self: center; font: 10.5px "JetBrains Mono", monospace; color: #6E7898; margin-top: -4px; }
.pp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pp-brand { font: 700 10px "JetBrains Mono", monospace; color: var(--pk); letter-spacing: 1px; }
.pp-title { font-size: 26px; font-weight: 800; color: var(--pcy); line-height: 1.1; }
.pp-h2 { font-size: 22px; font-weight: 800; }
.pp-live { background: var(--prd); color: #fff; font: 700 10.5px "JetBrains Mono", monospace; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.pp-plantao { min-height: 36px; padding: 0 11px; border-radius: 18px; border: 1.5px solid var(--pye); color: var(--pye) !important; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.pp-search { display: flex; align-items: center; gap: 8px; background: var(--pc); border: 1px solid #34344F; border-radius: 12px; padding: 0 12px; min-height: 44px; font-size: 13px; color: var(--pk); }
.pp-search svg { width: 16px; height: 16px; flex: none; }
.pp-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--pt); font-size: 15px; outline: none; padding: 0; height: 44px; }
.pp-back { min-height: 40px; display: inline-flex; align-items: center; color: var(--pcy) !important; font-size: 14px; font-weight: 600; }
.pp-chip { color: #07070F; border-radius: 999px; padding: 3px 9px; font: 800 10.5px Inter, sans-serif; white-space: nowrap; }
.pp-chip.out { background: transparent; border: 1px solid #34344F; color: #A9B1CC; font-weight: 600; }
.pp-banner { display: flex; align-items: center; gap: 12px; border-radius: 16px; padding: 12px 14px; border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 9%, #07070F); }
.pp-banner .n { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--c); display: flex; align-items: center; justify-content: center; font: 800 20px "JetBrains Mono", monospace; color: var(--c); flex: none; }
.pp-banner b { display: block; font-size: 17px; font-weight: 800; color: var(--c); }
.pp-banner span.s { font-size: 12.5px; color: #E2C8A0; }
.pp-strip { display: flex; gap: 8px; overflow-x: auto; margin-right: -14px; padding-right: 14px; scrollbar-width: none; }
.pp-mini { flex: none; width: 250px; background: var(--pc); border: 1px solid #3A2A12; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; }
.pp-mini .t { font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.pp-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.pp-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pp-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pp-tile { background: var(--pc); border: 1px solid var(--ps); border-radius: 12px; padding: 8px 10px; display: block; }
.pp-tile .k { font: 700 9px "JetBrains Mono", monospace; color: var(--pk); display: block; }
.pp-tile .v { font: 700 18px "JetBrains Mono", monospace; display: block; }
.pp-tile .s { font-size: 10.5px; color: var(--pk); }
.pp-mod { background: var(--pc); border-radius: 16px; padding: 11px; display: flex; flex-direction: column; gap: 8px; min-height: 132px; box-sizing: border-box; border: 1.5px solid var(--b, var(--ps)); }
.pp-mod .top { display: flex; align-items: center; justify-content: space-between; }
.pp-mod .top b { font: 700 10.5px "JetBrains Mono", monospace; letter-spacing: .8px; }
.pp-mod .row { display: flex; align-items: center; gap: 10px; }
.pp-mod .v { font-size: 15px; font-weight: 800; display: block; }
.pp-mod .s { font-size: 11px; color: #A9B1CC; line-height: 1.3; display: block; }
.pp-ring { position: relative; flex: none; }
.pp-ring svg { display: block; }
.pp-ring > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 11px "JetBrains Mono", monospace; text-align: center; line-height: 1.1; }
.pp-spark { width: 100%; display: block; }
.pp-card { background: var(--pc); border: 1px solid var(--ps); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.pp-card.hot { border: 2px solid var(--c, var(--por)); }
.pp-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pp-calm { background: #0F1A14; border: 1px solid #1F4D33; border-radius: 14px; padding: 14px; font-size: 14px; color: var(--pgr); }
.pp-cause { background: #17172A; border-radius: 12px; padding: 10px 11px; display: flex; flex-direction: column; gap: 5px; }
.pp-cause .tt { font-size: 16px; font-weight: 800; line-height: 1.2; }
.pp-line { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 4px; font-size: 13px; line-height: 1.35; }
.pp-bar { height: 8px; border-radius: 4px; background: #1E1E32; display: block; overflow: hidden; }
.pp-bar > i { display: block; height: 100%; }
.pp-barrow { display: grid; grid-template-columns: 76px minmax(0, 1fr) 58px; gap: 8px; align-items: center; font-size: 12px; }
.pp-barrow .r { font-family: "JetBrains Mono", monospace; text-align: right; }
.pp-tl { display: grid; grid-template-columns: 44px 12px minmax(0, 1fr); gap: 6px; font-size: 12.5px; align-items: start; }
.pp-tl .h { font-family: "JetBrains Mono", monospace; color: var(--pk); }
.pp-tl .d { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; }
.pp-acts { position: fixed; left: 0; right: 0; bottom: calc(66px + var(--safe-b, 0px)); z-index: 5; padding: 10px 14px; background: linear-gradient(180deg, rgba(7,7,15,0), #07070F 30%); display: grid; gap: 6px; }
.pp-acts.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pp-acts.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pp-b { min-height: 48px; border-radius: 12px; border: 1.5px solid #34344F; background: transparent; color: #C9D0E6; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; font-family: inherit; }
.pp-b.yel { background: var(--pye); border-color: var(--pye); color: #07070F; font-weight: 800; }
.pp-b.cy { border-color: var(--pcy); color: var(--pcy); font-weight: 700; }
.pp-b:disabled { opacity: .45; }
.pp-spacer { height: 66px; }
.pp-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-pill { border: 1px solid #34344F; color: #C9D0E6; border-radius: 999px; padding: 6px 12px; font-size: 12px; background: transparent; font-family: inherit; cursor: pointer; }
.pp-pill.on { background: var(--pcy); border-color: var(--pcy); color: #07070F; font-weight: 700; }
.pp-olt { background: #12121F; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 7px; border: 1.5px solid var(--b, #1F3A2C); }
.pp-olt .nm { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-p16 { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 1.5px; }
.pp-p16 i { height: 7px; border-radius: 1.5px; display: block; }
.pp-chassis { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px; align-items: center; }
.pp-ports { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.pp-port { height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font: 700 9.5px "JetBrains Mono", monospace; color: #07070F; border: 0; cursor: pointer; padding: 0; }
.pp-port.sel { outline: 2px solid #fff; outline-offset: 1px; }
.pp-lights { display: flex; gap: 12px; font-size: 11.5px; color: #A9B1CC; flex-wrap: wrap; }
.pp-base { background: var(--pc); border-radius: 12px; padding: 8px 10px; display: grid; grid-template-columns: 104px minmax(0, 1fr) 86px; gap: 10px; align-items: center; border: 1px solid var(--b, var(--ps)); }
.pp-base .nm { font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.pp-base .tg { font: 9.5px "JetBrains Mono", monospace; color: var(--pk); }
.pp-base .r { font: 11px "JetBrains Mono", monospace; text-align: right; }
.pp-ringmap { background: #0C0C17; border: 1px solid var(--ps); border-radius: 18px; position: relative; height: 330px; overflow: hidden; }
.pp-ringmap .nd { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pp-ringmap .nd i { border-radius: 50%; background: #07070F; display: block; }
.pp-ringmap .nd span { font: 700 10px "JetBrains Mono", monospace; white-space: nowrap; }
.pp-ringmap .mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; font: 11.5px "JetBrains Mono", monospace; color: var(--pk); line-height: 1.55; }
.pp-leg { background: var(--pc); border: 1px solid var(--ps); border-radius: 12px; padding: 8px 10px; display: grid; grid-template-columns: 116px minmax(0, 1fr) 46px; gap: 8px; align-items: center; }
.pp-leg .bars { display: flex; flex-direction: column; gap: 3px; }
.pp-leg .bars .pp-bar { height: 6px; }
.pp-res { background: var(--pc); border-radius: 12px; padding: 9px 11px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--b, var(--ps)); }
.pp-res .ic { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font: 800 9.5px "JetBrains Mono", monospace; flex: none; background: #0C0C17; border: 1.5px solid currentColor; }
.pp-res .tx { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.pp-res .tx b { font-size: 13.5px; }
.pp-res .tx span { font-size: 11.5px; color: #A9B1CC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-tv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pp-tv > span { background: #0C0C17; border-radius: 9px; padding: 6px 8px; display: flex; align-items: center; gap: 6px; font-size: 12px; border: 1px solid var(--b, #1E1E32); }
.pp-tv em { flex: 1; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pp-more a { background: var(--pc); border: 1px solid var(--ps); border-radius: 12px; padding: 12px 8px; text-align: center; font-size: 12.5px; font-weight: 600; }
/* modo plantão */
body.pp-plantao-on { background: #000; }
body.pp-plantao-on nav#nav { display: none; }
.pp-pl { background: #000; min-height: calc(100vh - 20px); gap: 16px; color: #F2F4FA; }
.pp-pl .big { font-size: 40px; font-weight: 800; line-height: 1.05; }
.pp-pl .it { border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #120C02; border: 3px solid var(--c, var(--por)); }
.pp-pl .it .t { font-size: 27px; font-weight: 800; line-height: 1.1; }
.pp-pl .it .n { font: 800 44px "JetBrains Mono", monospace; line-height: 1; color: var(--c, var(--por)); }
.pp-pl .b2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pp-pl .b2 .pp-b { min-height: 60px; border-radius: 16px; font-size: 18px; }
.pp-pl .ok3 { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pp-pl .ok3 > span { border: 1.5px solid #1F4D33; border-radius: 16px; padding: 12px; text-align: center; }
.pp-pl .calm { font-size: 46px; font-weight: 800; color: var(--pgr); text-align: center; margin: 22vh 0 0; }
/* Telegram por módulo (#p-telegram) */
.pp-sw { width: 46px; height: 28px; border-radius: 14px; border: 0; padding: 0; position: relative; flex: none; cursor: pointer; background: #34344F; }
.pp-sw::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #07070F; transition: left .15s; }
.pp-sw.on { background: #3BE37A; } .pp-sw.on::after { left: 22px; }
.pp-sel { min-height: 38px; background: #07070F; color: #E8ECF8; border: 1px solid #34344F; border-radius: 9px; padding: 0 8px; font-size: 12.5px; font-family: inherit; max-width: 100%; }
.pp-tgmod { background: #10101C; border: 1px solid #232338; border-radius: 16px; overflow: hidden; }
.pp-tgmod > .hd { display: flex; align-items: center; gap: 10px; padding: 11px 12px; width: 100%; background: transparent; border: 0; color: inherit; text-align: left; font-family: inherit; cursor: pointer; }
.pp-tgmod > .hd b { font-size: 15px; display: block; } .pp-tgmod > .hd span.s { font-size: 11.5px; color: #8A94B8; }
.pp-tgmod .bd { border-top: 1px solid #232338; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.pp-tgav { border-bottom: 1px solid #1A1A2C; padding-bottom: 9px; display: flex; flex-direction: column; gap: 6px; }
.pp-tgav:last-child { border-bottom: 0; }
.pp-tgav .r1 { display: flex; align-items: center; gap: 10px; }
.pp-tgav .r1 b { font-size: 13.5px; display: block; } .pp-tgav .r1 span { font-size: 11px; color: #8A94B8; }
.pp-tgav .r2 { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-tgchip { border: 1px solid #34344F; background: transparent; color: #A9B1CC; border-radius: 999px; padding: 5px 10px; font-size: 11.5px; font-family: inherit; cursor: pointer; }
.pp-tgchip.on { border-color: #A78BFA; color: #C4B5FD; }
.pp-card .pp-sel[data-tg^="quiet"], .pp-card .pp-sel[data-tg="digestHour"] { flex: none; width: 84px; }
.pp select.pp-sel { width: auto; flex: 0 1 auto; margin: 0; }
