:root { font-family: "Segoe UI", Arial, sans-serif; color: #f4f6f8; background: #171a1f; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { display: grid; grid-template-rows: 52px minmax(0, 1fr) 32px; }
button { padding: 7px 12px; color: #fff; background: #343b45; border: 1px solid #66707d; border-radius: 4px; }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #272c33; }
.toolbar strong { margin-right: 12px; }
#action-overlays { margin-left: auto; }
.stage { display: grid; place-items: center; min-width: 0; min-height: 0; padding: 12px; background: #5d6268; }
.page { position: relative; width: min(calc((100vh - 108px) * 16 / 9), calc(100vw - 24px)); aspect-ratio: 16 / 9; background: #fff; box-shadow: 0 5px 24px #0009; }
.page img { display: block; width: 100%; height: 100%; }
.interactions { position: absolute; inset: 0; }
.hotspot { position: absolute; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
.interactions.show-actions .hotspot { outline: 2px solid #f02b37; outline-offset: -2px; background: #f02b3718; }
.status { padding: 6px 14px; color: #dbe2ea; background: #262b32; font-size: 13px; }
.status.error { color: #fff; background: #a51f2a; font-weight: 700; }
.media-overlay { position: fixed; inset: 0; z-index: 20; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: 12px; padding: 20px; background: #000e; }
.media-overlay[hidden] { display: none; }
.media-overlay video { max-width: 100%; max-height: calc(100vh - 90px); }
.repair-overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: #000c; }
.repair-overlay[hidden] { display: none; }
.repair-card { width: min(560px, 100%); padding: 22px; color: #20242a; background: #fff; border-radius: 8px; box-shadow: 0 16px 50px #000a; }
.repair-card h2 { margin-top: 0; }
.choose-file { display: block; margin: 18px 0; padding: 14px; color: #fff; background: #2e3d8c; border-radius: 5px; cursor: pointer; }
.choose-file input { display: block; margin-top: 10px; }
