/* Plantão do NOC (opções, caixas e resultado vêm de detetive/detetive.css) */
.nc-intro { text-align: center; }
.nc-intro h2 { margin: 6px 0 4px; }
.nc-how { text-align: left; max-width: 460px; margin: 14px auto 18px; padding-left: 22px; display: grid; gap: 8px; line-height: 1.4; }
.nc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; }
.nc-bar .n { font-size: 14px; color: var(--pf-muted); }
.nc-bar .s { color: var(--brand-text); white-space: nowrap; }
.nc-timer { position: relative; height: 22px; border-radius: 999px; background: var(--pf-track); overflow: hidden; margin: 10px 0 12px; }
.nc-timer i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--brand); border-radius: 999px; }
.nc-timer span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--pf-ink); font-variant-numeric: tabular-nums; text-shadow: 0 0 4px var(--pf-card); }
.nc-timer.low i { background: var(--pf-bad); animation: nc-pulse .6s ease-in-out infinite; }
.nc-timer.off i { opacity: .35; }
@keyframes nc-pulse { 50% { opacity: .55; } }

/* o mapa é sempre claro (como uma maquete), nos dois temas */
.nc-board { position: relative; width: min(100%, calc(min(100vh - 330px, 36vh) * var(--ar))); min-width: min(100%, 260px); aspect-ratio: var(--ar); margin: 0 auto; border-radius: 14px; background: linear-gradient(#f4f7fb, #e3eaf3); user-select: none; -webkit-user-select: none; }
.nc-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.nc-map polygon { stroke: rgba(15, 23, 42, .3); stroke-width: .2; stroke-linejoin: round; }
.nc-map polygon.flat { stroke: none; }
.nc-map .cable { fill: none; stroke: #eab308; stroke-width: .8; stroke-linecap: round; stroke-linejoin: round; }
.nc-map .br { fill: var(--brand); }
.nc-map .s1 { filter: brightness(.84); }
.nc-map .s2 { filter: brightness(.68); }
.nc-map .ring { fill: rgba(239, 68, 68, .25); stroke: #dc2626; stroke-width: .7; transform-box: fill-box; transform-origin: center; animation: nc-ring 1.1s ease-out infinite; }
.nc-map .ring.calm { fill: rgba(100, 116, 139, .18); stroke: #64748b; animation: none; }
.nc-map .ring.first { fill: rgba(22, 163, 74, .25); stroke: #16a34a; animation: none; }
@keyframes nc-ring { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.25); opacity: .15; } }
.nc-pin { position: absolute; transform: translate(-50%, -100%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50% 50% 50% 4px; rotate: -45deg; border: 2px solid #fff; background: #dc2626; color: #fff; font: inherit; font-size: 14px; font-weight: 900; padding: 0; cursor: pointer; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); -webkit-tap-highlight-color: transparent; }
.nc-pin b { rotate: 45deg; }
.nc-pin:disabled { cursor: default; }
.nc-pin.calm { background: #64748b; }
.nc-pin.first { background: #16a34a; }
.nc-pin:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

.nc-ask { margin: 14px 0 8px; font-size: 16px; }
.nc-alarms { display: grid; gap: 8px; }
.nc-alarm { display: flex; align-items: flex-start; gap: 12px; text-align: left; width: 100%; padding: 11px 14px; border-radius: 12px; border: 2px solid var(--pf-line); background: var(--pf-card); font: inherit; color: var(--pf-ink); cursor: pointer; transition: border-color .12s, transform .08s, opacity .2s; }
.nc-alarm:hover:not(:disabled) { border-color: var(--brand); }
.nc-alarm:active:not(:disabled) { transform: scale(.99); }
.nc-alarm:disabled { cursor: default; }
.nc-alarm .k { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #dc2626; color: #fff; font-weight: 900; font-size: 14px; }
.nc-alarm .t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nc-alarm .t b { font-size: 15.5px; line-height: 1.25; }
.nc-alarm .t small { font-size: 13.5px; color: var(--pf-muted); line-height: 1.35; }
.nc-alarm .t em { font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--pf-ink); }
.nc-alarm .lv { flex: none; align-self: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--pf-soft); color: var(--pf-muted); }
.nc-alarm.first { border-color: var(--pf-ok); background: var(--pf-ok-soft); }
.nc-alarm.first .k { background: #16a34a; }
.nc-alarm.first .lv { background: var(--pf-ok); color: #fff; }
.nc-alarm.wrong { border-color: var(--pf-bad); background: var(--pf-bad-soft); }
.nc-alarm.calm:not(.wrong) { opacity: .6; }
.nc-alarm.calm .k { background: #64748b; }
.dt-cause:disabled { cursor: default; }
.dt-cause.dim { opacity: .5; }
.dt-cause.right { border-color: var(--pf-ok); background: var(--pf-ok-soft); }
.dt-cause.right i { border: 6px solid var(--pf-ok); }
.dt-cause.wrong { border-color: var(--pf-bad); background: var(--pf-bad-soft); }
.dt-cause.wrong i { border: 6px solid var(--pf-bad); }
.nc-fb { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--pf-soft); border-left: 5px solid var(--pf-ok); animation: dt-in .25s ease-out; }
.nc-fb.bad { border-color: var(--pf-bad); }
.nc-fb h4 { margin: 0 0 4px; font-size: 16.5px; }
.nc-fb p { margin: 4px 0 0; line-height: 1.45; font-size: 15px; }
.nc-fb .pf-actions { margin-top: 12px; }
.nc-log { text-align: left; display: grid; gap: 6px; margin: 14px 0 4px; }
.nc-log div { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--pf-soft); font-size: 14.5px; }
.nc-log .t { flex: 1; min-width: 0; }
.nc-log .t small { display: block; color: var(--pf-muted); font-size: 12.5px; }
.nc-log .p { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; }
.nc-play { scroll-margin-top: 84px; }
@media (max-width: 480px) {
  .nc-play.pf-card-box { padding-left: 10px; padding-right: 10px; }
  .nc-pin { width: 24px; height: 24px; font-size: 12.5px; }
  /* no celular, o mapa e os três alarmes precisam caber na tela sem rolar: o relógio está correndo */
  .nc-board { width: min(100%, calc(min(100vh - 330px, 29vh) * var(--ar))); }
  .nc-timer { margin: 8px 0 10px; }
  .nc-ask { margin: 10px 0 6px; font-size: 15px; }
  .nc-alarms { gap: 6px; }
  .nc-alarm { padding: 8px 10px; gap: 10px; }
  .nc-alarm .k { width: 24px; height: 24px; font-size: 12.5px; }
  .nc-alarm .t b { font-size: 14.5px; }
  .nc-alarm .t small { font-size: 12.5px; line-height: 1.3; }
  .nc-alarm .t em { font-size: 12px; }
}
