/* Real-Time Adherence - additions on top of the shared Time Champ base styles */
:root { --live: #12A150; --live-bg: #E2F4EC; }
.clock { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 10px; padding: 4px 6px 4px 10px; background: var(--panel); }
.clock .live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--live); }
.clock .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(18,161,80,.5); animation: pulse 1.6s infinite; }
.clock .live.paused { color: var(--warn); } .clock .live.paused i { background: var(--warn); animation: none; }
.clock .live.past { color: var(--info); } .clock .live.past i { background: var(--info); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18,161,80,.55); } 70% { box-shadow: 0 0 0 8px rgba(18,161,80,0); } 100% { box-shadow: 0 0 0 0 rgba(18,161,80,0); } }
.clock .t { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; min-width: 94px; }
.clock .t small { font-size: 11px; color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.clock button { font: inherit; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); background: var(--panel); border-radius: 7px; padding: 3px 8px; cursor: pointer; color: var(--ink-2); }
.clock button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.clock input[type=range] { width: 120px; }
.rta-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.rta-pill i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.adh-in { background: var(--ok-bg); color: var(--ok); } .adh-out { background: var(--bad-bg); color: var(--bad); } .adh-just { background: var(--info-bg); color: var(--info); } .adh-warn { background: var(--warn-bg); color: var(--warn); }
.sev-low { background: #EEF1F6; color: #47506B; } .sev-medium { background: var(--warn-bg); color: var(--warn); } .sev-high { background: #FFE4D6; color: #B54708; } .sev-critical { background: var(--bad); color: #fff; }
.lvl { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #EEF1F6; color: #47506B; }
.lvl.l1 { background: var(--warn-bg); color: var(--warn); } .lvl.l2 { background: #FFE4D6; color: #B54708; } .lvl.l3 { background: var(--bad); color: #fff; }
.act-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.act-bar .btn { font-size: 12px; padding: 5px 10px; }
.tl { position: relative; height: 22px; border-radius: 5px; background: #F3F5FA; overflow: hidden; }
.tl i { position: absolute; top: 0; bottom: 0; }
.tl .now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); z-index: 2; }
.tl i.dev { box-shadow: inset 0 -3px 0 #D92D20; }
.tl-lbl { font-size: 11px; color: var(--ink-3); }
body.live-flash .clock .t { color: var(--tc); }
.rta-ticker { display: flex; flex-direction: column; gap: 0; }
.rta-ticker .row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line); font-size: 13px; align-items: center; animation: slidein .35s ease-out both; }
.rta-ticker .row:first-child { border-top: 0; }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } }

#view.static *, #view.static *::before { animation: none !important; }
#view.static .ch-line { stroke-dashoffset: 0; }
#view.static .ch-area, #view.static .ch-dash { opacity: 1; }
