/* Spectra Ultra software sandbox — replica styles. The replica copies the real microscope PC
   (Windows 10 + Thermo Scientific software), so it stays light in both page themes. */

/* ---------- the PC: monitors, desktop, taskbar ---------- */
.pc { --tb: 40px; display: flex; gap: 10px; align-items: flex-start; color: #000; font: 12px/1.25 Tahoma, "Segoe UI", Verdana, Arial, sans-serif;
  user-select: none; -webkit-user-select: none; color-scheme: light; width: max-content; }
.pc button { font: inherit; color: #000; }
.pc[data-view="left"] .mon[data-mon="right"], .pc[data-view="right"] .mon[data-mon="left"] { display: none; }
.mon { position: relative; width: 1024px; background: #111; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.25); flex: none; }
.mon-area { position: relative; width: 1024px; height: 1170px; background: #5f6468; overflow: hidden; }
.win { position: absolute; }
.win.max { inset: 0; }
.win.float { background: #f0f0f0; border: 1px solid #5a86c0; box-shadow: 0 8px 26px rgba(0,0,0,.45); display: flex; flex-direction: column; }
.win.float:not(.front) .wt { color: #999; }
.desk { position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 40%, #6d7277, #4d5256); padding: 10px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 86px); grid-auto-columns: 84px; gap: 4px; align-content: start; }
.dicon { display: grid; justify-items: center; gap: 3px; color: #fff; text-shadow: 0 1px 2px #000; font: 11px/1.2 "Segoe UI", Tahoma, sans-serif; text-align: center; padding: 4px 2px; cursor: pointer; border: 1px solid transparent; }
.dicon:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.dicon svg { width: 36px; height: 36px; }
.tb { height: var(--tb); background: #282a29; display: flex; align-items: center; color: #fff; font: 12px "Segoe UI", Tahoma, sans-serif; position: relative; }
.tb-start { width: 48px; height: 40px; display: grid; place-items: center; font-size: 20px; cursor: pointer; }
.tb-search { width: 180px; height: 40px; background: #f0f0f0; color: #444; display: flex; align-items: center; padding-left: 10px; cursor: text; white-space: nowrap; overflow: hidden; }
.tb-tv { width: 44px; text-align: center; cursor: pointer; font-size: 15px; }
.tbb { width: 48px; height: 40px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; position: relative; padding: 0; }
.tbb:hover { background: #3c3e3d; }
.tbb.run::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; background: #9ab8d8; }
.tbb.multi::before { content: ""; position: absolute; left: 9px; right: 3px; bottom: 0; height: 2px; background: #5d6f82; }
.tbb.act { background: #4a4c4b; }
.tb-tray { margin-left: auto; display: flex; align-items: center; gap: 12px; padding-right: 10px; font-size: 11px; color: #ddd; }
.tb-clock { text-align: center; line-height: 1.25; }
.jump { position: absolute; bottom: var(--tb); width: 240px; background: #2b2b2b; color: #fff; z-index: 60; padding: 6px 0; font: 12px "Segoe UI", Tahoma, sans-serif; box-shadow: 0 -4px 16px rgba(0,0,0,.4); }
.jump .jh { padding: 6px 14px; color: #bbb; border-bottom: 1px solid #444; margin-bottom: 4px; }
.jump .ji { padding: 7px 14px; cursor: pointer; } .jump .ji:hover { background: #44423e; }
.switcher { position: absolute; bottom: calc(var(--tb) + 4px); background: #3f4243; z-index: 60; display: flex; gap: 6px; padding: 8px; box-shadow: 0 -4px 16px rgba(0,0,0,.4); }
.thumb { width: 206px; cursor: pointer; padding: 4px; border: 1px solid transparent; color: #fff; font: 12px "Segoe UI", Tahoma, sans-serif; }
.thumb:hover { background: #55595a; border-color: #777; }
.thumb .tt { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; }
.thumb .tt svg { width: 16px; height: 16px; flex: none; }
.thumb .tp { height: 112px; background: #1f2a33; border: 1px solid #555; }

/* ---------- standard Windows 10 title bar ---------- */
.wt { height: 30px; background: #fff; display: flex; align-items: center; gap: 6px; padding-left: 8px; font: 12px "Segoe UI", Tahoma, sans-serif; color: #111; flex: none; }
.wt.dark { background: #2b2b2b; color: #fff; }
.wt-ic svg { width: 16px; height: 16px; display: block; }
.wt-t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-c { display: flex; height: 100%; } .wt-c span { width: 44px; display: grid; place-items: center; cursor: pointer; color: #333; }
.wt.dark .wt-c span { color: #ddd; }
.wt-c span:hover { background: #e5e5e5; } .wt-c span.x:hover { background: #e81123; color: #fff; }

/* ---------- common widgets ---------- */
.b { display: inline-block; background: #f0f0f0; border: 1px solid #7a7a7a; box-shadow: inset 1px 1px #fff, inset -1px -1px #b5b5b5; padding: 2px 6px; min-height: 22px; cursor: pointer; font-size: 12px; text-align: center; white-space: nowrap; vertical-align: middle; }
.b:hover:not(:disabled) { background: #e5f1fb; border-color: #0078d7; }
.b.on { background: #fbfe82; }
.b:disabled, .b.dis { color: #9a9a9a; cursor: default; background: #f4f4f4; }
.b.sm { min-height: 18px; padding: 0 5px; font-size: 11px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 6px; align-items: center; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; font-size: 11px; }
.kv .r { text-align: right; }
.fld { display: inline-flex; align-items: center; background: #fff; border: 1px solid #a0a0a0; min-height: 19px; padding: 0 3px; font-size: 11px; vertical-align: middle; overflow: hidden; white-space: nowrap; }
.fld.dis { color: #9a9a9a; background: #f4f4f4; }
.spin { display: inline-flex; flex-direction: column; vertical-align: middle; margin: 0 2px; }
.spin i { width: 9px; height: 8px; border: 1px solid #b0b0b0; background: #f4f4f4; font-size: 6px; line-height: 6px; text-align: center; font-style: normal; color: #777; }
.dd { position: relative; display: inline-flex; align-items: stretch; background: #fff; border: 1px solid #a0a0a0; min-height: 20px; font-size: 11px; cursor: pointer; vertical-align: middle; padding: 0; }
.dd .v { padding: 2px 4px; flex: 1; text-align: left; white-space: nowrap; overflow: hidden; }
.dd .a { width: 16px; border-left: 1px solid #ddd; display: grid; place-items: center; font-size: 8px; color: #333; }
.dd.dis { color: #9a9a9a; background: #f4f4f4; cursor: default; }
.ddlist { position: absolute; left: -1px; top: 100%; z-index: 40; background: #fff; border: 1px solid #555; min-width: calc(100% + 2px); box-shadow: 2px 2px 4px rgba(0,0,0,.3); color: #000; }
.ddlist div { padding: 1px 4px; cursor: pointer; white-space: nowrap; }
.ddlist div:hover, .ddlist div.cur { background: #0078d7; color: #fff; }
.chk { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; cursor: pointer; }
.chk i { width: 11px; height: 11px; border: 1px solid #555; background: #fff; display: inline-grid; place-items: center; font-style: normal; font-size: 9px; line-height: 9px; }
.rad i { border-radius: 50%; }
.lst { background: #fff; border: 1px solid #a0a0a0; font-size: 11px; overflow: hidden; position: relative; }
.lst .it { padding: 0 3px 0 16px; white-space: nowrap; cursor: pointer; height: 16px; line-height: 16px; }
.lst .it.sel { background: #1a77d5; color: #fff; text-decoration: underline; }
.vscroll { position: absolute; right: 0; top: 0; bottom: 0; width: 14px; background: #f0f0f0; border-left: 1px solid #ddd; }
.vscroll::before { content: ""; position: absolute; left: 2px; right: 2px; top: 16px; height: 40%; background: #c1c1c1; }
.tbl { background: #fff; border: 1px solid #a0a0a0; font-size: 11px; position: relative; overflow: hidden; }
.tbl .hd, .tbl .tr { display: grid; grid-template-columns: 70px 62px 16px; gap: 0 6px; padding: 0 3px; white-space: nowrap; height: 17px; line-height: 17px; }
.tbl .hd { border-bottom: 1px solid #ddd; color: #333; }
.tbl .hd span[data-a] { cursor: pointer; }
.tbl .tr { cursor: pointer; } .tbl .tr span { overflow: hidden; }
.tbl .tr.sel { background: #1a77d5; color: #fff; }
.menubar { background: #fff; display: flex; gap: 2px; padding: 1px 4px; font-size: 12px; }
.menubar > span { padding: 2px 7px; cursor: pointer; position: relative; } .menubar > span:hover, .menubar > span.open { background: #cce8ff; }
.menu-pop { position: absolute; left: 0; top: 100%; z-index: 45; background: #f2f2f2; border: 1px solid #ccc; box-shadow: 2px 3px 8px rgba(0,0,0,.3); min-width: 200px; padding: 3px 0; }
.menu-pop > div { padding: 4px 24px 4px 26px; white-space: nowrap; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; position: relative; }
.menu-pop > div:hover { background: #91c9f7; } .menu-pop > div.dis { color: #999; cursor: default; } .menu-pop > div.dis:hover { background: none; }
.menu-pop > div.chk::before { content: "✓"; position: absolute; left: 9px; } .menu-pop hr { border: 0; border-top: 1px solid #ccc; margin: 3px 2px; }
.menu-pop .sub { position: absolute; left: 100%; top: -4px; }

/* ---------- Windows dialog ---------- */
.dlg { position: absolute; z-index: 50; left: 50%; top: 250px; transform: translateX(-50%); width: 360px; background: #fff; border: 1px solid #3a8ad6; box-shadow: 0 8px 24px rgba(0,0,0,.45); font: 12px/1.3 "Segoe UI", Tahoma, Arial, sans-serif; }
.dlg .t { display: flex; justify-content: space-between; padding: 6px 8px; font-size: 12px; }
.dlg .t span:last-child { color: #333; cursor: pointer; }
.dlg .m { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 14px 18px; }
.dlg .ic { width: 26px; height: 26px; display: grid; place-items: center; font-weight: 700; color: #fff; }
.dlg .ic.err { background: #e81123; border-radius: 50%; }
.dlg .ic.warn { width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 26px solid #f2c811; position: relative; }
.dlg .ic.warn::after { content: "!"; position: absolute; left: -3px; top: 7px; color: #000; font-size: 14px; }
.dlg .ic.q { background: #1e6fd9; border-radius: 50%; }
.dlg .f { background: #f0f0f0; padding: 9px 12px; text-align: right; display: flex; gap: 8px; justify-content: flex-end; }
.dlg .ok { min-width: 74px; border: 1px solid #adadad; background: #e1e1e1; padding: 3px 10px; cursor: pointer; }
.dlg .ok.def { border: 2px solid #0078d7; }

/* ---------- TEM User Interface ---------- */
.tem-app { position: relative; display: grid; grid-template-columns: 250px 774px; height: 100%; background: #58595e; }
.ws { background: #f0f0f0; border-right: 3px solid #58595e; display: flex; flex-direction: column; height: 100%; position: relative; }
.ws-title { font-size: 11px; color: #555; padding: 3px 6px; background: #fff; border-bottom: 1px solid #ddd; }
.strip { position: relative; height: 30px; background: #fdfdfd; border-bottom: 1px solid #aaa; display: flex; align-items: flex-end; padding-left: 3px; }
.tabs-view { position: relative; overflow: hidden; width: 212px; height: 28px; }
.tabs-row { position: absolute; left: 0; bottom: 0; display: flex; white-space: nowrap; }
.tab { border: 1px solid #b4b4b4; border-bottom: 0; background: #f0f0f0; padding: 3px 5px 4px; margin-right: -1px; cursor: pointer; font-size: 12px; height: 23px; }
.tab:hover { background: #d8e6f5; }
.tab.sel { background: #fff; height: 27px; padding-top: 5px; position: relative; z-index: 2; }
.arrows { display: flex; gap: 1px; margin: 0 0 4px 0; }
.arr { width: 16px; height: 17px; border: 1px solid #a0a0a0; background: #f0f0f0; font-size: 9px; line-height: 15px; padding: 0; cursor: pointer; }
.arr:disabled { color: #b0b0b0; cursor: default; }
.panels { flex: 1; padding: 4px 0 0; overflow: hidden; }
.panel { margin: 0 5px 8px; border: 1px solid #8a8a8a; background: #fbf8ef; position: relative; }
.ph { background: #7f7f7f; color: #fff; font-weight: 700; font-size: 13px; padding: 3px 26px 3px 6px; position: relative; letter-spacing: .01em; }
.flap { position: absolute; right: 3px; top: 3px; width: 15px; height: 15px; border: 1px solid #555; background: #e8e8e8; font-size: 8px; line-height: 13px; padding: 0; cursor: pointer; }
.pb { padding: 6px 7px 7px; }
.status-red { background: #ed1c24; color: #fff; font-size: 15px; padding: 1px 5px; margin-bottom: 5px; }
.status-ok { background: #c1d9be; color: #1b3a1b; font-size: 15px; padding: 1px 5px; margin-bottom: 5px; }
.press { display: grid; grid-template-columns: 1fr 70px 18px; font-size: 11px; line-height: 13px; }
.press .g { background: #bedcc0; text-align: right; font-weight: 700; padding-right: 3px; }
.press .u { background: #bedcc0; font-weight: 700; }
.tem-app .sep { border-top: 1px solid #333; margin: 6px 0; }
.lgd { margin: auto 5px 6px; border: 1px solid #bdbfbc; background: #fcf9ed; padding: 6px 5px 5px; font-size: 10.5px; display: grid; grid-template-columns: 34px 1fr 34px 1fr; gap: 9px 2px; }
.lgd .v { text-align: right; padding-right: 4px; white-space: nowrap; }
.lgd .v.flash { animation: lgflash 1.6s ease-out 1; }
@keyframes lgflash { 0%, 40% { background: #ffe066; outline: 2px solid #ffc400; } 100% { background: transparent; outline: 0 solid transparent; } }
.hscroll { height: 16px; background: #e8e8e8; border-top: 1px solid #ccc; }
.tree .it { padding-left: 34px; position: relative; }
.tree .it::before { content: "⊞"; position: absolute; left: 3px; color: #777; font-size: 10px; }
.tree .it::after { content: ""; position: absolute; left: 17px; top: 3px; width: 13px; height: 10px; background: #f5d66a; border: 1px solid #c9a227; border-radius: 1px; }
.tu-main { background: #808080; display: flex; flex-direction: column; height: 100%; position: relative; }
.win-title { background: #fff; height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 0 0 8px; font-size: 12px; color: #444; border-bottom: 1px solid #ddd; }
.win-title .ctl { margin-left: auto; display: flex; } .win-title .ctl span { width: 36px; text-align: center; color: #aaa; }
.menu { background: #fff; display: flex; gap: 12px; padding: 2px 8px; font-size: 12px; } .menu span { cursor: pointer; }
.tem-centre { flex: 1; min-height: 0; }
.sbar { background: #fcf9ed; border-top: 1px solid #999; font-size: 11px; }
.sbar .logo { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #aaa; }
.sbar .logo div:last-child { text-align: center; font: 17px/24px "Times New Roman", serif; letter-spacing: .06em; color: #5a2d2d; font-variant: small-caps; background: #f0f0f0; }
.sgrid { display: grid; grid-template-columns: 1.05fr 1fr 1fr .95fr; padding: 3px 4px 6px; }
.sgrid > div { display: grid; grid-template-columns: auto 1fr; gap: 0 6px; padding: 0 4px; border-right: 1px solid #ddd; line-height: 14px; }
.sgrid .r { text-align: right; }
.sxyz { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 0 6px; padding: 2px 8px 6px; font: 16px/20px Arial, sans-serif; border-top: 1px solid #ddd; }
.sxyz .r { text-align: right; } .sxyz .cool { color: #1a7a1a; grid-column: 3 / 5; }
.fly { position: absolute; left: 250px; width: 226px; z-index: 30; background: #fbf8ef; border: 1px solid #555; box-shadow: 3px 3px 8px rgba(0,0,0,.35); padding: 6px; font-size: 11px; }
.fly .ftabs { display: flex; gap: 2px; margin-bottom: 6px; border-bottom: 1px solid #999; }
.fly .ftabs span { border: 1px solid #999; border-bottom: 0; padding: 2px 8px; background: #eee; cursor: pointer; font-size: 12px; }
.fly .ftabs span.sel { background: #fbf8ef; position: relative; top: 1px; }
.fly .ftbl .tr, .fly .ftbl .hd { grid-template-columns: 82px 1fr; }
.duo { display: grid; grid-template-columns: 1fr 20px 1fr; gap: 3px; align-items: center; }
.duo .lst { height: 120px; overflow-y: auto; }
.duo .lst .it { padding-left: 3px; text-decoration: none; }
.duo .lst .it.hi { background: #0078d7; color: #fff; }
.duo .mid { display: grid; gap: 30px; }

/* ---------- hint highlight (design-system yellow = "what to touch") ---------- */
#stage .hint { outline: 3px solid #ffc400 !important; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(255,196,0,.35) !important; animation: sbpulse 1.1s ease-in-out infinite; z-index: 35; }
@keyframes sbpulse { 50% { box-shadow: 0 0 0 11px rgba(255,196,0,.12) !important; } }
@media (prefers-reduced-motion: reduce) { #stage .hint { animation: none; } .lgd .v.flash { animation: none; } }
