/* Live field progress page (sites/atl-qc). Loaded after lib/styles.css, which
   supplies the topbar, palette variables, .layout/.dash/.view and the legend box. */
.pg-dash{padding:18px 18px 24px;gap:0}
.pg-head{margin-bottom:14px}
.pg-title{font-family:var(--cond);font-size:22px;font-weight:600;letter-spacing:.2px}
.pg-intro{font-size:13px;color:var(--ink-dim);line-height:1.45;margin-top:6px}

.pg-progress{background:var(--asphalt-2);border:1px solid var(--line);border-radius:10px;padding:16px;margin-bottom:18px}
.pg-big{font-family:var(--mono);font-size:44px;font-weight:600;line-height:1}
.pg-big small{font-size:20px;color:var(--ink-dim);font-weight:500}
.pg-caption{font-size:13px;color:var(--ink-dim);margin:6px 0 12px}
.pg-bar{display:flex;height:10px;border-radius:5px;background:#5a1d1d;overflow:hidden;margin-bottom:14px}
.pg-bar i{display:block;height:100%;transition:width .4s}
.pg-counts{display:flex;flex-direction:column;gap:6px}
.pg-count{display:flex;align-items:center;gap:10px;background:var(--asphalt-3);border:1px solid var(--line);border-radius:7px;
  padding:7px 10px;color:var(--ink);font-family:'Barlow';font-size:13px;cursor:pointer;text-align:left}
.pg-count i{width:12px;height:12px;border-radius:50%;background:var(--c);border:2px solid #fff;flex-shrink:0}
.pg-count-n{font-family:var(--mono);font-weight:600;min-width:26px}
.pg-count.off{opacity:.45}
.pg-count.off .pg-count-l{text-decoration:line-through}
.pg-updated{font-size:12px;color:var(--ink-dim);margin-top:12px}

.pg-area{border:1px solid var(--line);border-radius:8px;margin-bottom:6px;background:var(--asphalt-2);overflow:hidden}
.pg-area-head{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:6px 10px;width:100%;
  background:none;border:0;color:var(--ink);padding:9px 12px;cursor:pointer;text-align:left;font-family:'Barlow';font-size:14px}
.pg-area-name{font-weight:600}
.pg-area-n{font-family:var(--mono);font-size:12px;color:var(--ink-dim)}
.pg-area-bar{grid-column:1/-1;height:4px;border-radius:2px;background:#5a1d1d;overflow:hidden}
.pg-area-bar i{display:block;height:100%;background:#00B000}
.pg-area.complete .pg-area-n{color:#4caf6e}
.pg-area-items{display:none;list-style:none;padding:0 6px 8px}
.pg-area.open .pg-area-items{display:block}
.pg-item{display:flex;align-items:center;gap:8px;width:100%;background:none;border:0;border-radius:6px;color:var(--ink);
  padding:6px 8px;cursor:pointer;font-family:'Barlow';font-size:13px;text-align:left}
.pg-item:hover{background:var(--asphalt-3)}
.pg-item i{width:10px;height:10px;border-radius:50%;flex-shrink:0;border:1.5px solid #fff}
.pg-item-name{flex:1}
.pg-item-st{font-size:11px;color:var(--ink-dim)}
.pg-empty{font-size:12px;color:var(--ink-dim);padding:6px 8px}

.pg-legend .pg-leg-row{display:flex;align-items:center;gap:8px;font-size:12px;padding:2px 0}
.pg-legend .pg-leg-row i{width:12px;height:12px;border-radius:50%;border:2px solid #fff;display:inline-block}

.live-pill{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ink-dim);background:var(--asphalt-3);
  border:1px solid var(--line);border-radius:999px;padding:6px 12px;white-space:nowrap}
.live-pill i{width:9px;height:9px;border-radius:50%;background:#888}
.live-pill[data-state="live"] i{background:#00B000;box-shadow:0 0 0 0 rgba(0,176,0,.6);animation:pg-pulse 2s infinite}
.live-pill[data-state="stale"] i{background:#FF7900}
.live-pill[data-state="off"] i{background:#888}
@keyframes pg-pulse{70%{box-shadow:0 0 0 8px rgba(0,176,0,0)}100%{box-shadow:0 0 0 0 rgba(0,176,0,0)}}

.pg-pop{font-family:'Barlow';min-width:170px}
.pg-pop-name{font-weight:700;font-size:15px}
.pg-pop-area{font-size:12px;color:#555}
.pg-pop-meta{font-size:12px;color:#555;margin-top:2px}
.pg-pop-status{display:flex;align-items:center;gap:6px;margin-top:8px;font-weight:600;font-size:13px}
.pg-pop-status i{width:10px;height:10px;border-radius:50%;background:var(--c)}
.pg-pop-when{font-size:12px;color:#555;margin-top:2px}

@media (max-width:900px){
  .progress-page{overflow:auto}
  /* Map first, a fixed share of the screen: in the column layout flex:1 would
     collapse it to 0 height. */
  .pg-layout .view{flex:none;height:58vh;min-height:320px}
  .pg-dash{border-right:0;border-top:1px solid var(--line)}
  .topbar{padding:0 10px;gap:8px}
  .brand{gap:8px;min-width:0}
  .brand-sightline-logo,.brand-sub{display:none}
  .brand-logo{height:30px}
  .brand-airport-logo{height:20px;max-width:96px}
  .live-pill{max-width:44vw;overflow:hidden;text-overflow:ellipsis;padding:5px 10px}
  .live-pill span{overflow:hidden;text-overflow:ellipsis}
  .pg-legend{bottom:10px;left:10px;max-width:calc(100% - 20px)}
}
