.sim-layout {display:grid;grid-template-columns:minmax(180px,22%) minmax(0,1fr);border:1px solid #e0e4ea;border-radius:14px;overflow:hidden;background:#fafbfc;color:#252b33}
.sim-tools {padding:80px 0;display:flex;flex-direction:column;align-items:stretch;border-right:1px solid #e0e4ea}
.sim-tools button {background:none;text-align:left;padding:14px 18px 14px clamp(20px,3vw,44px);color:#77818e;font:inherit;font-size:17px;border:0;border-left:3px solid transparent;cursor:pointer}
.sim-tools button[aria-pressed=true] {color:#17202b;border-left-color:#427ff1;font-weight:650}
.sim-stage {position:relative;min-width:0;min-height:500px;padding:38px 7% 64px 4%;background:#f1f3f6}
.sim-sheet,.sim-float {background:white;border:1px solid #e5e8ee;border-radius:11px;overflow:hidden}
.sim-title,.sim-filter {display:flex;align-items:center;gap:10px;padding:16px;border-bottom:1px solid #edf0f3}
.sim-title i {font-style:normal;background:#3476ee;color:white;border-radius:5px;padding:0 4px}
.sim-title small {margin-left:auto;color:#757e8b;font-size:11px}
.sim-filter {font-size:12px;color:#617084;padding-block:11px}
.sim-scroll {overflow:hidden}
#sim-table {width:100%;white-space:nowrap;border-collapse:collapse;font-size:12px;text-align:left}
#sim-table :is(td,th) {border:1px solid #edf0f3;padding:13px 9px;color:#46515e}
#sim-table th {font-weight:500;background:#fafbfc}
#sim-table td:nth-child(2) {font-weight:600;color:#273342}
#sim-table .is-selected {background:#f4f8ff}
.sim-check {display:inline-grid;place-content:center;width:14px;height:14px;border:1px solid #d6dbe3;border-radius:4px;color:white;font-size:10px}
.is-selected .sim-check {background:#3575ed;border-color:#3575ed}
.sim-pill {background:#eaf1f8;border-radius:4px;padding:3px 5px}
.sim-pending {visibility:hidden}
.sim-float {position:absolute;z-index:1;top:90px;right:3%;width:42%;padding:19px;box-shadow:0 8px 30px #17283b19;opacity:0;transform:translateY(8px);transition:opacity .32s,transform .32s}
.sim-arrived {opacity:1;transform:translateY(0)}
.sim-float small {font-size:11px;color:#65748a}
.sim-float h3 {font-size:19px;margin:8px 0 18px;color:#202a37}
.sim-field {display:flex;gap:10px;justify-content:space-between;align-items:baseline;border-top:1px solid #e9edf2;padding:10px 0;font-size:12px}
.sim-field span {color:#75808c;white-space:nowrap}
.sim-field strong {font-weight:550;text-align:right;overflow-wrap:anywhere}
.sim-letter {font-size:13px;line-height:1.5;color:#364252;border-top:1px solid #e9edf2;padding-top:11px}
.sim-download {display:inline-block;margin-top:12px;color:#2264c9;font-size:12px}
.sim-controls {position:absolute;bottom:14px;left:4%;right:3%;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#607087}
.sim-controls button {border:1px solid #dce2eb;background:white;padding:7px 12px;border-radius:6px;color:#425670;cursor:pointer}
@media(max-width:760px){.sim-layout{display:block}.sim-tools{flex-direction:row;overflow-x:auto;padding:6px;border:0}.sim-tools button{flex:none;font-size:13px;padding:10px;border:0;border-bottom:2px solid transparent}.sim-tools button[aria-pressed=true]{border-bottom-color:#427ff1}.sim-stage{padding:16px 12px 49px;min-height:0}.sim-sheet{height:212px}.sim-float{position:relative;top:auto;right:auto;width:92%;margin:-55px 0 0 auto;padding:16px;min-height:180px}.sim-controls{bottom:10px}.sim-title{padding:10px}.sim-field{font-size:11px}}
@media(prefers-reduced-motion:reduce){.sim-float{transition:none}}

/* The demo sits in a deep-blue workspace; paper and active rows carry the light. */
#showcase {
  background: linear-gradient(112deg,#101e32 4%,#142e48 72%,#153c50);
  color: #eff7ff;
}
#showcase .proof-intro { text-align:left; }
#showcase .proof-intro h2 { color:#f4f8ff; }
#showcase .proof-intro p { color:#abc1d7; }
#showcase .sim-layout { border-color:#426077; background:#12293c; box-shadow:0 18px 50px #050f1d30; }
#showcase .sim-tools { background:linear-gradient(155deg,#1b344b,#102335); border-color:#456078; padding-inline:10px; gap:4px; }
#showcase .sim-tools button { color:#afc1d2; border-radius:4px; }
#showcase .sim-tools button:hover { background:#26415a; color:white; }
#showcase .sim-tools button[aria-pressed=true] { background:linear-gradient(95deg,#245777,#233e53); border-color:#67d8e4; color:#fff; }
#showcase .sim-stage {
  background-color:#365973;
  background-image:linear-gradient(90deg,#cadfff0d 1px,transparent 1px),linear-gradient(#cadfff0d 1px,transparent 1px),linear-gradient(135deg,#294159,#416c85 62%,#21586a);
  background-size:28px 28px,28px 28px,100% 100%;
}
#showcase .sim-sheet { background:#eef3f8; border-color:#9ab1c6; box-shadow:0 12px 34px #0a1c2d35; }
#showcase .sim-title { background:#1c344b; color:#eff7ff; border-color:#536d82; }
#showcase .sim-title i { background:#277b93; }
#showcase .sim-title small { color:#bfd5e1; }
#showcase .sim-filter { color:#37526c; background:#dce7f0; border-color:#bdcfdd; }
#showcase #sim-table th { background:#e6edf4; color:#5a7084; }
#showcase #sim-table :is(td,th) { border-color:#d6e1e9; }
#showcase #sim-table .is-selected { background:#d9eef2; }
#showcase .is-selected .sim-check { background:#197c8e; border-color:#197c8e; }
#showcase .sim-float { background:#fcfdff; border:1px solid #c0d6e3; border-top:3px solid #3c9ba9; box-shadow:0 12px 36px #0a203e39; }
#showcase .sim-float small { color:#246e80; font-weight:600; }
#showcase .sim-controls { color:#edf7ff; }
#showcase .sim-controls button { color:#f1f7fc; background:#173347d9; border-color:#8aa7b9; }
#showcase .sim-tools button:focus-visible,#showcase .sim-controls button:focus-visible { outline:2px solid #95ebfa; outline-offset:-2px; }
@media(max-width:760px){#showcase .sim-tools{padding:7px;gap:2px}#showcase .sim-tools button{border-left:0}}
#showcase .sim-stage{padding:16px 16px 54px;min-height:0}
.actual-viewport{width:100%;aspect-ratio:1240/820;overflow:hidden;border-radius:8px;background:#edf1f5}
.actual-viewport iframe{width:1240px;height:820px;border:0;transform-origin:top left;pointer-events:none}
@media(max-width:760px){
 #showcase .sim-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:8px}
 #showcase .sim-tools button{min-height:44px;text-align:center;padding:6px;font-size:14px}
 #showcase .sim-stage{padding:4px 6px 64px}
 #showcase .actual-viewport{height:clamp(365px,58svh,560px);aspect-ratio:auto}
 #showcase .actual-viewport iframe{width:100%;height:100%}
 #showcase .sim-controls{bottom:8px;left:10px;right:10px;gap:6px;font-size:12px}
 #showcase .sim-controls button,#menuToggle,#toggleVideo{min-width:44px;min-height:44px}
}
