/* Office Occupancy MVP - minimal, clean, dark */
:root{
  --bg0:#050509;
  --bg1:#0b0b14;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.68);
  --muted2:rgba(255,255,255,.52);
  --line:rgba(255,255,255,.14);
  --accent:#b9a6ff;
  --good:#7ef0c1;
  --warn:#ffd37a;
  --bad:#ff8ea0;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:var(--bg0);
  overflow-x:hidden;
}

.bg{
  position:fixed;
  inset:-200px;
  background:
    radial-gradient(900px 420px at 18% 12%, rgba(185,166,255,.18), transparent 62%),
    radial-gradient(650px 320px at 88% 28%, rgba(126,240,193,.10), transparent 55%),
    radial-gradient(800px 380px at 45% 85%, rgba(255,142,160,.10), transparent 58%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  filter: saturate(1.05);
  z-index:-1;
}

.wrap{
  max-width:1120px;
  margin:0 auto;
  padding:28px 18px 40px;
}

.top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

h1{
  margin:0;
  font-weight:650;
  letter-spacing:.2px;
  font-size:26px;
}
.sub{
  margin:6px 0 0;
  color:var(--muted);
  max-width:760px;
  line-height:1.35;
}

.right{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.chip{
  appearance:none;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  padding:10px 12px;
  border-radius:999px;
  font-size:13px;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.chip:hover{transform:translateY(-1px); background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.22)}

.panel{
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:18px;
  padding:16px;
  margin:14px 0;
  backdrop-filter: blur(10px);
}

.panelHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:12px;
}

.panelTitle{font-weight:600; font-size:14px;}
.panelMeta{color:var(--muted2); font-size:12px; margin-top:4px}

.badges{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.badge{
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  color:var(--text);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
}
.badge.good{border-color:rgba(126,240,193,.35)}
.badge.warn{border-color:rgba(255,211,122,.35)}
.badge.bad{border-color:rgba(255,142,160,.35)}

.grid{
  display:grid;
  grid-template-columns: 340px 1fr;
  gap:16px;
}
@media (max-width: 920px){
  .grid{grid-template-columns:1fr}
}

.gaugeBox{
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:center;
  justify-content:flex-start;
  padding:10px 6px 6px;
}

.gauge{
  position:relative;
  width:210px;
  height:210px;
}
.gaugeSvg{
  width:100%;
  height:100%;
  transform: rotate(-90deg);
}
.gaugeBg{
  fill:none;
  stroke:rgba(255,255,255,.12);
  stroke-width:10;
}
.gaugeFg{
  fill:none;
  stroke:var(--accent);
  stroke-width:10;
  stroke-linecap:round;
  stroke-dasharray: 314.159;
  stroke-dashoffset: 314.159;
  filter: drop-shadow(0 8px 16px rgba(185,166,255,.12));
  transition: stroke-dashoffset .6s ease, stroke .3s ease;
}

.gaugeText{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.gaugeValue{font-size:40px; font-weight:700; letter-spacing:.3px}
.gaugeLabel{color:var(--muted2); font-size:12px; text-transform:uppercase; letter-spacing:1.2px}

.verdict{
  width:100%;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  border-radius:14px;
  padding:12px 12px;
}
.verdictTitle{font-size:12px; color:var(--muted2); margin-bottom:6px}
.verdictBody{font-size:14px; line-height:1.35}

.kpiBox{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:8px 6px 6px;
}

.kpis{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:10px;
}
@media (max-width: 920px){
  .kpis{grid-template-columns: repeat(2, minmax(0, 1fr))}
}
.kpi{
  border:1px solid var(--line);
  background:rgba(0,0,0,.16);
  border-radius:14px;
  padding:12px 12px;
}
.kpiLabel{font-size:12px; color:var(--muted2)}
.kpiValue{font-size:20px; font-weight:650; margin-top:6px}

.inputs{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
@media (max-width: 560px){
  .inputs{grid-template-columns:1fr}
}

.field label{
  display:block;
  font-size:12px;
  color:var(--muted2);
  margin:0 0 6px;
}
.field input{
  width:100%;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.22);
  color:var(--text);
  padding:12px 12px;
  outline:none;
  font-size:14px;
}
.field input:focus{border-color:rgba(185,166,255,.5); box-shadow:0 0 0 4px rgba(185,166,255,.12)}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.btn{
  appearance:none;
  border:1px solid rgba(185,166,255,.45);
  background:rgba(185,166,255,.12);
  color:var(--text);
  padding:12px 14px;
  border-radius:14px;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{transform:translateY(-1px); background:rgba(185,166,255,.18); border-color:rgba(185,166,255,.65)}
.btn:disabled{opacity:.6; cursor:not-allowed; transform:none}

.btnAlt{
  border-color:rgba(255,255,255,.22);
  background:rgba(255,255,255,.06);
}
.btnAlt:hover{background:rgba(255,255,255,.09); border-color:rgba(255,255,255,.32)}

.hint{
  font-size:12px;
  color:var(--muted2);
  line-height:1.35;
}
.transcript{
  border-left:2px solid rgba(185,166,255,.45);
  padding-left:10px;
  color:var(--muted);
  font-size:13px;
  min-height:18px;
}

.historyGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
}
@media (max-width: 980px){
  .historyGrid{grid-template-columns:1fr}
}

.chartWrap{
  border:1px solid var(--line);
  background:rgba(0,0,0,.14);
  border-radius:14px;
  padding:10px;
}
.listWrap{
  border:1px solid var(--line);
  background:rgba(0,0,0,.14);
  border-radius:14px;
  padding:10px;
  overflow:auto;
  max-height:320px;
}

.table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.table th, .table td{
  padding:8px 6px;
  border-bottom:1px solid rgba(255,255,255,.10);
  text-align:left;
}
.table th{color:var(--muted2); font-weight:600}
.mono{font-family:var(--mono)}

.foot{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:16px;
  color:var(--muted2);
  font-size:12px;
}
