:root{
  --bg:#f6f7f9;
  --surface:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --shadow:0 10px 30px rgba(0,0,0,0.08);
  --radius-lg:24px;
  --radius-md:14px;
  --primary:#2f6feb;
  --primary-hover:#275bd1;
  --focus:rgba(47,111,235,0.18);
  --ok:#16a34a;
  --warn:#f59e0b;
  --bad:#ef4444;
  --max:1100px;
  --line:var(--border);
  --radius:var(--radius-md);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}


*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(900px 520px at 18% -10%, rgba(212,175,55,.18), transparent 60%),
    radial-gradient(820px 520px at 85% 0%, rgba(18,52,87,.65), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height:1.5;
}
a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:28px 20px 36px}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 18px; border:1px solid var(--line);
  background: rgba(11,29,51,.92);
  border-radius: var(--radius); box-shadow: var(--shadow);
  position:sticky; top:14px; z-index:5;
  backdrop-filter: blur(8px);
}
.brand{display:flex; align-items:center; gap:12px}
.brand-mark{
  display:inline-flex; width:40px; height:40px; border-radius:14px;
  align-items:center; justify-content:center;
  font-weight:900; letter-spacing:.6px;
  background: linear-gradient(160deg, rgba(212,175,55,.35), rgba(7,26,43,.8));
  border:1px solid rgba(212,175,55,.7);
  color:var(--brand);
}
.brand-title{font-size:16px; font-weight:900; letter-spacing:.4px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border:1px solid rgba(212,175,55,.35);
  background: rgba(7,26,43,.8);
  border-radius: 999px; color:var(--muted); font-size:12px;
}
.badge.live{border-color: rgba(34,197,94,.6); color:#86efac}
.badge.demo{border-color: rgba(245,158,11,.7); color:#fcd34d}
.warning-banner{
  border:1px dashed rgba(245,158,11,.7);
  background: rgba(7,20,38,.7);
  color:#fcd34d;
  padding:10px 12px;
  border-radius:12px;
}
.grid{display:grid; gap:16px}
.grid.cols-2{grid-template-columns: 1.15fr .85fr}
.stack{display:flex; flex-direction:column; gap:18px}
.auth-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height: calc(100vh - 220px);
}
.auth-card{width:min(640px, 100%)}
@media (max-width: 980px){ .grid.cols-2{grid-template-columns: 1fr} }
h1,h2,h3{margin:0 0 12px 0}
h1{font-size:24px}
h2{font-size:18px}
h3{font-size:14px; color:var(--muted)}
h2::after{
  content:"";
  display:block;
  width:42px;
  height:2px;
  margin-top:6px;
  background: linear-gradient(90deg, var(--brand), transparent);
}
.muted{color:var(--muted)}
.row{display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.field-stack{display:grid; gap:12px}
.btn{
  border:1px solid rgba(212,175,55,.6);
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color:#0b1624; font-weight:900;
  padding:10px 14px; border-radius: 12px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn.small{padding:6px 10px; font-size:12px}
.btn:hover{transform: translateY(-1px); box-shadow: 0 10px 20px rgba(7,26,43,.35)}
.btn:focus-visible{outline:3px solid rgba(212,175,55,.45); outline-offset:2px}
.btn.secondary{
  background: rgba(7,26,43,.6);
  border:1px solid rgba(212,175,55,.6);
  color:var(--brand);
  font-weight:800;
}
.btn.ghost{
  background: transparent;
  border:1px dashed rgba(212,175,55,.6);
  color:var(--muted);
  font-weight:800;
}
.btn.danger{
  background: rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.55);
  color:#fca5a5;
  font-weight:800;
}
.btn:disabled{opacity:.55; cursor:not-allowed}
.input, select{
  background: rgba(7,20,38,.7);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  min-width: 220px;
  flex:1 1 220px;
}
.input.compact{
  min-width: 200px;
  max-width: 320px;
  flex: 0 1 320px;
}
.input:focus, select:focus{
  outline:none;
  border-color: rgba(212,175,55,.9);
  box-shadow: 0 0 0 3px rgba(212,175,55,.18);
}
.camera-panel{
  border:1px solid var(--line);
  border-radius:14px;
  padding:8px;
  background: rgba(7,20,38,.7);
  margin-top:12px;
}
#cameraStream{
  width:100%;
  max-height:320px;
  border-radius:12px;
  background:#050c17;
}
.camera-panel-small #cameraStreamNodes{
  width:100%;
  max-height:220px;
  border-radius:12px;
  background:#050c17;
}
.kpi{
  display:grid; grid-template-columns:repeat(3,1fr); gap:12px;
}
@media (max-width: 700px){.kpi{grid-template-columns:1fr}}
.kpi .tile{
  border:1px solid var(--line); background: rgba(7,26,43,.7);
  border-radius: 16px; padding:14px;
}
.tile .label{font-size:12px; color:var(--muted)}
.tile .value{font-size:20px; font-weight:900; margin-top:6px}
.chip{
  display:inline-flex; align-items:center; gap:8px;
  background: rgba(7,26,43,.7); border:1px solid rgba(212,175,55,.25);
  padding:7px 10px; border-radius:999px;
  font-size:12px; color:var(--muted)
}
.code-chip{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.15);
  margin:0 6px 6px 0;
  font-size:12px;
  color:var(--text);
  background: rgba(7,26,43,.55);
}
.code-input{
  width:100%;
}
.desc-textarea{
  width:100%;
  min-height:80px;
  resize:vertical;
}
.codes-title{
  font-weight:800;
}
.dot{width:9px; height:9px; border-radius:99px; display:inline-block; background: var(--muted)}
.dot.ok{background:var(--ok)}
.dot.warn{background:var(--warn)}
.dot.bad{background:var(--bad)}
.table{width:100%; border-collapse: collapse; font-size:14px}
.table th, .table td{padding:10px 8px; border-bottom:1px solid rgba(27,59,90,.7); vertical-align: top}
.table th{color:var(--muted); font-weight:900; text-align:left}
.hr{height:1px; background:rgba(27,59,90,.7); margin:14px 0}
.small{font-size:12px}
.note{
  border:1px dashed rgba(212,175,55,.4);
  background: rgba(7,26,43,.7);
  padding:12px; border-radius: 14px;
}
.note.warning{
  border-color: rgba(245,158,11,.6);
  background: rgba(60,30,0,.25);
}
.empty-state{
  border:1px solid rgba(27,59,90,.6);
  background: rgba(7,26,43,.6);
  padding:14px;
  border-radius: 14px;
}
.empty-state-title{
  font-weight:900;
  margin-bottom:6px;
}
.backfill-panel{
  margin-top:12px;
}
.file-btn input[type="file"]{
  display:none;
}
.pill-ok{color:var(--ok); font-weight:900}
.pill-warn{color:var(--warn); font-weight:900}
.pill-bad{color:var(--bad); font-weight:900}
img.item-photo{width:100%; max-width: 420px; border-radius: 14px; border:1px solid rgba(27,59,90,.8)}
.toast{
  position:fixed; bottom:18px; right:18px; left:auto;
  max-width: 420px;
  border:1px solid rgba(212,175,55,.3);
  background: rgba(7,26,43,.92);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  display:none;
  z-index: 99999;
  font-weight:700;
}
.toast.show{display:block}
.toast .title{font-weight:900}
.toast .body{color:var(--muted); margin-top:4px}
.toast.error{
  background:#b00020;
  color:#fff;
  font-weight:700;
  box-shadow:0 10px 25px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.15);
}
.toast.error .body{color:#fff}
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(5,12,23,.72);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index: 50;
}
.modal-backdrop.show{display:flex;}
.modal{
  width:min(520px, 96vw);
  background: rgba(7,20,38,.95);
  border:1px solid rgba(27,59,90,.8);
  border-radius:16px;
  padding:16px;
  box-shadow: var(--shadow);
  display:grid;
  gap:12px;
}
.modal-title{font-weight:900; font-size:18px}
.modal-body{color:var(--muted)}
.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.footer{
  margin-top:20px;
  padding-top:14px;
  border-top:1px solid rgba(27,59,90,.7);
  color:var(--muted);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:space-between;
}
.footer b{color:var(--text)}
.spacer{height:18px}
.app-shell{
  display:grid;
  grid-template-columns: 240px 1fr;
  gap:20px;
  align-items:start;
}
.sidebar{
  position:sticky;
  top:96px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.sidebar-card .input{
  width:100%;
  min-width:auto;
}
.nav{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.nav-item{
  border:1px solid var(--line);
  background: rgba(7,26,43,.7);
  color:var(--text);
  padding:10px 12px;
  border-radius: 12px;
  cursor:pointer;
  text-align:left;
  font-weight:800;
  transition: transform .12s ease, border-color .12s ease;
}
.nav-item:hover{transform: translateY(-1px); border-color: rgba(212,175,55,.6)}
.nav-item.active{
  background: linear-gradient(180deg, rgba(212,175,55,.2), rgba(13,46,79,.8));
  border-color: rgba(212,175,55,.8);
  color:var(--brand);
}
.nav-badge{
  margin-left:8px;
  background: rgba(212,175,55,.2);
  border:1px solid rgba(212,175,55,.7);
  color:var(--brand);
  padding:2px 8px;
  border-radius:999px;
  font-size:11px;
}
.content{
  display:flex;
  flex-direction:column;
  gap:20px;
}
.view{display:none}
.view.active{display:block}
.catalog-list{
  display:grid;
  gap:12px;
}
.catalog-card{
  display:grid;
  grid-template-columns: 88px 1fr;
  gap:12px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background: rgba(7,26,43,.65);
}
.catalog-photo{
  width:88px;
  height:88px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid rgba(27,59,90,.8);
}
.catalog-title{font-weight:900; margin-bottom:4px}
.alert-card{
  border:1px solid rgba(212,175,55,.3);
  background: rgba(7,26,43,.7);
  border-radius:14px;
  padding:12px;
  margin-bottom:12px;
}
.job-card h2{
  margin-bottom:4px;
}
.node-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
}
.node-card{
  border:1px solid var(--line);
  background: rgba(7,20,38,.7);
  border-radius:14px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.node-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.node-title{
  font-weight:900;
  font-size:16px;
}
.node-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  letter-spacing:.4px;
  text-transform:uppercase;
  border:1px solid var(--line);
  width:max-content;
}
.node-status.not_started{color:var(--muted)}
.node-status.active{color:var(--brand); border-color:rgba(212,175,55,.7)}
.node-status.complete{color:#86efac; border-color:rgba(34,197,94,.7)}
.no-pay-banner{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px dashed rgba(212,175,55,.7);
  background: rgba(7,20,38,.7);
  color:var(--brand);
  font-weight:800;
  text-align:center;
}
.no-pay-badge{
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(212,175,55,.7);
  color:var(--brand);
  font-weight:800;
  background: rgba(7,20,38,.7);
}
.map{
  margin-top:14px;
  height:420px;
  border-radius:16px;
  border:1px solid var(--line);
  overflow:hidden;
}
.map-controls{
  gap:14px;
}
.checkbox{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--muted);
}
.modal{
  position:fixed;
  inset:0;
  background: rgba(2,8,16,.72);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:20;
  padding:20px;
}
.modal-card{
  width:min(520px, 100%);
}
.btn.link{
  border:none;
  background:transparent;
  color:var(--brand);
  padding:0;
  font-weight:800;
}
.translated-text{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.translated-meta{
  display:flex;
  align-items:center;
  gap:10px;
}
.photo-preview{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background: rgba(7,20,38,.65);
}
.photo-preview img{
  width:100%;
  max-width: 280px;
  border-radius:12px;
  border:1px solid var(--line);
  display:block;
}
.photo-meta{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.photo-thumb{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--line);
  display:block;
}
.gps-badge{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(212,175,55,.35);
  background: rgba(7,20,38,.7);
  color:var(--brand);
  font-size:11px;
  width:max-content;
}
.location-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.clickable-name{
  cursor:pointer;
}
.billing-location-card{
  border:1px solid var(--line);
  background: rgba(7,20,38,.7);
  border-radius:14px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.billing-location-card.disabled{
  opacity:.6;
}
.status-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(212,175,55,.35);
  font-size:11px;
  color:var(--muted);
}
.status-pill.ok{border-color: rgba(34,197,94,.6); color:#86efac}
.status-pill.warn{border-color: rgba(245,158,11,.7); color:#fcd34d}
.status-pill.bad{border-color: rgba(239,68,68,.7); color:#fca5a5}
.billing-table input,.billing-table select{
  width:100%;
  min-width:auto;
}
.billing-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.billing-summary{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-end;
}
.photo-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap:12px;
}
.photo-slot{
  border:1px solid #d6dde8;
  background: #fbfcff;
  border-radius:14px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:170px;
  cursor:pointer;
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.photo-slot:hover{
  border-color: #c7d2fe;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.05),
    0 10px 20px rgba(16, 24, 40, 0.1);
}
.photo-slot.extra{
  border-style: solid;
  border-color: rgba(212,175,55,.35);
}
.photo-slot input{display:none}
.slot-title{font-weight:900}
.slot-badge{
  font-size:11px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(212,175,55,.5);
  color:var(--brand);
  background: rgba(7,20,38,.7);
}
.slot-placeholder{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:var(--muted);
  text-align:center;
}
.camera-icon{
  width:44px;
  height:30px;
  border:2px solid rgba(255,255,255,.25);
  border-radius:8px;
  position:relative;
}
.camera-icon::before{
  content:"";
  position:absolute;
  width:16px;
  height:10px;
  border-radius:6px 6px 3px 3px;
  border:2px solid rgba(255,255,255,.25);
  left:12px;
  top:6px;
}
.camera-icon::after{
  content:"";
  position:absolute;
  width:10px;
  height:6px;
  border-radius:3px;
  background: rgba(255,255,255,.25);
  left:4px;
  top:-6px;
}
.slot-thumb{
  width:100%;
  max-width:200px;
  border-radius:12px;
  border:1px solid var(--line);
  display:block;
}
.file-input-hidden{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.slot-meta{color:var(--muted); font-size:12px}
.badge.warn{
  border-color: rgba(245,158,11,.7);
  color: #fcd34d;
}
.tech-log{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.tech-log .event-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.tech-log .event-title{
  font-weight:700;
}
.tech-log .event-meta{
  color: var(--muted);
  font-size:12px;
}
.wo-card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background: rgba(255,255,255,.02);
  margin-bottom:10px;
}
.wo-header{
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.status-pill{
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
  border:1px solid var(--line);
}
.status-pill.ok{color:#34d399; border-color:rgba(52,211,153,.45);}
.status-pill.warn{color:#fbbf24; border-color:rgba(251,191,36,.45);}
.status-pill.bad{color:#f87171; border-color:rgba(248,113,113,.45);}
@media (max-width: 700px){
  .container{padding:20px 16px 28px}
  .topbar{flex-direction:column; align-items:flex-start}
  .badge{width:100%; justify-content:center}
}
@media (max-width: 980px){
  .app-shell{grid-template-columns:1fr}
  .sidebar{
    position:static;
  }
  .nav{
    flex-direction:row;
    flex-wrap:wrap;
  }
  .nav-item{
    flex:1 1 140px;
  }
  .map{
    height:320px;
  }
}


/* Telecom theme overrides */
body{
  margin:0;
  background: #f5f7fb;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height:1.6;
}

a{color:inherit; text-decoration:none;}

.page{
  max-width:1100px;
  margin:0 auto;
  padding:24px 16px;
}
.container{max-width:1100px; margin:0 auto; padding:24px 16px;}

.topbar{
  background: var(--primary);
  color:#fff;
  position:sticky;
  top:0;
  z-index:10;
  width:100%;
  padding:0;
  border:none;
  border-radius:0;
  box-shadow: 0 10px 24px rgba(15,23,42,0.2);
}
.topbar-inner{
  max-width:1100px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.topbar .muted{color: rgba(255,255,255,0.8)}
.topbar .badge{
  background: rgba(255,255,255,0.18);
  border:1px solid rgba(255,255,255,0.35);
  color:#fff;
}
.topbar .badge.demo{border-color: rgba(255,255,255,0.55); color:#fff;}
.topbar .btn.secondary{
  border-color: rgba(255,255,255,0.55);
  color:#fff;
  background: rgba(255,255,255,0.14);
}
.brand-mark{
  background: rgba(255,255,255,0.18);
  border:1px solid rgba(255,255,255,0.5);
  color:#fff;
}

.hero{
  margin-top:10px;
}
.hero-card{
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height:320px;
  border:1px solid rgba(229,231,235,0.7);
}
.hero-left{padding:44px 44px;}
.hero-left h1{font-size:32px; margin-bottom:12px;}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px;}
.hero-right{
  background:
    radial-gradient(120% 140% at 20% 20%, rgba(47,111,235,0.25), transparent 60%),
    linear-gradient(120deg, rgba(47,111,235,0.18), rgba(17,24,39,0.05));
}
@media (max-width: 900px){
  .hero-card{grid-template-columns:1fr;}
  .hero-right{min-height:180px;}
  .hero-left{padding:28px;}
}

.card{
  border:1px solid #d6dde8;
  background: #fbfcff;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03),
    0 4px 12px rgba(16, 24, 40, 0.06);
  padding:18px;
}
.project-info-body{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.project-info-row{
  display:flex;
  gap:10px;
  align-items:baseline;
  justify-content:space-between;
}
.project-info-label{
  color: var(--muted);
  font-size:12px;
  flex:0 0 90px;
}
.project-info-value{
  color: var(--text);
  font-size:12px;
  text-align:left;
  flex:1;
}

.btn,
.btn.btn-primary,
.btn-primary{
  border:1px solid var(--primary);
  background: var(--primary);
  color:#fff;
  font-weight:700;
  height:46px;
  padding:0 20px;
  border-radius: var(--radius-md);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover,
.btn-primary:hover{background: var(--primary-hover); border-color: var(--primary-hover);}
.btn:focus-visible{outline:none; box-shadow: 0 0 0 4px var(--focus);}
.btn.secondary,
.btn.btn-secondary,
.btn-secondary{
  background: #fff;
  color: var(--text);
  border:1px solid var(--border);
}
.btn.secondary:hover,
.btn-secondary:hover{border-color: var(--primary); color: var(--primary);} 
.btn.ghost{
  background: transparent;
  border:1px solid transparent;
  color: var(--muted);
}
.btn.ghost:hover{background: rgba(47,111,235,0.08); color: var(--primary);}
.btn.danger{
  background: #fee2e2;
  border:1px solid #fecaca;
  color:#b91c1c;
}

.input, select{
  background: #f7f9fd;
  border:1px solid var(--border);
  color: var(--text);
  padding:10px 12px;
  border-radius: var(--radius-md);
  min-width:220px;
  flex:1 1 220px;
}
.input:focus, select:focus{
  outline:none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}

.badge{
  border:1px solid var(--border);
  background: #fff;
  color: var(--muted);
}

.note{
  border:1px solid var(--border);
  background: #f8fafc;
}
.note.warning{
  border-color: #fed7aa;
  background: #fff7ed;
}
.warning-banner{
  border:1px dashed #fcd34d;
  background:#fffbeb;
  color:#b45309;
}

.nav-item{
  border:1px solid var(--border);
  background:#fff;
  color: var(--text);
  border-radius: var(--radius-md);
}
.nav-item:hover{border-color: var(--primary);}
.nav-item.active{
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #1e3a8a;
}
.nav-badge{
  background: #eef2ff;
  border:1px solid #c7d2fe;
  color:#1e3a8a;
}

.table{width:100%; border-collapse: collapse; font-size:14px;}
.table th, .table td{padding:10px 8px; border-bottom:1px solid var(--border); vertical-align: top;}
.table th{color: var(--muted); font-weight:700; text-align:left;}
.table tbody tr:nth-child(even){background:#f9fafb;}
.table tbody tr:hover{background:#eef2ff;}

.catalog-card,
.alert-card,
.node-card,
.billing-location-card,
.photo-preview,
.camera-panel,
.kpi .tile,
.tech-log .event-row,
.wo-card,
.photo-slot{
  background: #fbfcff;
  border:1px solid #d6dde8;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03),
    0 4px 12px rgba(16, 24, 40, 0.06);
}

.chip{
  background:#fff;
  border:1px solid var(--border);
  color: var(--muted);
}

.no-pay-banner,
.no-pay-badge{
  background:#eef2ff;
  border:1px solid #c7d2fe;
  color:#1e3a8a;
}

.map{border:1px solid var(--border);}

.footer{
  border-top:1px solid var(--border);
  color: var(--muted);
}
.footer b{color: var(--text)}

@media (max-width: 700px){
  .topbar-inner{flex-direction:column; align-items:flex-start;}
  .badge{width:100%; justify-content:center;}
}

.site-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:60vh;
  overflow:auto;
}
.site-list .btn{
  width:100%;
  justify-content:space-between;
}
.map-layout{
  display:grid;
  grid-template-columns: 1.6fr 1fr;
  gap:16px;
  align-items:start;
  margin-top:14px;
}
.site-panel-shell{
  position:sticky;
  top:96px;
}
.site-panel-card{
  border:1px solid var(--border);
  background:#fbfcff;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03),
    0 4px 12px rgba(16, 24, 40, 0.06);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.site-panel-title{
  font-weight:700;
  font-size:16px;
}
.panel-section{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.section-title{
  font-weight:700;
}
.media-gallery{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap:10px;
}
.media-card{
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.media-card img{
  width:100%;
  height:120px;
  object-fit:cover;
  display:block;
}
.media-meta{
  padding:6px 8px;
  font-size:11px;
  color:var(--muted);
}
.code-list{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.entry-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.entry-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
}
.entry-row .muted{
  font-size:12px;
}
@media (max-width: 980px){
  .map-layout{
    grid-template-columns:1fr;
  }
  .site-panel-shell{
    position:static;
  }
}

.topbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.topbar-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.15);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.topbar-btn:focus-visible{
  outline:3px solid rgba(255,255,255,0.4);
  outline-offset:2px;
}
.icon-btn{
  border:1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.18);
  color:#fff;
  padding:8px 10px;
  border-radius:12px;
  cursor:pointer;
}
.hamburger{
  display:inline-flex;
  flex-direction:column;
  gap:4px;
}
.hamburger span{
  width:18px;
  height:2px;
  background:#fff;
  border-radius:999px;
}
.alert-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  padding:2px 7px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  font-weight:800;
}
.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.project-summary{
  font-weight:800;
  margin-top:6px;
}
.project-list{
  display:grid;
  gap:10px;
}
.project-row{
  border:1px solid rgba(27,59,90,.5);
  border-radius:12px;
  padding:10px 12px;
  background: rgba(7,26,43,.5);
  cursor:pointer;
  display:grid;
  gap:4px;
  text-align:left;
  width:100%;
}
.project-row:focus-visible{
  outline:3px solid rgba(212,175,55,.35);
  outline-offset:2px;
}
.project-row.active{
  border-color: rgba(212,175,55,.9);
  background: rgba(212,175,55,.12);
}
.project-row-title{
  font-weight:800;
}
.project-row-meta{
  color:var(--muted);
  font-size:12px;
}
.messages-list{
  display:grid;
  gap:10px;
  max-height:360px;
  overflow:auto;
}
.message-card{
  border:1px solid rgba(27,59,90,.5);
  border-radius:12px;
  padding:10px 12px;
  background: rgba(7,26,43,.5);
}
.message-meta{
  color:var(--muted);
  font-size:12px;
}
.segmented{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
}
.segmented-btn{
  border:1px solid rgba(27,59,90,.5);
  background: rgba(7,26,43,.5);
  color:var(--text);
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
}
.segmented-btn.active{
  border-color: rgba(212,175,55,.8);
  color:var(--brand);
  background: rgba(212,175,55,.15);
}
.menu-section{
  margin-top:12px;
}
.menu-title{
  font-weight:900;
}
.menu-link{
  margin-top:8px;
  width:100%;
  text-align:left;
  border:1px solid rgba(27,59,90,.5);
  background: rgba(7,26,43,.5);
  color:var(--text);
  padding:8px 10px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
}
.menu-link:focus-visible{
  outline:3px solid rgba(212,175,55,.35);
  outline-offset:2px;
}
.menu-footer{
  margin-top:16px;
  display:flex;
  justify-content:flex-end;
}
.dpr-metrics{
  border:1px solid rgba(27,59,90,.5);
  background: rgba(7,26,43,.5);
  border-radius:12px;
  padding:10px 12px;
  display:grid;
  gap:8px;
}
.dpr-metric-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-weight:800;
}
.dpr-metric-row span:last-child{
  color:var(--muted);
}
@media (max-width: 700px){
  .topbar-actions{
    width:100%;
    justify-content:space-between;
  }
  .topbar-btn{
    flex:1 1 auto;
    justify-content:center;
  }
  .messages-list{
    max-height:260px;
  }
}
