/* ==========================================================================
   Lenaps product simulations (urun-detay "Canlı Simülasyon" section)
   Dark "platform" look, rendered by assets/js/product-sims.js
   ========================================================================== */
.sim-section { background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%); }
.sim-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 1080px) { .sim-layout { grid-template-columns: 1fr; } }

.sim-window {
    --s-bg: #0a1330; --s-panel: #111c40; --s-panel2: #16234f; --s-line: rgba(148, 163, 222, .16);
    --s-text: #e6ecff; --s-mute: #8a97c4; --s-blue: #3b82f6; --s-ok: #22c55e; --s-warn: #f59e0b; --s-crit: #ef4444; --s-cyan: #22d3ee;
    background: var(--s-bg); color: var(--s-text); border-radius: 20px; overflow: hidden;
    box-shadow: 0 30px 70px rgba(4, 30, 102, .28), 0 0 0 1px rgba(4, 30, 102, .2);
    font-size: 13px; line-height: 1.4; position: relative;
}
.sim-chrome { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #070e26; border-bottom: 1px solid var(--s-line); }
.sim-dots { display: flex; gap: 6px; }
.sim-dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: block; }
.sim-dots i:nth-child(1) { background: #ef4444; } .sim-dots i:nth-child(2) { background: #f59e0b; } .sim-dots i:nth-child(3) { background: #22c55e; }
.sim-title { flex: 1; font-weight: 700; font-size: 12.5px; color: #c7d2fe; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #fca5a5; }
.sim-live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--s-crit); animation: simBlink 1.2s infinite; }
.sim-btn { background: rgba(255, 255, 255, .08); border: 1px solid var(--s-line); color: var(--s-text); border-radius: 8px; padding: 5px 9px; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-family: inherit; }
.sim-btn:hover { background: rgba(255, 255, 255, .16); }
.sim-progress { height: 3px; background: rgba(255, 255, 255, .06); }
.sim-progress b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3b82f6, #22d3ee); transition: width .6s ease; }
.sim-stage { position: relative; min-height: 440px; padding: 14px 14px 64px; }
.sim-stage-static { color: var(--s-mute); padding: 40px 20px; text-align: center; }
.sim-caption { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 30; background: rgba(7, 14, 38, .92); border: 1px solid var(--s-line); border-left: 3px solid var(--s-cyan); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; color: #dbe4ff; backdrop-filter: blur(4px); transition: opacity .3s, transform .3s; }
.sim-caption.hide { opacity: 0; transform: translateY(6px); }
.sim-start { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(7, 14, 38, .72); }
.sim-start button { background: #2563eb; color: #fff; border: 0; border-radius: 40px; padding: 14px 26px; font-size: 15px; font-weight: 700; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; font-family: inherit; box-shadow: 0 10px 30px rgba(37, 99, 235, .45); }
.sim-paused .sim-stage *, .sim-paused .sim-stage *::before, .sim-paused .sim-stage *::after { animation-play-state: paused !important; }

/* Steps list (server-rendered, crawlable) */
.sim-steps { list-style: none; margin: 0; padding: 0; counter-reset: simstep; display: flex; flex-direction: column; gap: 10px; }
.sim-steps li { counter-increment: simstep; position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 14px 12px 52px; transition: all .35s ease; cursor: default; }
.sim-steps li::before { content: counter(simstep); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: #eff6ff; color: #2563eb; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all .35s; }
.sim-steps li strong { display: block; color: #041E66; font-size: .95rem; margin-bottom: 2px; }
.sim-steps li span { display: block; color: #64748b; font-size: .86rem; line-height: 1.55; }
.sim-steps li.active { border-color: #93c5fd; box-shadow: 0 10px 26px rgba(37, 99, 235, .14); transform: translateX(-4px); }
.sim-steps li.active::before { background: #2563eb; color: #fff; box-shadow: 0 0 0 5px rgba(37, 99, 235, .15); }
.sim-steps li.done::before { content: '✓'; background: #dcfce7; color: #16a34a; }
.sim-note { margin-top: 14px; font-size: .8rem; color: #94a3b8; line-height: 1.5; }

/* ---------- shared dashboard primitives ---------- */
.sd { display: grid; gap: 12px; height: 100%; }
.sd-2 { grid-template-columns: minmax(0, 1fr) 250px; }
.sd-3 { grid-template-columns: 190px minmax(0, 1fr) 230px; }
@media (max-width: 760px) { .sd-2, .sd-3 { grid-template-columns: 1fr; } .sim-stage { padding: 10px 10px 70px; } }
.sp { background: var(--s-panel); border: 1px solid var(--s-line); border-radius: 12px; padding: 10px; min-width: 0; position: relative; }
.sp-h { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--s-mute); font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.kpi { background: var(--s-panel2); border: 1px solid var(--s-line); border-radius: 10px; padding: 8px 10px; }
.kpi small { display: block; color: var(--s-mute); font-size: 10.5px; }
.kpi b { font-size: 17px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.kpi.warn b { color: var(--s-warn); } .kpi.crit b { color: var(--s-crit); } .kpi.ok b { color: var(--s-ok); }
.feed { display: flex; flex-direction: column; gap: 6px; max-height: 330px; overflow: hidden; }
.fi { display: flex; gap: 8px; align-items: flex-start; background: var(--s-panel2); border: 1px solid var(--s-line); border-left: 3px solid var(--s-blue); border-radius: 9px; padding: 7px 9px; animation: simIn .45s ease both; }
.fi.ok { border-left-color: var(--s-ok); } .fi.warn { border-left-color: var(--s-warn); } .fi.crit { border-left-color: var(--s-crit); background: rgba(239, 68, 68, .1); }
.fi i { font-size: 16px; margin-top: 1px; } .fi.ok i { color: var(--s-ok); } .fi.warn i { color: var(--s-warn); } .fi.crit i { color: var(--s-crit); } .fi.info i { color: var(--s-cyan); }
.fi b { display: block; font-size: 12px; color: #fff; } .fi small { color: var(--s-mute); font-size: 11px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11px; padding: 3px 9px; border-radius: 30px; background: rgba(255, 255, 255, .06); border: 1px solid var(--s-line); color: var(--s-mute); transition: all .4s; }
.chip.on { background: rgba(34, 197, 94, .14); border-color: rgba(34, 197, 94, .5); color: #86efac; }
.chip.blue { background: rgba(59, 130, 246, .16); border-color: rgba(59, 130, 246, .5); color: #bfdbfe; }
.chip.bad { background: rgba(239, 68, 68, .16); border-color: rgba(239, 68, 68, .5); color: #fca5a5; }
.bar { height: 7px; background: rgba(255, 255, 255, .07); border-radius: 6px; overflow: hidden; }
.bar b { display: block; height: 100%; width: 0; background: var(--s-blue); border-radius: 6px; transition: width .8s ease, background .4s; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--s-line); font-size: 12px; }
.row:last-child { border-bottom: 0; }
.mute { color: var(--s-mute); } .tnum { font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--s-ok); flex-shrink: 0; }
.dot.warn { background: var(--s-warn); } .dot.crit { background: var(--s-crit); animation: simBlink 1s infinite; } .dot.off { background: #475569; }
.flash { animation: simFlash 1s ease 3; }
.pop { animation: simPop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.chart svg { width: 100%; height: 120px; display: block; }
.chart .ln { fill: none; stroke: var(--s-cyan); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .ar { fill: url(#simGrad); opacity: .5; }
.chart .band { fill: rgba(34, 197, 94, .1); stroke: rgba(34, 197, 94, .35); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.chart .proj { fill: none; stroke: var(--s-warn); stroke-width: 2; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.chart .lim { stroke: var(--s-crit); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.modal { position: absolute; z-index: 25; left: 50%; top: 42%; transform: translate(-50%, -50%); width: min(360px, 88%); background: #0f1a3d; border: 1px solid rgba(239, 68, 68, .55); border-radius: 14px; padding: 16px; box-shadow: 0 25px 60px rgba(0, 0, 0, .5); animation: simPop .45s ease both; }
.modal h5 { margin: 0 0 6px; color: #fff; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.modal p { margin: 0 0 6px; color: #c7d2fe; font-size: 12.5px; }

/* ---------- camera AI ---------- */
.cams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cam { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 2px solid transparent; transition: border-color .3s, box-shadow .3s; background: #1e293b; }
.cam.alarm { border-color: var(--s-crit); box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
.cam.alarm-w { border-color: var(--s-warn); }
.cam-lbl { position: absolute; left: 6px; top: 6px; z-index: 6; font-size: 10px; font-weight: 700; background: rgba(0, 0, 0, .55); color: #fff; padding: 2px 6px; border-radius: 4px; }
.cam-ts { position: absolute; right: 6px; top: 6px; z-index: 6; font-size: 10px; background: rgba(0, 0, 0, .55); color: #fff; padding: 2px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.cam-off { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; background: repeating-linear-gradient(0deg, #0b1020 0 2px, #141b30 2px 4px); color: #94a3b8; font-size: 11px; font-weight: 700; animation: simNoise .25s steps(2) infinite; }
.cam-off.lost { color: #fca5a5; }
.scn { position: absolute; inset: 0; }
.scn-yard { background: linear-gradient(180deg, #5b6f8f 0 38%, #7a8699 38% 40%, #6b7280 40% 100%); }
.scn-yard::before { content: ''; position: absolute; left: 8%; top: 8%; width: 34%; height: 30%; background: #3f4b63; box-shadow: 120% 10% 0 -4% #47546e; }
.scn-road { background: linear-gradient(180deg, #4b5d7c 0 30%, #374151 30% 100%); }
.scn-road::before { content: ''; position: absolute; left: 0; right: 0; top: 64%; height: 3px; background: repeating-linear-gradient(90deg, #e5e7eb 0 18px, transparent 18px 34px); opacity: .7; }
.scn-site { background: linear-gradient(180deg, #8aa1bf 0 40%, #a1825e 40% 100%); }
.scn-site::before { content: ''; position: absolute; left: 70%; top: 4%; width: 4px; height: 40%; background: #f59e0b; box-shadow: -60px 0 0 -1px transparent; }
.scn-site::after { content: ''; position: absolute; left: 40%; top: 4%; width: 34%; height: 4px; background: #f59e0b; }
.scn-room { background: linear-gradient(180deg, #64748b 0 45%, #94a3b8 45% 100%); }
.scn-park { background: radial-gradient(circle at 18% 30%, #166534 0 9%, transparent 9.5%), radial-gradient(circle at 84% 24%, #15803d 0 11%, transparent 11.5%), linear-gradient(180deg, #7aa7d6 0 32%, #4d7c3a 32% 100%); }
.scn-park::before { content: ''; position: absolute; left: 52%; top: 40%; width: 22%; height: 22%; border-top: 4px solid #ef4444; border-right: 4px solid #ef4444; transform: skewX(-25deg); opacity: .8; }
.scn-hall { background: linear-gradient(180deg, #cbd5e1 0 18%, transparent 18%), linear-gradient(90deg, #94a3b8 0 14%, #e2e8f0 14% 86%, #94a3b8 86%); }
.scn-hall::before { content: ''; position: absolute; left: 14%; right: 14%; top: 55%; bottom: 0; background: #b6a28a; }
.scn-gate { background: linear-gradient(180deg, #7aa7d6 0 35%, #9ca3af 35% 100%); }
.scn-gate::before { content: ''; position: absolute; left: 30%; top: 12%; width: 40%; height: 26%; background: #b45309; border-radius: 4px 4px 0 0; }
.obj { position: absolute; z-index: 3; transition: left 2.4s linear, top 2.4s linear, transform .5s; }
.obj svg { width: 100%; height: 100%; display: block; overflow: visible; }
.obj.sway { animation: simSway 2.6s ease-in-out infinite; }
.obj.fight { animation: simShake .35s linear infinite; }
.obj.fallen { transform: rotate(84deg); }
.obj.walk { animation: simWalk 9s linear infinite; }
.fire { position: absolute; z-index: 3; border-radius: 50% 50% 40% 40%; background: radial-gradient(circle at 50% 70%, #fde047 0 22%, #f97316 45%, rgba(239, 68, 68, .85) 65%, transparent 72%); animation: simFlame .5s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.smoke { position: absolute; z-index: 2; border-radius: 50%; background: radial-gradient(circle, rgba(203, 213, 225, .85) 0 35%, rgba(148, 163, 184, .5) 55%, transparent 70%); animation: simSmoke 3s ease-out infinite; }
.det { position: absolute; z-index: 5; border: 2px solid var(--s-ok); border-radius: 3px; animation: simPop .35s ease both; pointer-events: none; }
.det em { position: absolute; left: -2px; top: -17px; font-style: normal; font-size: 9.5px; font-weight: 800; white-space: nowrap; background: var(--s-ok); color: #052e16; padding: 1px 5px; border-radius: 3px 3px 3px 0; }
.det.warn { border-color: var(--s-warn); } .det.warn em { background: var(--s-warn); color: #422006; }
.det.crit { border-color: var(--s-crit); animation: simPop .35s ease both, simBlinkB 1s .35s infinite; } .det.crit em { background: var(--s-crit); color: #fff; }
.det.info { border-color: var(--s-cyan); } .det.info em { background: var(--s-cyan); color: #083344; }
.chain { display: flex; flex-direction: column; gap: 6px; }
.chain-i { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 8px; border-radius: 8px; background: var(--s-panel2); border: 1px solid var(--s-line); color: var(--s-mute); transition: all .4s; }
.chain-i i { font-size: 15px; }
.chain-i.on { color: #fff; border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .1); }
.chain-i.on i { color: var(--s-ok); }
.evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.evidence div { background: var(--s-panel2); border: 1px solid var(--s-line); border-radius: 8px; padding: 6px; font-size: 11px; text-align: center; color: #c7d2fe; animation: simPop .4s ease both; }
.evidence div i { display: block; font-size: 18px; color: var(--s-cyan); }

/* ---------- maps / floor plans ---------- */
.map { position: relative; border-radius: 10px; overflow: hidden; background: #0d1838; border: 1px solid var(--s-line); }
.map svg { display: block; width: 100%; height: auto; }
.map .room { fill: #14224d; stroke: #2b3b72; stroke-width: 1.5; }
.map .room.restricted { fill: url(#simHatch); stroke: rgba(239, 68, 68, .7); }
.map .room.hot { fill: rgba(239, 68, 68, .25); stroke: #ef4444; }
.map .rlabel { fill: #8a97c4; font-size: 11px; font-weight: 700; font-family: inherit; }
.map .gw { fill: #22d3ee; }
.map .gw-ring { fill: none; stroke: #22d3ee; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: simRing 2.4s ease-out infinite; }
.tag { position: absolute; z-index: 4; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #fff; transition: left 2s ease-in-out, top 2s ease-in-out, transform .3s; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.tag.staff { background: #3b82f6; } .tag.guest { background: #f59e0b; } .tag.patient { background: #a855f7; } .tag.asset { background: #22d3ee; border-radius: 4px; } .tag.sec { background: #22c55e; }
.tag.alarm { background: #ef4444; animation: simTagAlarm 1s infinite; }
.tag span { position: absolute; left: 14px; top: -6px; font-size: 10px; white-space: nowrap; color: #fff; background: rgba(0, 0, 0, .55); padding: 1px 5px; border-radius: 4px; font-weight: 700; pointer-events: none; }
.trail { fill: none; stroke: rgba(59, 130, 246, .55); stroke-width: 2; stroke-dasharray: 3 4; }
.fence { fill: rgba(34, 197, 94, .06); stroke: #22c55e; stroke-width: 2; stroke-dasharray: 8 6; animation: simDash 1.2s linear infinite; }
.fence.breach { stroke: #ef4444; fill: rgba(239, 68, 68, .08); }
.pin { position: absolute; z-index: 5; transform: translate(-50%, -100%); font-size: 24px; animation: simDrop .5s cubic-bezier(.2, 1.4, .4, 1) both; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.pin small { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); font-size: 9.5px; white-space: nowrap; background: rgba(0, 0, 0, .7); color: #fff; padding: 1px 5px; border-radius: 4px; font-weight: 700; }
.pin.done { opacity: .55; }
.truck { position: absolute; z-index: 6; font-size: 20px; transform: translate(-50%, -50%); transition: left 2.6s ease-in-out, top 2.6s ease-in-out; color: #22c55e; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.ripple { position: absolute; z-index: 3; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 2px solid #ef4444; animation: simRipple 1.4s ease-out infinite; pointer-events: none; }

/* ---------- wearable ---------- */
.watch { background: #050a1c; border: 1px solid var(--s-line); border-radius: 26px; padding: 14px; text-align: center; max-width: 220px; margin: 0 auto; box-shadow: inset 0 0 0 4px #1e293b; }
.watch .vital { display: flex; justify-content: space-between; padding: 5px 2px; border-bottom: 1px solid var(--s-line); font-size: 12px; }
.watch .vital b { font-variant-numeric: tabular-nums; }
.heart { color: #ef4444; animation: simBeat .9s infinite; display: inline-block; }
.sos { display: none; margin-top: 8px; background: #ef4444; color: #fff; border-radius: 10px; padding: 6px; font-weight: 800; animation: simBlink .8s infinite; }
.sos.on { display: block; }

/* ---------- devices / tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--s-panel2); border: 1px solid var(--s-line); border-radius: 10px; padding: 9px; transition: all .4s; }
.tile.charging { border-color: rgba(34, 211, 238, .55); }
.tile.fault { border-color: rgba(239, 68, 68, .7); background: rgba(239, 68, 68, .1); }
.tile h6 { margin: 0 0 3px; font-size: 11.5px; color: #fff; display: flex; justify-content: space-between; }
.tile .st { font-size: 11px; font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
.log { display: flex; flex-direction: column; gap: 3px; max-height: 300px; overflow: hidden; }
.log div { animation: simIn .35s ease both; color: #a5b4fc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log div b { color: #67e8f9; font-weight: 700; }
.log div.err b { color: #fca5a5; }
.vgrid { display: grid; gap: 6px; transition: all .4s; }
.vgrid.g2 { grid-template-columns: repeat(2, 1fr); } .vgrid.g3 { grid-template-columns: repeat(3, 1fr); }
.vgrid .cam { aspect-ratio: 16 / 9; }
.tl { position: relative; height: 34px; background: var(--s-panel2); border-radius: 8px; border: 1px solid var(--s-line); overflow: hidden; }
.tl .rec { position: absolute; top: 12px; height: 10px; background: rgba(59, 130, 246, .55); border-radius: 3px; }
.tl .ev { position: absolute; top: 6px; width: 3px; height: 22px; background: var(--s-warn); border-radius: 2px; }
.tl .cur { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 8px #fff; transition: left 2s ease-in-out; }
.topo svg { width: 100%; height: auto; display: block; }
.topo .lk { stroke: #3b82f6; stroke-width: 2.5; stroke-dasharray: 6 6; animation: simDash .8s linear infinite; opacity: 0; transition: opacity .5s, stroke .5s; }
.topo .lk.on { opacity: 1; } .topo .lk.hot { stroke: #f59e0b; } .topo .lk.bad { stroke: #ef4444; }
.topo .nd { opacity: 0; transition: opacity .5s; } .topo .nd.on { opacity: 1; }
.topo .nd rect { fill: #16234f; stroke: #3b82f6; stroke-width: 1.5; } .topo .nd.alarm rect { stroke: #ef4444; fill: rgba(239, 68, 68, .2); }
.topo .nd text { fill: #e6ecff; font-size: 11px; font-weight: 700; font-family: inherit; }
.diff { background: #050a1c; border-radius: 8px; padding: 8px; }
.diff .del { color: #fca5a5; } .diff .add { color: #86efac; }
.chainv { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.chainv span { background: var(--s-panel2); border: 1px solid var(--s-line); border-radius: 8px; padding: 5px 8px; font-size: 11.5px; transition: all .4s; }
.chainv span.hot { border-color: #f59e0b; color: #fde68a; background: rgba(245, 158, 11, .12); }
.chainv span.bad { border-color: #ef4444; color: #fecaca; background: rgba(239, 68, 68, .15); }
.chainv i.arr { color: var(--s-mute); }
.browser { background: #f8fafc; color: #0f172a; border-radius: 10px; overflow: hidden; border: 1px solid #334155; }
.browser .bar-top { background: #e2e8f0; padding: 6px 10px; font-size: 11.5px; color: #334155; display: flex; gap: 8px; align-items: center; }
.browser .url { flex: 1; background: #fff; border-radius: 20px; padding: 3px 10px; color: #475569; }
.browser .chat { padding: 14px; min-height: 210px; display: flex; flex-direction: column; gap: 10px; }
.browser .msg { align-self: flex-start; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 12px; max-width: 85%; font-size: 12.5px; }
.browser .input { margin: 0 14px 14px; border: 1.5px solid #cbd5e1; border-radius: 12px; padding: 10px 12px; min-height: 64px; font-size: 13px; background: #fff; transition: border-color .3s; }
.browser .input.bad { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .15); }
.browser .input mark { background: rgba(239, 68, 68, .2); color: #b91c1c; border-radius: 3px; padding: 0 2px; font-weight: 700; }
.browser .input mark.w { background: rgba(245, 158, 11, .22); color: #92400e; }
.caret { display: inline-block; width: 2px; height: 1em; background: #2563eb; vertical-align: -2px; animation: simBlink 1s infinite; }
.cow { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px dashed var(--s-line); font-size: 12px; transition: background .4s; border-radius: 6px; }
.cow.sel { background: rgba(59, 130, 246, .14); }
.flow { position: relative; height: 54px; }
.flow .node { position: absolute; top: 8px; width: 38px; height: 38px; border-radius: 10px; background: var(--s-panel2); border: 1px solid var(--s-line); display: flex; align-items: center; justify-content: center; font-size: 19px; color: var(--s-cyan); }
.flow .pkt { position: absolute; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--s-cyan); box-shadow: 0 0 10px var(--s-cyan); animation: simPkt 1.6s linear infinite; }

@keyframes simBlink { 50% { opacity: .25; } }
@keyframes simBlinkB { 50% { border-color: transparent; } }
@keyframes simIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes simPop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@keyframes simFlash { 50% { background: rgba(239, 68, 68, .35); } }
@keyframes simNoise { to { background-position: 0 3px; } }
@keyframes simSway { 50% { transform: translateY(-2%); } }
@keyframes simShake { 25% { transform: translateX(-4%) rotate(-4deg); } 75% { transform: translateX(4%) rotate(4deg); } }
@keyframes simWalk { from { left: -8%; } to { left: 104%; } }
@keyframes simFlame { to { transform: scaleY(1.15) scaleX(.92); } }
@keyframes simSmoke { from { transform: translateY(0) scale(.6); opacity: .9; } to { transform: translateY(-60%) scale(1.5); opacity: 0; } }
@keyframes simRing { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes simRipple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@keyframes simTagAlarm { 50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, .25); } }
@keyframes simDash { to { stroke-dashoffset: -24; } }
@keyframes simDrop { from { opacity: 0; transform: translate(-50%, -160%); } to { opacity: 1; transform: translate(-50%, -100%); } }
@keyframes simBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } }
@keyframes simPkt { from { left: 46px; opacity: 1; } to { left: calc(100% - 50px); opacity: .3; } }

@media (prefers-reduced-motion: reduce) {
    .sim-window *, .sim-window *::before, .sim-window *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
}

/* layout fixes */
.sd { align-content: start; }
.map { align-self: start; }
.vgrid.g3 .cam-ts { display: none; }
.vgrid.g3 .cam-lbl { font-size: 9px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
    .cam-ts { display: none; }
    .cam-lbl { font-size: 9px; }
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .sim-chrome .sim-title { font-size: 11px; }
    .sim-live { display: none; }
}
