.systemup-panel {
  position: relative;
  padding: 24px;
}

.systemup-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
}

.systemup-meta-card,
.systemup-stage-card {
  border: 1px solid #d9e4f2;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 20px;
}

.systemup-section-head h2,
.systemup-note-panel h2 {
  margin: 0;
  font-size: 20px;
  color: #10233e;
}

.systemup-section-head p {
  margin: 8px 0 0;
  color: #5e6d83;
  line-height: 1.75;
}

.systemup-tip {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ebf4ff;
  color: #27507f;
}

.systemup-tip.is-error {
  background: #fff1f2;
  color: #b42318;
}

.systemup-lang-switch {
  display: inline-flex;
  gap: 8px;
  margin-top: 16px;
  padding: 6px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #f8fbff;
}

.systemup-lang-switch button,
.systemup-actions button,
.systemup-card,
.systemup-overlay-bar button {
  border: 0;
  font: inherit;
}

.systemup-lang-switch button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: transparent;
  color: #52657f;
  cursor: pointer;
}

.systemup-lang-switch button.is-active {
  background: #ffffff;
  color: #0f2d53;
  box-shadow: 0 8px 18px rgba(15, 45, 83, 0.12);
}

.systemup-selected-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f2745 0%, #1e4d77 100%);
  color: #ffffff;
}

.systemup-selected-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.systemup-selected-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.systemup-selected-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.systemup-selected-card .meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.systemup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.systemup-primary,
.systemup-secondary,
.systemup-ghost {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.systemup-primary {
  background: linear-gradient(135deg, #0e7490 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.systemup-secondary {
  background: #eef5ff;
  color: #20426f;
}

.systemup-ghost {
  background: #f5f7fb;
  color: #5b6980;
}

.systemup-primary:hover,
.systemup-secondary:hover,
.systemup-ghost:hover,
.systemup-card:hover {
  transform: translateY(-1px);
}

.systemup-facts {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #4a5b72;
  line-height: 1.8;
}

.systemup-stage {
  min-height: 320px;
  margin-top: 16px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #d9e4f2;
  background: #0b1220;
}

.systemup-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.systemup-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #dbe5f0;
  text-align: left;
  cursor: pointer;
}

.systemup-card.is-active {
  border-color: #2563eb;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.systemup-card strong {
  color: #11253f;
  font-size: 15px;
}

.systemup-card span {
  color: #63758d;
  font-size: 13px;
}

.systemup-thumb {
  position: relative;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.systemup-preview-screen,
.systemup-fullscreen-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.screen-apple {
  background: #111111;
  color: #ffffff;
}

.screen-xp {
  background: linear-gradient(180deg, #2159bb 0%, #3674d8 100%);
  color: #ffffff;
}

.screen-vista {
  background: linear-gradient(135deg, #87c96d 0%, #3ca8c0 60%, #2d6ab4 100%);
  color: #ffffff;
}

.screen-win7 {
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.18), transparent 20%), linear-gradient(135deg, #0f71c9 0%, #0152a2 100%);
  color: #ffffff;
}

.screen-win8 {
  background: linear-gradient(180deg, #0c5ea9 0%, #19479a 100%);
  color: #ffffff;
}

.screen-win10 {
  background: #0d0d0d;
  color: #ffffff;
}

.screen-win11 {
  background: linear-gradient(180deg, #0f1434 0%, #112e72 100%);
  color: #ffffff;
}

.screen-bsod {
  background: #1f77d0;
  color: #ffffff;
}

.screen-ubuntu {
  background: linear-gradient(135deg, #4d2a48 0%, #9b3452 100%);
  color: #ffffff;
}

.screen-debian {
  background: #111111;
  color: #f1f1f1;
}

.screen-centos {
  background: #0d1725;
  color: #d8e2f1;
}

.screen-core {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  text-align: center;
}

.screen-apple .screen-core::before {
  content: "";
  font-size: 40px;
  margin-bottom: 20px;
}

.screen-progress {
  width: min(360px, 78%);
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  margin: 16px auto 0;
}

.screen-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff 0%, #a5d8ff 100%);
}

.screen-percent {
  font-size: clamp(42px, 12vw, 110px);
  font-weight: 700;
  line-height: 1;
}

.screen-copy {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.screen-subcopy {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
}

.screen-window {
  width: min(560px, 88%);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #1e293b;
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.22);
  overflow: hidden;
}

.screen-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 14px;
}

.screen-window-body {
  padding: 26px 24px 30px;
  text-align: left;
}

.screen-window-body strong {
  display: block;
  font-size: 22px;
  color: #0f172a;
}

.screen-window-body p {
  margin: 10px 0 0;
  color: #475569;
  line-height: 1.7;
}

.screen-terminal {
  width: min(620px, 92%);
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.44);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-family: Consolas, Monaco, monospace;
  font-size: 14px;
  line-height: 1.75;
  text-align: left;
}

.screen-terminal strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
}

.screen-terminal code {
  display: block;
  color: #bfdbfe;
  white-space: pre-wrap;
}

.screen-bsod .screen-core {
  justify-items: start;
  text-align: left;
}

.screen-bsod .screen-core strong {
  font-size: clamp(52px, 14vw, 140px);
  line-height: 1;
}

.screen-bsod .screen-copy,
.screen-bsod .screen-subcopy {
  max-width: 760px;
}

.systemup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #000000;
}

.systemup-overlay-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.72);
}

.systemup-overlay-bar button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
}

.systemup-overlay-stage {
  width: 100%;
  height: 100%;
}

.systemup-note-panel .tool-note-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #6b4d2d;
  line-height: 1.85;
}

@media (max-width: 1180px) {
  .systemup-layout {
    grid-template-columns: 1fr;
  }

  .systemup-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .systemup-panel {
    padding: 16px;
  }

  .systemup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .systemup-stage {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .systemup-grid {
    grid-template-columns: 1fr;
  }

  .systemup-actions {
    flex-direction: column;
  }

  .systemup-actions button {
    width: 100%;
  }
}
