* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: #f3f4f6; color: #111827; font-size: 15px; }
header { background: #111827; color: #fff; padding: 10px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
header h1 { font-size: 19px; letter-spacing: .3px; }
header h1 span { color: #f5b301; }
.badge { font-size: 12px; padding: 3px 8px; border-radius: 99px; background: #374151; }
.badge.on { background: #166534; }
.badge.off { background: #7f1d1d; }
header select { margin-left: auto; padding: 7px; border-radius: 8px; border: 0; font-size: 15px; }
nav { display: flex; gap: 6px; background: #1f2937; padding: 6px 10px; position: sticky; top: 0; z-index: 5; }
nav button { flex: 1; padding: 9px 4px; border: 0; border-radius: 8px; background: #374151; color: #d1d5db; font-size: 15px; font-weight: 600; cursor: pointer; }
nav button.active { background: #f5b301; color: #111827; }
main { max-width: 860px; margin: 0 auto; padding: 12px; }
.dial-grid, .two-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
/* ---- Desktop / laptop layout (the team calls from computers) ---- */
@media (min-width: 900px) {
  main { max-width: 1240px; padding: 18px; }
  header { padding: 12px 22px; }
  header h1 { font-size: 22px; }
  nav { padding: 8px 22px; gap: 10px; }
  nav button { flex: 0 1 210px; padding: 11px 4px; font-size: 16px; }
  .dial-grid { grid-template-columns: 500px 1fr; gap: 14px; align-items: start; }
  .two-grid { grid-template-columns: 460px 1fr; gap: 14px; align-items: start; }
  .stats { gap: 12px; margin-bottom: 14px; }
  .stat b { font-size: 28px; }
  .big-name { font-size: 30px; }
  .big-phone { font-size: 23px; }
  .script-view { font-size: 15.5px; }
  .center { padding: 70px 16px; }
}
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.card h2 { font-size: 17px; margin-bottom: 8px; }
.card h3 { font-size: 15px; margin: 10px 0 6px; }
.muted { color: #6b7280; font-size: 13px; }
.big-name { font-size: 24px; font-weight: 800; }
.big-phone { font-size: 19px; font-weight: 700; color: #1d4ed8; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { background: #111827; color: #fff; border-radius: 10px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 22px; color: #f5b301; }
.stat span { font-size: 12px; color: #d1d5db; }
button.btn { padding: 12px 14px; border: 0; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; background: #e5e7eb; color: #111827; width: 100%; }
button.btn.primary { background: #16a34a; color: #fff; font-size: 19px; padding: 16px; }
button.btn.gold { background: #f5b301; }
button.btn.red { background: #dc2626; color: #fff; }
button.btn:disabled { opacity: .5; cursor: not-allowed; }
.disp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.disp button { padding: 13px 6px; border: 0; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; background: #e5e7eb; }
.disp button.booked { background: #16a34a; color: #fff; }
.disp button.dnc { background: #111827; color: #fca5a5; }
input, textarea, select.inp { width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 16px; margin: 4px 0 10px; background: #fff; }
textarea { min-height: 90px; }
textarea.script { min-height: 260px; font-size: 14px; line-height: 1.45; }
.script-view { white-space: pre-wrap; font-size: 14.5px; line-height: 1.5; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px; }
.row { display: flex; gap: 8px; } .row > * { flex: 1; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 6px 4px; border-bottom: 1px solid #e5e7eb; }
.center { text-align: center; padding: 40px 16px; }
.pinbox { max-width: 340px; margin: 60px auto; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; background: #111827; color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 15px; z-index: 50; max-width: 92vw; text-align: center; }
.calling-banner { background: #166534; color: #fff; border-radius: 10px; padding: 12px; text-align: center; font-weight: 700; margin-bottom: 10px; }
button.btn.small { width: auto; padding: 9px 14px; font-size: 14.5px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; margin-bottom: 8px; }
.filters input, .filters select { margin: 0; }
.progress { height: 10px; background: #e5e7eb; border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.progress > i { display: block; height: 100%; background: #f5b301; transition: width .2s; }
#roofMap { height: 520px; border-radius: 10px; border: 1px solid #d1d5db; margin-top: 8px; z-index: 1; }
.selbox { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.selbox h3 { margin: 0 0 4px; }
.selbox .btn { margin-top: 6px; }
.leaflet-popup-content { font-size: 13px; line-height: 1.35; }
