:root{
  --app-bg:#0b0f14;
  --app-panel:#0f1824;
  --app-panel2:#0d141f;
  --app-border:rgba(255,255,255,.08);
  --app-text:rgba(255,255,255,.92);
  --app-muted:rgba(255,255,255,.65);
  --app-accent:#2563eb;
  --app-danger:#b91c1c;
  --app-warn:#b45309;
  --app-ok:#16a34a;
  --app-radius:14px;
  --app-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
html,body{height:100%; margin:0; background:var(--app-bg); color:var(--app-text); font-family:var(--app-font);}
a{color:var(--app-accent); text-decoration:none;}
.rc-topbar{
  height:52px; display:flex; align-items:center; gap:12px;
  padding:0 12px; border-bottom:1px solid var(--app-border);
  background:rgba(16,24,36,.85);
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(8px);
}
.rc-brand{display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.2px;}
.rc-brand img{height:28px; width:28px; border-radius:8px;}
.rc-spacer{flex:1;}
.rc-pill{padding:5px 9px; border:1px solid var(--app-border); border-radius:999px; font-weight:800; font-size:12px; color:var(--app-muted);}
.rc-btn{
  border:1px solid var(--app-border);
  background:rgba(255,255,255,.06);
  color:var(--app-text);
  padding:8px 10px; border-radius:12px;
  font-weight:800; font-size:12px; cursor:pointer;
}
.rc-btn:hover{background:rgba(255,255,255,.10);}
.rc-btn.primary{background:rgba(37,99,235,.20); border-color:rgba(37,99,235,.45);}
.rc-btn.danger{background:rgba(185,28,28,.20); border-color:rgba(185,28,28,.45);}

.rc-grid{
  height:calc(100vh - 52px);
  display:grid;
  grid-template-columns: 320px 1fr 360px;
  gap:10px;
  padding:10px;
}
.rc-card{
  background:rgba(16,24,36,.90);
  border:1px solid var(--app-border);
  border-radius:var(--app-radius);
  box-shadow:0 10px 30px rgba(0,0,0,.30);
  overflow:hidden;
}
.rc-card header{
  padding:10px 12px;
  border-bottom:1px solid var(--app-border);
  display:flex; align-items:center; gap:8px;
}
.rc-card header .title{font-weight:900;}
.rc-card header .sub{margin-left:auto; font-size:12px; color:var(--app-muted);}
.rc-scroll{overflow:auto; height:100%;}
.rc-list{padding:8px;}
.rc-row{
  padding:10px 10px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.03);
  border-radius:12px;
  margin-bottom:8px;
  cursor:pointer;
}
.rc-row:hover{background:rgba(255,255,255,.06);}
.rc-row .top{display:flex; gap:8px; align-items:center; font-weight:900;}
.rc-row .meta{margin-top:4px; font-size:12px; color:var(--app-muted); display:flex; gap:10px; flex-wrap:wrap;}
.rc-badge{padding:2px 8px; border-radius:999px; border:1px solid var(--app-border); font-size:11px; font-weight:900; color:var(--app-muted);}
.rc-badge.ok{border-color:rgba(22,163,74,.35); background:rgba(22,163,74,.12); color:rgba(187,247,208,.9);}
.rc-badge.warn{border-color:rgba(180,83,9,.35); background:rgba(180,83,9,.12); color:rgba(254,215,170,.9);}
.rc-badge.danger{border-color:rgba(185,28,28,.35); background:rgba(185,28,28,.12); color:rgba(254,202,202,.9);}

#map{height:100%; width:100%;}
.rc-detail{padding:12px;}
.rc-detail h2{margin:0 0 6px 0; font-size:18px;}
.rc-detail .muted{color:var(--app-muted); font-weight:700; font-size:12px;}
.rc-detail .actions{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px;}
.rc-field{margin-top:10px;}
.rc-field label{display:block; font-size:12px; font-weight:900; color:var(--app-muted); margin-bottom:6px;}
.rc-field select,.rc-field input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.25);
  color:var(--app-text);
  font-weight:800;
  outline:none;
}
.rc-footer-note{padding:10px 12px; border-top:1px solid var(--app-border); font-size:12px; color:var(--app-muted);}

@media (max-width: 1050px){
  .rc-grid{grid-template-columns: 1fr; height:auto;}
  .rc-card{height:520px;}
}
