/* Demo-only framing. The product's theme stylesheets remain byte-identical. */
.segal-demo{padding-top:58px}.demo-bar{height:58px;position:fixed;inset:0 0 auto;z-index:10000;background:#062b46;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 22px;border-bottom:1px solid #31536a;font:12px Tahoma,Arial}.demo-bar a{color:#e1ecf2;text-decoration:none}.demo-label{display:flex;align-items:center;gap:9px;font-weight:bold}.demo-label i{width:7px;height:7px;background:#62d2b2;border-radius:50%}.demo-label small{font-weight:normal;color:#b7cbd7}.demo-actions{display:flex;gap:7px}.demo-actions button{font:11px Tahoma,Arial;cursor:pointer;color:#e9f3f8;background:#ffffff0d;border:1px solid #ffffff29;border-radius:6px;padding:8px 10px;white-space:nowrap}.demo-actions button:hover{background:#ffffff20}.segal-demo .control-topbar{top:58px}.segal-demo .control-sidebar{top:58px;height:calc(100vh - 58px)}.demo-context{padding:11px 16px;margin:0 0 18px;border:1px solid var(--line,#dce5eb);background:var(--card,#fff);border-radius:10px;display:flex;align-items:center;gap:14px;font-size:11px}.demo-context span{color:#14765c;font-weight:bold;white-space:nowrap}.demo-context p{margin:0;color:var(--muted,#6b7785);line-height:1.8}.demo-dialog{width:min(1000px,94vw);max-height:88vh;border:1px solid #d4e0e8;padding:28px;border-radius:16px;background:#f6f9fb;color:#172d3b;box-shadow:0 25px 100px #001b3b44;font:13px/1.9 Tahoma,Arial;direction:rtl}.demo-dialog::backdrop{background:#031d34a6;backdrop-filter:blur(5px)}.demo-dialog header{display:flex;justify-content:space-between;align-items:center;gap:20px}.demo-dialog h2{font-size:22px;margin:6px 0}.demo-kicker{letter-spacing:1.3px;font:10px Arial;color:#487285}.demo-close{height:34px;width:34px;border:1px solid #ccdbe5;border-radius:50%;background:#fff;color:#254e65;font:25px Arial;cursor:pointer;flex-shrink:0}.demo-directory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.demo-directory h3{font-size:13px;border-bottom:1px solid #d4e0e8;padding-bottom:10px;color:#31566d}.demo-directory a{display:block;background:#fff;border:1px solid #dce5ed;border-radius:8px;margin:8px 0;padding:12px;color:#183b52;text-decoration:none}.demo-directory a:hover{border-color:#2b8590;background:#f0f8f7}.demo-directory a b{font-size:12px;display:flex;justify-content:space-between}.demo-directory small{display:block;font-size:10px;color:#6a808d;margin-top:4px;line-height:1.9}.demo-help{max-width:600px}.demo-help ol{padding-right:22px}.demo-help-note{border-right:3px solid #b98522;background:#fff4da;padding:14px;margin:20px 0}.demo-consult{display:block;padding:12px 16px;background:#062b46;color:white!important;text-decoration:none;border-radius:8px;text-align:center}.demo-toast{position:fixed;bottom:28px;left:24px;z-index:15000;max-width:min(480px,calc(100vw - 40px));padding:16px 20px;background:#062b46;color:#fff;border:1px solid #5d869f;border-radius:10px;box-shadow:0 12px 35px #062b4633;font:12px/1.9 Tahoma,Arial}.demo-toast[hidden]{display:none}.segal-demo [data-preview-state]::after{max-width:100%;font-size:10px}.segal-demo img{max-width:100%}.segal-demo .ops-camera-live-stage img{object-fit:cover}.segal-demo .header-product span{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.segal-demo .ui-nav-group{font-size:11px}.segal-demo .control-sidebar .top-nav{padding-bottom:45px}
@media(max-width:900px){.demo-directory{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-label small{display:none}.demo-bar{padding:0 12px;gap:7px}.demo-context{align-items:flex-start;flex-direction:column;gap:4px}.demo-dialog{padding:20px}.segal-demo .header-product span{max-width:220px}}
@media(max-width:540px){.demo-bar{height:82px;flex-wrap:wrap;justify-content:space-between;gap:0;padding:8px 12px}.segal-demo{padding-top:82px}.segal-demo .control-topbar{top:82px}.segal-demo .control-sidebar{top:82px;height:calc(100vh - 82px)}.demo-actions{width:100%;justify-content:space-between}.demo-actions button{padding:6px 10px;flex:1}.demo-directory{grid-template-columns:1fr}.demo-dialog h2{font-size:18px}.demo-context{font-size:10px}.demo-toast{bottom:90px}.segal-demo .header-product span{max-width:170px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Product headers use !important positioning; offset both chrome layers. */
body.segal-demo .control-topbar{top:58px!important}
body.segal-demo .control-sidebar{top:58px!important;height:calc(100vh - 58px)!important}
body.segal-demo .region-sidebar,body.segal-demo .map-inspector{top:140px}
@media(max-width:540px){body.segal-demo .control-topbar{top:82px!important}body.segal-demo .control-sidebar{top:144px!important;height:calc(100vh - 144px)!important}}
@media(max-width:600px){body.segal-demo .control-topbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:nowrap!important}body.segal-demo .control-topbar .header-product{margin:0!important;align-self:center!important;min-width:0!important;max-width:150px!important}body.segal-demo .control-topbar .header-menu-area{margin:0!important;flex:0 0 auto!important}}


/* v7.4.0 Realistic Typography & Authentic Iranian License Plate Polish */
html, body, button, input, select, textarea {
  font-family: 'Vazirmatn', 'IRANSansX', 'Segoe UI', Tahoma, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.iran-plate {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
  border: 2px solid #0f172a !important;
  border-radius: 7px !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255,255,255,0.9) !important;
}
.iran-plate .iran-strip {
  background: linear-gradient(180deg, #003399 0%, #002266 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}
.iran-plate .plate-cell, .iran-plate .plate-letter, .iran-plate .plate-region b {
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em;
}
.plate-wrap[data-plate*="ت"] .iran-plate,
.plate-wrap[data-plate*="ع"] .iran-plate {
  background: linear-gradient(180deg, #fde047 0%, #f5c518 100%) !important;
}
.plate-inline {
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
  font-weight: 800 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1.5px solid #1e293b !important;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08) !important;
}
.plate-inline[data-plate*="ت"],
.plate-inline[data-plate*="ع"] {
  background: linear-gradient(180deg, #fef08a 0%, #f5c518 100%) !important;
  color: #0f172a !important;
}
.ops-camera-live-stage img, .evidence-photo img, .thumb-vehicle img, .thumb-plate img {
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.18);
}
