/* BEMS Digital Twin — สไตล์ของ 2D / SCADA / ตัวสลับมุมมอง / จำลองก่อนสั่ง (js/twin/*)
   สีธีมสว่างเป็นค่าเริ่มต้น · html.dark ปรับเป็นธีมมืด */
.tw { --tw-fg: #1e293b; --tw-mut: #64748b; --tw-card: #ffffff; --tw-line: #e2e8f0; --tw-acc: #0891b2; --tw-ok: #059669; --tw-warn: #d97706;
  --tw-floor: #f6f2e8; --tw-wall: #94a3b8; color: var(--tw-fg); }
html.dark .tw, html.dark .tw-pop, html.dark .tw-wi { --tw-fg: #d7deec; --tw-mut: #8b96ac; --tw-card: #0d1220; --tw-line: #1c2536; --tw-acc: #3cf0ff; --tw-ok: #39ff9e; --tw-warn: #ffb020; --tw-floor: #141a2a; --tw-wall: #4b5873; }

/* ---------- ตัวสลับมุมมอง ---------- */
.tw-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tw-seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: rgba(139, 150, 172, .16); }
.tw-seg button { min-height: 36px; min-width: 56px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--tw-mut, #64748b); font: 700 13px 'Sarabun', system-ui, sans-serif; cursor: pointer; }
.tw-seg button.on { background: #3cf0ff; color: #00121a; }
html:not(.dark) .tw-seg button.on { background: #0891b2; color: #fff; }
.tw-hint { font-size: 12px; color: var(--tw-mut); }
.tw-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.tw-chips[hidden], .tw-pane[hidden] { display: none !important; }
.tw-chip { padding: 8px 6px; border-radius: 12px; text-align: center; border: 1px solid var(--tw-line); background: var(--tw-card); }
.tw-chip span { display: block; font-size: 11px; color: var(--tw-mut); }
.tw-chip b { font-size: 15px; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .tw-chip b { font-size: 13.5px; } }

/* ---------- 2D ---------- */
.tw-pane[data-view="2d"] { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.tw-plan { flex: 0 1 380px; min-width: 240px; width: 100%; max-width: 420px; margin: 0 auto; }
.tw-plan svg, .tw-scada svg { display: block; width: 100%; height: auto; max-height: min(80vh, 780px); }
.tw-side { flex: 1 1 240px; min-width: 220px; display: flex; flex-direction: column; gap: 10px; }
.tw-sun { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; background: rgba(255, 210, 74, .14); border: 1px solid rgba(255, 210, 74, .5); }
.tw-time { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.tw-time label { grid-column: 1 / -1; font-size: 12px; color: var(--tw-mut); }
.tw-time input[type="range"] { width: 100%; min-height: 32px; accent-color: #f5b400; }
.tw-time b { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tw-now { grid-column: 1 / -1; justify-self: start; min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--tw-line); background: transparent; color: var(--tw-fg); font: 600 12.5px 'Sarabun', system-ui, sans-serif; cursor: pointer; }
.tw-now.on { border-color: var(--tw-acc); color: var(--tw-acc); }
.tw-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12px; color: var(--tw-mut); }
.tw-legend li { display: flex; align-items: center; gap: 8px; }
.tw-legend i { flex: none; width: 14px; height: 14px; border-radius: 4px; }
.lg-ac { background: #3cf0ff; } .lg-lt { background: #ffd24a; border-radius: 50% !important; } .lg-pp { background: #39ff9e; border-radius: 50% !important; }
.lg-sun { background: rgba(255, 210, 74, .55); } .lg-sn { background: #4379ee; transform: rotate(45deg) scale(.8); }
.tw-note { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--tw-mut); }

/* svg: ผัง 2D */
.plan2d .p-floor { fill: var(--tw-floor, #f6f2e8); }
.plan2d .p-bay { stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 5 5; opacity: .6; }
.plan2d .p-room { fill: #94a3b8; font: 700 15px 'Sarabun', system-ui, sans-serif; opacity: .5; }
.plan2d .p-wall { stroke: var(--tw-wall, #94a3b8); stroke-width: 6; }
.plan2d .p-win { fill: #9ad8ff; stroke: #5aa9d6; stroke-width: 1; transition: fill .3s; }
.plan2d .p-win.lit { fill: #ffd24a; stroke: #f59e0b; filter: drop-shadow(0 0 5px rgba(255, 190, 40, .9)); }
.plan2d .p-door { fill: #cbd5e1; stroke: #94a3b8; stroke-width: 1; }
.plan2d .p-swing { fill: none; stroke: #94a3b8; stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.plan2d .p-board { fill: #2b3340; }
.plan2d .p-boardlbl { fill: #94a3b8; font: 600 10px 'Sarabun', system-ui, sans-serif; text-anchor: middle; }
.plan2d .p-wl { fill: #8b96ac; font: 600 10.5px 'Sarabun', system-ui, sans-serif; }
.plan2d .p-wet { fill: #d8dde6; } html.dark .plan2d .p-wet { fill: #2a3347; }
.plan2d .p-bedhead { fill: #b99a68; stroke: none; }
.plan2d .p-wall.rail { stroke-width: 2; stroke-dasharray: 3 3; }
.plan2d .p-cam-fov { fill: #8b5cf6; fill-opacity: .13; stroke: #8b5cf6; stroke-opacity: .45; stroke-width: 1; }
.plan2d .p-radar-zone { fill: #22c55e; fill-opacity: .16; stroke: #16a34a; stroke-opacity: .6; stroke-width: 1; stroke-dasharray: 4 3; }
.plan2d .p-chair { fill: #f3a874; stroke: #d98a52; stroke-width: .8; }
.plan2d .p-chairback { fill: #b86a3a; }
.plan2d .p-tchair { fill: #6b7280; }
.plan2d .p-desk { fill: #d9bf93; stroke: #b99a68; stroke-width: .8; }
.plan2d .p-mon { fill: #374151; }
.plan2d .p-proj { fill: #94a3b8; stroke: #64748b; }
.plan2d .p-person { fill: #0891b2; stroke: #fff; stroke-width: 1.4; }
.plan2d .p-person.teacher { fill: #059669; }
html.dark .plan2d .p-person { fill: #3cf0ff; stroke: #0b0f19; } html.dark .plan2d .p-person.teacher { fill: #39ff9e; }
.plan2d .p-cmp-bg { fill: rgba(139, 150, 172, .18); } .plan2d .p-cmp-n { fill: #ef4444; } .plan2d .p-cmp-t { fill: #8b96ac; font: 700 10px 'Sarabun', system-ui, sans-serif; }
.plan2d .sunpatch { fill: #ffd24a; }
.plan2d .p-sunray { stroke: #f59e0b; stroke-width: 2; stroke-dasharray: 4 4; marker-end: none; }
.plan2d .p-sunball { fill: #ffd24a; stroke: #f59e0b; stroke-width: 1.5; }
.plan2d .p-suntxt { font-size: 13px; fill: #7c4a00; } .plan2d .p-suntxt.moon { fill: #8b96ac; font-size: 18px; }
.plan2d .dev { cursor: pointer; outline: none; }
.plan2d .dev:focus-visible .ac-body, .plan2d .dev:focus-visible .lt-dot { stroke: #f59e0b; stroke-width: 3; }
.plan2d .ac-body { fill: #cbd5e1; stroke: #94a3b8; stroke-width: 1.4; transition: fill .3s; }
.plan2d .ac-x { stroke: #64748b; stroke-width: 2; stroke-linecap: round; }
.plan2d .ac-pulse { fill: none; stroke: #3cf0ff; stroke-width: 2; opacity: 0; }
.plan2d .ac-t { fill: #64748b; font: 700 11px 'Sarabun', system-ui, sans-serif; }
.plan2d .ac.on .ac-body { fill: #3cf0ff; stroke: #0891b2; } .plan2d .ac.on .ac-x { opacity: 0; }
.plan2d .ac.on .ac-t { fill: #0891b2; }
.plan2d .ac.on .ac-pulse { opacity: 1; animation: twPulse 2.2s ease-out infinite; }
.plan2d .ac.on[data-mode="HEAT"] .ac-body { fill: #ffb020; stroke: #d97706; }
html.dark .plan2d .ac.on .ac-t { fill: #3cf0ff; }
.plan2d .lt-dot { fill: #b8bec9; stroke: #8b96ac; stroke-width: 1.2; transition: fill .3s; }
.plan2d .lt-glow { opacity: 0; transition: opacity .3s; }
.plan2d .light.on .lt-dot { fill: #ffd24a; stroke: #f59e0b; } .plan2d .light.on .lt-glow { opacity: .9; }
.plan2d .sn-shape { fill: #94a3b8; stroke: #fff; stroke-width: 1.2; }
.plan2d .sensor[data-state="on"] .sn-shape { fill: #10b981; } .plan2d .sensor[data-state="off"] .sn-shape { fill: #ef4444; } .plan2d .sensor[data-state="unk"] .sn-shape { fill: #4379ee; }
.plan2d .sn-t { fill: #fff; font: 700 7px 'Sarabun', system-ui, sans-serif; pointer-events: none; }
@keyframes twPulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.plan2d .ac-pulse { transform-box: fill-box; transform-origin: center; }

/* ---------- 3D ---------- */
.tw-frame { display: block; width: 100%; height: calc(100vh - 330px); min-height: 480px; border: 0; border-radius: 16px; background: #f4f2ed; }
.tw-compact .tw-frame { height: 320px; border-radius: 14px; min-height: 0; }
.tw-3dhint { margin: 8px 2px 0; font-size: 12px; color: var(--tw-mut); }
.tw-compact .tw-3dhint { display: none; }

/* ---------- SCADA ---------- */
.tw-scada { width: 100%; max-width: 920px; margin: 0 auto 8px; }
.scada .sc-box rect { fill: var(--tw-card, #fff); stroke: var(--tw-line, #e2e8f0); stroke-width: 1.5; }
.scada .sc-box.on rect { stroke: #10b981; }
.scada .sc-load.click { cursor: pointer; outline: none; } .scada .sc-load.click:hover rect, .scada .sc-load.click:focus-visible rect { stroke: #f59e0b; stroke-width: 2.4; }
.scada .sc-mdb rect { stroke: #3cf0ff; stroke-width: 2; }
html:not(.dark) .scada .sc-mdb rect { stroke: #0891b2; }
.scada text { fill: var(--tw-fg, #1e293b); font-family: 'Sarabun', system-ui, sans-serif; }
.scada .sc-t1 { font-size: 14px; font-weight: 700; } .scada .sc-t2 { font-size: 12px; fill: var(--tw-mut, #64748b); }
.scada .sc-t3 { font-size: 12px; font-weight: 700; } .scada .sc-t4 { font-size: 10.5px; fill: var(--tw-mut, #64748b); }
.scada .sc-big { font-size: 26px; font-weight: 700; fill: #0891b2; font-variant-numeric: tabular-nums; }
html.dark .scada .sc-big { fill: #3cf0ff; }
.scada .sc-val { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; } .scada .sc-ico { font-size: 20px; }
.scada .sc-sec { font-size: 12px; fill: var(--tw-mut, #64748b); font-weight: 700; letter-spacing: .5px; }
.scada .sc-line { fill: none; stroke: #94a3b8; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.scada .sc-line.live { stroke: #10b981; opacity: 1; stroke-dasharray: 7 9; animation: twFlow 1.2s linear infinite; }
html.dark .scada .sc-line.live { stroke: #39ff9e; }
.scada .sc-comm { stroke-width: 2.4; stroke-dasharray: 4 5; }
.scada .sc-comm.ok { stroke: #10b981; opacity: 1; }
.scada .sc-bar-bg { fill: rgba(139, 150, 172, .2); } .scada .sc-bar { fill: #10b981; transition: width .5s; }
.scada .sc-brk-b { fill: var(--tw-card, #fff); stroke: #94a3b8; stroke-width: 1.5; } .scada .sc-brk-c { fill: #94a3b8; }
.scada .sc-brk-l { stroke: #94a3b8; stroke-width: 2.4; opacity: 0; } .scada .sc-brk-o { stroke: #ef4444; stroke-width: 2.4; opacity: .9; }
.scada .sc-brk.closed .sc-brk-b { stroke: #10b981; } .scada .sc-brk.closed .sc-brk-c { fill: #10b981; }
.scada .sc-brk.closed .sc-brk-l { stroke: #10b981; opacity: 1; } .scada .sc-brk.closed .sc-brk-o { opacity: 0; }
.scada .sc-dot { fill: #94a3b8; }
.scada .sc-node[data-state="on"] .sc-dot { fill: #10b981; } .scada .sc-node[data-state="off"] .sc-dot { fill: #ef4444; }
.scada .sc-node[data-state="on"] rect { stroke: #10b981; } .scada .sc-node[data-state="off"] rect { stroke: #ef4444; }
@keyframes twFlow { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) { .scada .sc-line.live, .plan2d .ac.on .ac-pulse { animation: none; } }

/* ---------- เมนูสั่งงานที่โผล่ใกล้อุปกรณ์ ---------- */
.tw-pop { position: fixed; z-index: 70; min-width: 190px; padding: 10px; display: flex; flex-direction: column; gap: 8px; border-radius: 14px;
  background: var(--tw-card, #fff); color: var(--tw-fg, #1e293b); border: 1px solid var(--tw-acc, #0891b2); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.tw-pop-h { font-size: 14px; }
.tw-pop-b { min-height: 44px; border-radius: 11px; border: 1px solid var(--tw-line); background: rgba(139, 150, 172, .12); color: inherit; font: 700 14px 'Sarabun', system-ui, sans-serif; cursor: pointer; }
.tw-pop-b.on { background: rgba(16, 185, 129, .16); border-color: #10b981; }
.tw-pop-step { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tw-pop-step span { font: 700 16px 'Sarabun', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.tw-pop-s { width: 48px; height: 44px; border-radius: 11px; border: 1px solid var(--tw-acc); background: transparent; color: var(--tw-acc); font-size: 22px; cursor: pointer; }
#twToast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 80; max-width: min(92vw, 420px); padding: 11px 16px; border-radius: 12px; font-size: 14px;
  background: #0d1220; color: #eaf3ff; border: 1px solid #3cf0ff; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#twToast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- จำลองก่อนสั่ง (what-if) ---------- */
.tw-wi { margin-top: 14px; }
.wi { padding: 14px; border-radius: 16px; border: 1px solid var(--tw-line, #e2e8f0); background: var(--tw-card, #fff); color: var(--tw-fg, #1e293b); display: flex; flex-direction: column; gap: 12px; }
.wi-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wi-head h3 { margin: 0; font: 700 16px 'Sarabun', system-ui, sans-serif; }
.wi-badge { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(245, 158, 11, .16); color: #d97706; border: 1px solid rgba(245, 158, 11, .5); }
.wi-lab { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--tw-mut, #64748b); }
.wi-big { font-size: 30px; line-height: 1; color: var(--tw-acc, #0891b2); font-variant-numeric: tabular-nums; }
.wi-slider input[type="range"] { width: 100%; min-height: 34px; accent-color: #0891b2; }
.wi-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .wi-out { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wi-cell { padding: 9px 8px; border-radius: 12px; background: rgba(139, 150, 172, .1); text-align: center; }
.wi-cell span { display: block; font-size: 11px; color: var(--tw-mut, #64748b); } .wi-cell b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; margin: 2px 0; } .wi-cell small { display: block; font-size: 11px; color: var(--tw-mut, #64748b); }
.wi-cell b[data-lvl="ok"] { color: #10b981; } .wi-cell b[data-lvl="warn"] { color: #d97706; }
.wi-use, .wi-rec-b { min-height: 46px; border-radius: 13px; cursor: pointer; font: 700 14px 'Sarabun', system-ui, sans-serif; }
.wi-use { border: 1px solid var(--tw-acc, #0891b2); background: transparent; color: var(--tw-acc, #0891b2); }
.wi-use:disabled, .wi-rec-b:disabled { opacity: .5; cursor: default; }
.wi-rec { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .45); }
.wi-rec[data-kind="off"] { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .5); }
.wi-rec-t { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.45; }
.wi-rec-b { flex: none; padding: 0 16px; border: 0; background: #10b981; color: #fff; }
@media (max-width: 480px) { .wi-rec { flex-direction: column; align-items: stretch; } }
.wi-note { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--tw-mut, #64748b); }

/* ---------- การ์ดบนมือถือ ---------- */
.tw-mcard .tw-frame { height: 360px; min-height: 0; }
.tw-mcard .tw-plan { max-width: 360px; }
.tw-mcard .tw-pane[data-view="2d"] { gap: 10px; }
html[data-mobile] .tw-seg button { min-height: 44px; min-width: 64px; }
html[data-mobile] .tw-wi { margin-top: 0; }
html[data-mobile] .tw-mwi.wi { border-radius: 18px; }
html[data-mobile] #twToast { bottom: calc(var(--m-nav-h, 60px) + var(--m-safe-b, 0px) + 16px); }

/* ---------- ใช้ไฟวันนี้ (มิเตอร์เสมือน) ---------- */
.tw-usage { margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--tw-line, #e2e8f0); background: var(--tw-card, #fff); }
.tw-usage[hidden] { display: none !important; }
.tw-usage h4 { margin: 0 0 8px; font: 700 14px 'Sarabun', system-ui, sans-serif; }
.tw-u-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--tw-line, #e2e8f0); font-size: 13.5px; }
.tw-u-row:first-of-type { border-top: 0; }
.tw-u-row b { font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; }
.tw-u-row.tot { font-weight: 700; border-top: 2px solid var(--tw-line, #e2e8f0); }

/* ---------- ที่มาของตัวเลขใน what-if + ฟอร์มค่าป้ายอุปกรณ์ ---------- */
.wi-basis { margin: 0; padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.45; background: rgba(245, 158, 11, .1); border: 1px dashed rgba(245, 158, 11, .6); color: var(--tw-fg, #1e293b); }
.tw-equip { margin-top: 4px; border-top: 1px solid var(--tw-line, #e2e8f0); padding-top: 10px; }
.tw-equip summary { cursor: pointer; font: 700 13.5px 'Sarabun', system-ui, sans-serif; color: var(--tw-acc, #0891b2); min-height: 40px; display: flex; align-items: center; }
.eq h4 { margin: 12px 0 6px; font: 700 13px 'Sarabun', system-ui, sans-serif; }
.eq-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .eq-g { grid-template-columns: minmax(0, 1fr); } }
.eq-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--tw-mut, #64748b); }
.eq-f input { min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--tw-line, #cbd5e1); background: transparent; color: var(--tw-fg, #1e293b); font: 15px 'Sarabun', system-ui, sans-serif; box-sizing: border-box; width: 100%; }
html.dark .eq-f input { background: #0b0f19; }
.eq-prev { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .4); }
.eq-b { display: flex; gap: 8px; margin-top: 10px; }
.eq-save, .eq-reset { min-height: 44px; padding: 0 18px; border-radius: 11px; cursor: pointer; font: 700 14px 'Sarabun', system-ui, sans-serif; }
.eq-save { border: 0; background: #10b981; color: #fff; flex: 1; }
.eq-reset { border: 1px solid var(--tw-line, #cbd5e1); background: transparent; color: var(--tw-fg, #1e293b); }
.eq-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--tw-mut, #64748b); }
html[data-mobile] .tw-usage { margin-top: 10px; }

/* ---------- Replay (ย้อนดูสถานะ) ---------- */
.tw-rbtn { min-height: 36px; padding: 0 14px; border: 1px solid var(--tw-line); border-radius: 10px; background: var(--tw-card); color: var(--tw-fg); font: 700 13px inherit; cursor: pointer; }
.tw-rbtn.on { background: #f5b400; border-color: #f5b400; color: #1a1200; }
.tw-replay { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid #f5b400; background: rgba(245, 180, 0, .10); display: flex; flex-direction: column; gap: 8px; }
.tw-replay[hidden] { display: none !important; }
.tw-rrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tw-rlab { font-size: 12px; color: var(--tw-mut); }
.tw-rchip, .tw-rexit, .tw-rplay, .tw-rspd { min-height: 32px; min-width: 40px; padding: 0 10px; border: 1px solid var(--tw-line); border-radius: 8px; background: var(--tw-card); color: var(--tw-fg); font: 700 12px inherit; cursor: pointer; }
.tw-rchip.on, .tw-rdays.on { background: #f5b400; border-color: #f5b400; color: #1a1200; }
.tw-rexit { margin-left: auto; }
.tw-rdays { width: 44px; min-height: 32px; border: 1px solid var(--tw-line); border-radius: 8px; background: var(--tw-card); color: var(--tw-fg); text-align: center; font: 700 12px inherit; }
.tw-rslide { flex: 1 1 140px; min-width: 120px; min-height: 32px; accent-color: #f5b400; }
.tw-rtime { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tw-rnote { margin: 0; font-size: 12px; line-height: 1.45; color: var(--tw-mut); }
.tw.tw-isreplay .tw-panes { outline: 2px dashed #f5b400; outline-offset: 4px; border-radius: 6px; }
