.run-page {
  padding-top: 32px;
  padding-bottom: 56px;
}
.run-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: #aab8ca;
  text-decoration: none;
  font-size: 13px;
}
.run-back:hover { color: #ffffff; }
.run-heading {
  max-width: 860px;
  margin: 0 auto 28px;
  text-align: center;
}
.run-heading h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.run-lead {
  max-width: 760px;
  margin: 0 auto;
  color: #aab8ca;
  font-size: 15px;
  line-height: 1.8;
}
.vm-panel {
  overflow: hidden;
  border: 1px solid rgba(137, 164, 199, .22);
  border-radius: 22px;
  background: rgba(8, 15, 27, .94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}
.vm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(137, 164, 199, .16);
  background: rgba(255, 255, 255, .025);
}
.vm-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vm-title strong {
  display: block;
  color: #f2f6ff;
  font: 500 12px "DM Mono", monospace;
  letter-spacing: .1em;
}
.vm-title small {
  display: block;
  margin-top: 4px;
  color: #8292a9;
  font-size: 11px;
}
.vm-led, .vm-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #55d69e;
  box-shadow: 0 0 14px rgba(85, 214, 158, .45);
}
.vm-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a9b7c9;
  font-size: 12px;
}
.vm-status.is-busy .vm-status-dot {
  background: #f5b95d;
  box-shadow: 0 0 14px rgba(245, 185, 93, .45);
}
.vm-status.is-error .vm-status-dot {
  background: #ff7474;
  box-shadow: 0 0 14px rgba(255, 116, 116, .4);
}
.vm-screen-wrap {
  padding: 16px;
  background: #050912;
}
#screen_container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 390px;
  max-height: 72vh;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(113, 139, 173, .24);
  border-radius: 12px;
  background: #000;
  outline: none;
  isolation: isolate;
}
#screen_container:focus-visible {
  box-shadow: 0 0 0 3px rgba(89, 154, 255, .35);
}
#screen_container #screen {
  color: #fff;
  white-space: pre;
  font: 14px/1.15 "DM Mono", monospace;
}
#screen_container #vga {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  image-rendering: pixelated;
}
.vm-screen-placeholder {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8fa0b7;
  text-align: center;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(22, 38, 60, .38), rgba(0, 0, 0, .98) 65%);
}
.vm-screen-placeholder[hidden] { display: none; }
.vm-power-symbol {
  color: #7ca7e9;
  font-size: 38px;
  line-height: 1;
}
.vm-screen-placeholder strong { color: #e7eef9; font-size: 14px; }
.vm-screen-placeholder span { font-size: 12px; }
.vm-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid rgba(137, 164, 199, .15);
  border-bottom: 1px solid rgba(137, 164, 199, .15);
}
.vm-controls button:disabled {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
}
.button-danger {
  color: #ffc2c2;
  border: 1px solid rgba(255, 116, 116, .32);
  background: rgba(150, 45, 55, .15);
}
.button-danger:hover:not(:disabled) { background: rgba(150, 45, 55, .28); }
.vm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  color: #7789a1;
  font: 11px "DM Mono", monospace;
}
.run-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.run-info-card {
  padding: 22px;
  border: 1px solid rgba(137, 164, 199, .16);
  border-radius: 16px;
  background: rgba(12, 21, 36, .8);
}
.run-info-card h2 {
  margin: 12px 0 8px;
  color: #edf3fc;
  font-size: 17px;
  letter-spacing: -.02em;
}
.run-info-card p {
  margin: 0;
  color: #99a9bd;
  font-size: 13px;
  line-height: 1.75;
}
.run-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 2px 12px;
  color: #8292a9;
  font-size: 12px;
}
.run-links a { color: #9fc1ff; }
.run-disclaimer {
  padding: 14px 16px;
  border: 1px solid rgba(245, 185, 93, .22);
  border-radius: 12px;
  background: rgba(96, 67, 25, .12);
  color: #c5b89f;
  font-size: 12px;
  line-height: 1.7;
}
.run-disclaimer strong { color: #f4cd8d; }
@media (max-width: 760px) {
  .run-page { padding-top: 20px; }
  .vm-toolbar { align-items: flex-start; flex-direction: column; }
  .vm-screen-wrap { padding: 8px; }
  #screen_container { min-height: 260px; }
  .vm-controls { padding: 12px; }
  .vm-controls .button { padding: 10px 12px; }
  .vm-foot { padding: 12px; }
  .run-info-grid { grid-template-columns: 1fr; }
}


.vm-media-panel {
  margin: 18px 16px 20px;
  padding: 20px;
  border: 1px solid rgba(137, 164, 199, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
}
.vm-media-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.vm-media-heading h2 {
  margin: 7px 0 0;
  color: #eef4ff;
  font-size: 20px;
  letter-spacing: -.025em;
}
.vm-media-tag {
  padding: 6px 9px;
  border: 1px solid rgba(85, 214, 158, .25);
  border-radius: 999px;
  color: #7fe2b4;
  font: 10px "DM Mono", monospace;
  letter-spacing: .08em;
}
.vm-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.vm-media-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(137, 164, 199, .16);
  border-radius: 13px;
  background: rgba(5, 10, 19, .55);
}
.vm-media-label {
  color: #8da8cc;
  font: 10px "DM Mono", monospace;
  letter-spacing: .09em;
}
.vm-media-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 11px 0 8px;
  color: #edf3fc;
  font-size: 16px;
}
.vm-media-card p {
  min-height: 73px;
  margin: 0 0 13px;
  color: #98a9bf;
  font-size: 12px;
  line-height: 1.65;
}
.vm-file-picker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(111, 166, 255, .36);
  border-radius: 9px;
  background: rgba(48, 91, 151, .17);
  color: #c7dcff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
}
.vm-file-picker:hover { background: rgba(48, 91, 151, .29); }
.vm-file-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.vm-file-picker input:disabled { cursor: not-allowed; }
.vm-iso-name {
  overflow: hidden;
  margin-top: 9px;
  color: #b7c5d8;
  font: 11px "DM Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vm-clear-iso {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
  font-size: 11px;
  padding: 9px 11px;
}
.vm-disk-led {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #58d8a0;
  box-shadow: 0 0 12px rgba(88, 216, 160, .45);
}
.vm-disk-spec {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(137, 164, 199, .12);
  color: #8294aa;
  font-size: 10px;
}
.vm-disk-spec strong {
  color: #c8d5e6;
  font-weight: 600;
  text-align: right;
}
.vm-usb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.vm-usb-actions .button {
  padding: 9px 11px;
  font-size: 11px;
}
.vm-usb-actions .text-link { font-size: 11px; }
.vm-usb-warning {
  display: block;
  margin-top: 11px;
  color: #dbb986;
  font-size: 10px;
  line-height: 1.5;
}
.vm-media-note {
  margin-top: 13px;
  padding: 11px 13px;
  border: 1px solid rgba(245, 185, 93, .18);
  border-radius: 10px;
  background: rgba(96, 67, 25, .1);
  color: #bcae97;
  font-size: 11px;
  line-height: 1.65;
}
.vm-media-note strong { color: #f0cc91; }
@media (max-width: 900px) {
  .vm-media-grid { grid-template-columns: 1fr 1fr; }
  .vm-media-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .vm-media-panel { margin: 12px 8px 14px; padding: 13px; }
  .vm-media-grid { grid-template-columns: 1fr; }
  .vm-media-card:last-child { grid-column: auto; }
  .vm-media-card p { min-height: auto; }
  .vm-media-heading { align-items: flex-start; flex-direction: column; }
  .vm-disk-spec { font-size: 9px; }
}
