/* ================================================================
 * Plantão do Técnico · Simulador Visual de Formatação Windows
 * Estilos modulares das eras: BIOS Legacy, UEFI, XP, 7, 10 e 11.
 * ================================================================ */

.win-slot { margin: 10px 0 6px; }
.win-slot, .win-slot * { box-sizing: border-box; }

/* ---------- Ficha rápida do cliente (parâmetros pedidos visíveis) ---------- */
.win-ficha {
  background: #f4f7fb;
  border: 2px solid #c6d2df;
  border-radius: 8px;
  padding: 9px 11px;
  margin-bottom: 10px;
  color: #16212e;
}
.win-ficha-tit {
  font: 800 11px/1.2 var(--ap-fonte);
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #365273;
  margin-bottom: 6px;
}
.win-ficha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
}
.win-ficha-item {
  background: #fff;
  border: 1px solid #d5dfea;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 13px;
  line-height: 1.3;
}
.win-ficha-item small {
  display: block;
  font-size: 11px;
  color: #5b6b7d;
  font-weight: 700;
}
.win-ficha-item b {
  color: #0b3d91;
  word-break: break-word;
}

/* ---------- Moldura do monitor ---------- */
.win-mon {
  background: #1a202c;
  border: 3px solid #0e131b;
  border-radius: 10px;
  padding: 10px 10px 6px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .28);
  color: #f8fafc;
}
.win-screen {
  border-radius: 5px;
  overflow: hidden;
  border: 2px solid #0b0f17;
  min-height: 290px;
  display: flex;
  flex-direction: column;
}
.win-bezel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 4px 1px;
  font: 700 11px var(--ap-fonte);
  color: #94a3b8;
  letter-spacing: .4px;
}
.win-led-wrap { display: inline-flex; align-items: center; gap: 6px; }
.win-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* ---------- Controles comuns dentro das telas ---------- */
.win-pad { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.win-h { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 800; }
.win-sub { margin: 0; font-size: 13.5px; line-height: 1.45; }
.win-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.win-btn {
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 8px 13px;
  min-height: 38px;
  font: 700 13.5px/1.2 var(--ap-fonte);
  cursor: pointer;
  transition: transform .08s ease, filter .12s ease;
}
.win-btn:hover:not(:disabled) { filter: brightness(1.06); }
.win-btn:active:not(:disabled) { transform: translateY(1px); }
.win-btn:disabled { opacity: .48; cursor: not-allowed; }
.win-field {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}
.win-field small { font-weight: 500; opacity: .85; }
.win-field input,
.win-field select {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 5px;
  border: 2px solid #94a3b8;
  font: 600 14px var(--ap-fonte);
  background: #fff;
  color: #0f172a;
}
.win-field.err input,
.win-field.err select {
  border-color: #dc2626;
  background: #fef2f2;
}
.win-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

/* ================================================================
 * ERA 1: BIOS LEGACY (Award / AMI azul clássica)
 * ================================================================ */
.win-era-bios .win-screen {
  background: #0000aa;
  color: #f1f5f9;
  font-family: Consolas, "Courier New", monospace;
}
.win-bios-bar {
  background: #c8d0dc;
  color: #000078;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  border-bottom: 2px solid #000068;
}
.win-bios-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 10px 0;
  border-bottom: 2px solid #94a3b8;
  background: #00008e;
}
.win-bios-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  padding: 6px 12px;
  font: 700 13px Consolas, "Courier New", monospace;
  cursor: pointer;
}
.win-bios-tab.ativo {
  background: #ffe652;
  color: #000078;
}
.win-tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
  flex: none;
}
.win-bios-tab.ativo .win-tab-dot { background: #c2410c; }
.win-bios-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 9px;
  border: 1px dashed #6078c8;
  background: rgba(0, 0, 0, .14);
}
.win-bios-item small {
  display: block;
  color: #bfdbfe;
  font-size: 12px;
  margin-top: 2px;
}
.win-bios-val {
  border: 2px solid #ffe652;
  background: #000070;
  color: #ffe652;
  padding: 5px 10px;
  font: 700 13px Consolas, "Courier New", monospace;
  cursor: pointer;
}
.win-bios-val.fixo {
  cursor: default;
  border-style: dashed;
  opacity: .82;
}
.win-bios-bootrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #6078c8;
  background: #000084;
  font-size: 13px;
}
.win-bios-bootrow.primeiro {
  border-color: #ffe652;
  background: #001090;
  color: #ffe652;
}
.win-bios-foot {
  background: #c8d0dc;
  color: #000078;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
}
.win-btn-bios {
  background: #ffe652;
  color: #000078;
  border-color: #000078;
  font-family: Consolas, "Courier New", monospace;
}

/* ================================================================
 * ERA 2: UEFI MODERNA
 * ================================================================ */
.win-era-uefi .win-screen {
  background: linear-gradient(180deg, #0c1729, #10203a);
  color: #e2e8f0;
  font-family: var(--ap-fonte);
}
.win-era-uefi .win-bios-bar {
  background: #091220;
  color: #38bdf8;
  border-bottom: 2px solid #1e3a5f;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.win-era-uefi .win-bios-tabs {
  background: #11223d;
  border-bottom: 2px solid #1e3a5f;
}
.win-era-uefi .win-bios-tab {
  font-family: var(--ap-fonte);
  color: #94a3b8;
  border-radius: 6px 6px 0 0;
}
.win-era-uefi .win-bios-tab.ativo {
  background: #38bdf8;
  color: #081221;
}
.win-era-uefi .win-bios-item {
  border: 1px solid #264066;
  border-radius: 6px;
  background: rgba(15, 31, 56, .85);
}
.win-era-uefi .win-bios-item small { color: #93c5fd; }
.win-era-uefi .win-bios-val {
  border-radius: 20px;
  border-color: #38bdf8;
  background: #162a4a;
  color: #e0f2fe;
  font-family: var(--ap-fonte);
}
.win-era-uefi .win-bios-val.on {
  background: #15803d;
  border-color: #4ade80;
  color: #fff;
}
.win-era-uefi .win-bios-val.off {
  background: #334155;
  border-color: #64748b;
  color: #e2e8f0;
}
.win-era-uefi .win-bios-bootrow {
  border: 1px solid #264066;
  border-radius: 6px;
  background: #122340;
}
.win-era-uefi .win-bios-bootrow.primeiro {
  border-color: #38bdf8;
  background: #16325c;
  color: #e0f2fe;
}
.win-era-uefi .win-bios-foot {
  background: #091220;
  color: #cbd5e1;
  border-top: 2px solid #1e3a5f;
}
.win-btn-uefi {
  background: #38bdf8;
  color: #081221;
  border-color: #7dd3fc;
}

/* ================================================================
 * ERA 3: WINDOWS XP TEXTO (azul clássico) E LUNA GUI
 * ================================================================ */
.win-era-xp .win-screen {
  background: #0000a8;
  color: #f8fafc;
  font-family: Consolas, "Courier New", monospace;
}
.win-xp-top {
  padding: 8px 12px 6px;
  border-bottom: 3px double #cbd5e1;
  font-weight: 700;
  font-size: 14px;
  color: #e2e8f0;
}
.win-xp-box {
  border: 2px double #cbd5e1;
  padding: 8px;
  background: #000090;
  display: grid;
  gap: 5px;
}
.win-xp-status {
  background: #d4d0c8;
  color: #0f172a;
  padding: 7px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}
.win-xp-prog {
  background: #d4d0c8;
  color: #000080;
  border: 3px double #000080;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.win-xp-bar {
  height: 20px;
  border: 2px solid #000080;
  background: #000080;
  padding: 2px;
}
.win-xp-bar i {
  display: block;
  height: 100%;
  background: #f8d820;
  transition: width .25s linear;
}

.win-era-xp-gui .win-screen {
  background: #ece9d8;
  color: #111827;
}
.win-xp-gui-top {
  background: linear-gradient(180deg, #003399, #245edb);
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 15px;
  border-bottom: 2px solid #ff9900;
}
.win-xp-gui-foot {
  background: #245edb;
  color: #fff;
  padding: 8px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 2px solid #003399;
}
.win-btn-xp-go {
  background: linear-gradient(180deg, #52b74a, #2f8c28);
  color: #fff;
  border-color: #1e5f1a;
}

/* ================================================================
 * ERA 4: WINDOWS 7 AERO
 * ================================================================ */
.win-era-w7 .win-screen {
  background: linear-gradient(135deg, #1b6ca8 0%, #144d7a 55%, #1d8a88 100%);
  color: #0f172a;
  padding: 12px;
}
.win-w7-win {
  background: rgba(255, 255, 255, .95);
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.win-w7-top {
  background: linear-gradient(180deg, #d7ecfb 0%, #b5d8f3 100%);
  color: #0b2d52;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13.5px;
  border-bottom: 1px solid #8ab9de;
}
.win-btn-w7 {
  background: linear-gradient(180deg, #f2f8fd, #cfe4f7);
  color: #0b2d52;
  border-color: #5b9bd5;
}
.win-btn-w7-pri {
  background: linear-gradient(180deg, #3a8ee6, #1864ab);
  color: #fff;
  border-color: #0d47a1;
}

/* ================================================================
 * ERA 5: WINDOWS 10 FLUENT / SETUP
 * ================================================================ */
.win-era-w10 .win-screen {
  background: linear-gradient(160deg, #3b1c7a 0%, #24104d 100%);
  color: #fff;
  padding: 12px;
}
.win-era-w10.win-oobe .win-screen {
  background: linear-gradient(160deg, #0078d7 0%, #005a9e 100%);
}
.win-w10-card {
  background: #fff;
  color: #16212e;
  border-radius: 4px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.win-w10-top {
  font-weight: 800;
  font-size: 13px;
  color: #0078d7;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 6px;
}
.win-btn-w10 {
  background: #0078d7;
  color: #fff;
  border-color: #005a9e;
  border-radius: 3px;
}
.win-btn-w10-sec {
  background: #e2e8f0;
  color: #16212e;
  border-color: #cbd5e1;
  border-radius: 3px;
}

/* ================================================================
 * ERA 6: WINDOWS 11 MICA / BLOOM
 * ================================================================ */
.win-era-w11 .win-screen {
  background: radial-gradient(circle at 20% 20%, #3b82f6 0%, #1d4ed8 46%, #0f172a 100%);
  color: #111827;
  padding: 12px;
}
.win-w11-card {
  background: rgba(243, 246, 251, .97);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .32);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.win-w11-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  color: #0067c0;
  border-bottom: 1px solid #dbe4f0;
  padding-bottom: 6px;
}
.win-btn-w11 {
  background: #0067c0;
  color: #fff;
  border-color: #004e92;
  border-radius: 8px;
}
.win-btn-w11-sec {
  background: #fff;
  color: #16212e;
  border-color: #cbd5e1;
  border-radius: 8px;
}

/* ---------- Subtela POST / cartões de tipo de instalação ---------- */
.win-post {
  background: #05070b;
  color: #e2e8f0;
  font-family: Consolas, "Courier New", monospace;
  padding: 16px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.win-post-txt {
  margin: 0;
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.5;
}
.win-choice-grid {
  display: grid;
  gap: 9px;
}
.win-choice-card {
  text-align: left;
  width: 100%;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  padding: 11px 13px;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
  display: grid;
  gap: 3px;
}
.win-choice-card:hover:not(:disabled) {
  border-color: #0067c0;
  background: #eff6ff;
}
.win-choice-card strong { font-size: 14.5px; }
.win-choice-card span { font-size: 12.5px; color: #475569; line-height: 1.35; }
.win-era-xp .win-choice-card {
  background: #000084;
  border-color: #cbd5e1;
  color: #fff;
  border-radius: 0;
}
.win-era-xp .win-choice-card span { color: #bfdbfe; }
.win-era-xp .win-choice-card:hover:not(:disabled) {
  background: #ffe652;
  color: #000078;
}
.win-era-xp .win-choice-card:hover:not(:disabled) span { color: #000078; }

.win-check-box {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.win-check-box input { width: 18px; height: 18px; accent-color: #0067c0; }
.win-era-xp .win-check-box {
  background: #000084;
  color: #ffe652;
  border-color: #cbd5e1;
}

/* ---------- Tabela de partições (MBR / GPT) ---------- */
.win-part-wrap {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  color: #0f172a;
}
.win-era-xp .win-part-wrap {
  background: #00008e;
  color: #fff;
  border: 2px solid #cbd5e1;
  border-radius: 0;
}
.win-part-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 78px 72px minmax(92px, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
  color: inherit;
  padding: 9px 10px;
  font: 600 13px/1.3 var(--ap-fonte);
  cursor: pointer;
}
.win-part-row:last-child { border-bottom: 0; }
.win-part-row.sel {
  background: #dbeafe;
  outline: 2px solid #1d4ed8;
  outline-offset: -2px;
}
.win-era-xp .win-part-row {
  font-family: Consolas, "Courier New", monospace;
  border-bottom-color: #4f67c4;
}
.win-era-xp .win-part-row.sel {
  background: #ffe652;
  color: #000078;
  outline: 0;
}
.win-part-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
}
.win-part-tag.antiga { background: #fee2e2; color: #991b1b; }
.win-part-tag.livre { background: #e2e8f0; color: #334155; }
.win-part-tag.ok { background: #dcfce7; color: #166534; }
.win-part-tag.raw { background: #fef3c7; color: #92400e; }
.win-part-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

/* ---------- Diagnóstico bloqueio Win 11 & Pós-configuração ---------- */
.win-diag-list { display: grid; gap: 7px; }
.win-diag-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 2px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}
.win-diag-item.marcado {
  border-color: #b45309;
  background: #fffbeb;
}
.win-diag-item.ok-item {
  border-color: #16a34a;
  background: #f0fdf4;
}
.win-badge {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}
.win-badge.err { background: #fee2e2; color: #991b1b; }
.win-badge.warn { background: #fef3c7; color: #92400e; }
.win-badge.ok { background: #dcfce7; color: #166534; }

.win-sec-box {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f8fafc;
  display: grid;
  gap: 7px;
}
.win-era-xp-gui .win-sec-box { background: #fff; border-color: #b6b199; }
.win-sec-tit {
  font: 800 12px var(--ap-fonte);
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #334155;
}
.win-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 13px;
}
.win-era-xp-gui .win-task-row { background: #f8f7f2; }

/* ---------- Progresso da instalação ---------- */
.win-install-panel {
  display: grid;
  gap: 10px;
  padding: 8px 4px;
}
.win-install-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
}
.win-spin {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 103, 192, .22);
  border-top-color: #0067c0;
  border-radius: 50%;
  animation: win-gira .8s linear infinite;
  flex: none;
}
@keyframes win-gira { to { transform: rotate(360deg); } }

/* ================================================================
 * DESKTOP VIVO (XP · 7 · 10 · 11)
 * Camada de ambientação dentro de .win-screen: wallpaper, ícones,
 * janelas arrastáveis, barra de tarefas com relógio, menu Iniciar,
 * apps e boot screen. O diálogo da aula é uma janela desta camada.
 * ================================================================ */

/* ---------- moldura/tela ---------- */
.win-mon-desktop { padding: 8px 8px 5px; }
.win-screen-shell {
  display: block;
  position: relative;
  height: 500px;
  min-height: 0;
  padding: 0;
  border-radius: 4px;
  background: #000;
  color: #111;
  isolation: isolate;
  container-type: inline-size;
}
.win-desktop {
  --wf: "Segoe UI", Tahoma, Verdana, sans-serif;
  --tb: 34px;
  position: absolute;
  inset: 0;
  overflow: hidden;
  font: 12px/1.35 var(--wf);
  user-select: none;
  -webkit-user-select: none;
  z-index: 0;
}
.win-desktop button { font-family: inherit; }
.win-desktop :focus-visible { outline: 2px solid #4d9ad8; outline-offset: 1px; }

/* ---------- wallpaper ---------- */
.win-wall { position: absolute; inset: 0; overflow: hidden; }
.win-wall i { position: absolute; display: block; }

/* ---------- ícones do desktop ---------- */
.win-desk-icons {
  position: absolute;
  left: 6px;
  top: 6px;
  display: grid;
  gap: 3px;
  width: 78px;
  z-index: 1;
}
.win-desk-ic {
  width: 78px;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 4px 2px 5px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85);
  font-size: 10.5px;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}
.win-desk-ic span { overflow-wrap: anywhere; }
.win-desk-ic:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.win-desk-ic.sel { background: rgba(46, 121, 214, .5); border-color: rgba(180, 215, 255, .85); }
.win-desk-ic.sel span { background: rgba(19, 90, 190, .85); }
.win-ic { display: inline-flex; width: 16px; height: 16px; flex: none; }
.win-ic svg { width: 100%; height: 100%; display: block; }
.win-ic.gigante { width: 32px; height: 32px; }
.win-ic.mini { width: 13px; height: 13px; }

/* ---------- janelas ---------- */
.win-janelas { position: absolute; left: 0; right: 0; top: 0; bottom: var(--tb); z-index: 2; }
.win-janela {
  position: absolute;
  display: flex;
  flex-direction: column;
  max-height: calc(100% - 30px);
  min-width: 190px;
  overflow: hidden;
  z-index: 20;
}
.win-janela-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  cursor: move;
  touch-action: none;
}
.win-janela-ic { display: inline-flex; width: 14px; height: 14px; flex: none; }
.win-janela-ic svg { width: 100%; height: 100%; }
.win-janela-tit {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}
.win-janela-btns { display: inline-flex; gap: 2px; flex: none; }
.win-jb {
  position: relative;
  width: 21px;
  height: 19px;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 3px;
}
.win-jb::before, .win-jb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
}
.win-jb.min::before { width: 9px; height: 2px; transform: translate(-50%, 3px); }
.win-jb.max::before { width: 9px; height: 8px; transform: translate(-50%, -50%); background: none; border: 2px solid currentColor; border-radius: 1px; }
.win-jb.close::before { width: 10px; height: 2px; transform: translate(-50%, -50%) rotate(45deg); }
.win-jb.close::after { width: 10px; height: 2px; transform: translate(-50%, -50%) rotate(-45deg); }
.win-janela-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}
.win-janela-body > .win-pad { min-height: 100%; }

/* ---------- barra de tarefas ---------- */
.win-taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--tb);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  z-index: 30;
}
.win-tb-start { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.win-tasks { display: flex; align-items: center; gap: 3px; min-width: 0; overflow: hidden; }
.win-task {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 148px;
  height: calc(var(--tb) - 8px);
  padding: 0 8px;
  border: 0;
  cursor: pointer;
  font-size: 11.5px;
  overflow: hidden;
}
.win-task span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win-task.ativo { font-weight: 700; }
.win-tray {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 5px;
  height: calc(var(--tb) - 6px);
  flex: none;
}
.win-tray-btn { border: 0; background: transparent; padding: 2px; cursor: pointer; opacity: .9; }
.win-tray-btn:hover { opacity: 1; }
.win-clock { display: grid; justify-items: center; align-content: center; line-height: 1.05; padding: 0 2px; }
.win-clock b { font-weight: 600; font-size: 11.5px; }
.win-clock span { font-size: 9px; opacity: .85; }

/* ---------- menu iniciar ---------- */
.win-startmenu {
  position: absolute;
  z-index: 40;
  overflow: auto;
  overscroll-behavior: contain;
}
.win-sm-item {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 5px 7px;
  font-size: 12px;
  color: inherit;
  cursor: pointer;
  border-radius: 3px;
}
.win-sm-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-sm-item.inerte { opacity: .62; }
.win-sm-tit { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; opacity: .7; padding: 4px 7px 2px; }
.win-sm-sep { height: 1px; margin: 5px 7px; background: currentColor; opacity: .18; }

/* ---------- toast ---------- */
.win-toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--tb) + 12px);
  transform: translateX(-50%) translateY(6px);
  z-index: 45;
  max-width: 82%;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(20, 24, 32, .9);
  color: #f8fafc;
  font-size: 11.5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.win-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- marca d'água de versão ---------- */
.win-marca {
  position: absolute;
  right: 10px;
  bottom: calc(var(--tb) + 6px);
  font-size: 10px;
  color: rgba(255, 255, 255, .62);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  letter-spacing: .2px;
  pointer-events: none;
  z-index: 1;
}

/* ---------- boot ---------- */
.win-boot {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  opacity: 1;
  transition: opacity .55s ease .1s;
  pointer-events: none;
}
.boot-ok .win-boot { opacity: 0; }

/* ---------- conteúdo das janelas (comum) ---------- */
.win-desktop .win-pad { padding: 11px; gap: 7px; }
.win-desktop .win-h { font-size: 14px; }
.win-desktop .win-sub { font-size: 12px; }
.win-desktop .win-btn { min-height: 28px; padding: 5px 10px; font-size: 11.5px; border-width: 1px; }
.win-desktop .win-field { font-size: 12px; }
.win-desktop .win-field input, .win-desktop .win-field select { min-height: 28px; padding: 4px 7px; font-size: 12.5px; border-width: 1px; }
.win-desktop .win-badge { font-size: 10.5px; padding: 2px 7px; }
.win-desktop .win-sec-box { padding: 7px; gap: 4px; }
.win-desktop .win-sec-tit { font-size: 10.5px; }
.win-desktop .win-task-row { padding: 4px 6px; font-size: 11.5px; }
.win-desktop .win-part-row { padding: 7px 8px; font-size: 12px; }
.win-desktop .win-task-row .win-btn,
.win-desktop .win-row .win-btn { min-height: 24px !important; padding: 2px 8px !important; font-size: 11px !important; }

/* barras de rolagem por época */
.win-janela-body { scrollbar-width: thin; }
.win-janela-body::-webkit-scrollbar { width: 12px; height: 12px; }
.win-janela-body::-webkit-scrollbar-track { background: #eef1f5; }
.win-janela-body::-webkit-scrollbar-thumb { background: #b9c4d0; border: 2px solid #eef1f5; border-radius: 7px; }
.is-xp .win-janela-body::-webkit-scrollbar { width: 15px; }
.is-xp .win-janela-body::-webkit-scrollbar-track { background: #f0eee4; }
.is-xp .win-janela-body::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #dfe7f2, #b7c8de); border: 1px solid #8ba0bd; border-radius: 2px; }
.is-xp .win-janela-body { scrollbar-color: #b7c8de #f0eee4; }
.is-w7 .win-janela-body::-webkit-scrollbar-thumb { background: rgba(150, 190, 225, .85); border: 2px solid rgba(238, 246, 253, .9); border-radius: 6px; }
.is-w10 .win-janela-body::-webkit-scrollbar { width: 10px; }
.is-w10 .win-janela-body::-webkit-scrollbar-track { background: #f1f1f1; }
.is-w10 .win-janela-body::-webkit-scrollbar-thumb { background: #c1c1c1; border: 0; border-radius: 0; }
.is-w10 .win-janela-body::-webkit-scrollbar-thumb:hover { background: #a5a5a5; }
.is-w11 .win-janela-body::-webkit-scrollbar { width: 9px; }
.is-w11 .win-janela-body::-webkit-scrollbar-track { background: transparent; }
.is-w11 .win-janela-body::-webkit-scrollbar-thumb { background: rgba(90, 90, 90, .45); border: 0; border-radius: 5px; }

/* ---------- app: Explorer ---------- */
.win-exp { display: flex; flex-direction: column; min-height: 100%; font-size: 12px; }
.win-exp-bar { display: flex; align-items: center; gap: 6px; padding: 5px 7px; border-bottom: 1px solid rgba(0, 0, 0, .16); }
.win-exp-btn { width: 20px; height: 20px; border: 1px solid rgba(0, 0, 0, .22); background: #fff; border-radius: 2px; cursor: pointer; font-size: 14px; line-height: 1; color: #33475b; }
.win-exp-addr { flex: 1; min-width: 0; padding: 3px 7px; border: 1px solid rgba(0, 0, 0, .22); background: #fff; border-radius: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win-exp-find { font-size: 11px; opacity: .7; white-space: nowrap; }
.win-exp-main { display: flex; flex: 1; min-height: 0; }
.win-exp-nav { width: 130px; flex: none; padding: 7px 6px; border-right: 1px solid rgba(0, 0, 0, .12); font-size: 11.5px; overflow: auto; }
.win-exp-nav b { display: block; margin: 4px 0 2px; font-size: 11px; opacity: .8; }
.win-exp-link { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: inherit; font: inherit; padding: 2px 4px; border-radius: 2px; cursor: pointer; }
.win-exp-link:hover { text-decoration: underline; }
.win-exp-nav.xp { background: #6f9be8; color: #fff; }
.win-exp-nav.xp .win-exp-link { color: #fff; }
.win-exp-nav.xp .win-exp-navt { margin: 0 -6px 4px; padding: 3px 7px; font-size: 11px; font-weight: 800; background: linear-gradient(180deg, #fff, #d7e4f7); color: #0b3d91; }
.win-exp-nav.xp .win-exp-navb { padding: 2px 3px 8px; }
.win-exp-list { flex: 1; min-width: 0; padding: 6px; display: grid; align-content: start; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px; overflow: auto; background: #fff; }
.win-exp-item { display: flex; align-items: center; gap: 7px; padding: 4px 6px; border: 1px solid transparent; background: transparent; text-align: left; cursor: pointer; border-radius: 3px; color: inherit; }
.win-exp-item:hover { background: #e8f1fb; border-color: #b9d4ef; }
.win-exp-nome { display: grid; min-width: 0; font-size: 12px; }
.win-exp-nome small { font-size: 10.5px; opacity: .65; }
.win-exp-status { padding: 3px 8px; font-size: 10.5px; border-top: 1px solid rgba(0, 0, 0, .12); opacity: .8; }

/* ---------- app: Notepad ---------- */
.win-np { display: flex; flex-direction: column; min-height: 100%; }
.win-np-menu { display: flex; gap: 10px; padding: 3px 8px; font-size: 11.5px; border-bottom: 1px solid rgba(0, 0, 0, .14); }
.win-np-txt { flex: 1; min-height: 120px; resize: none; border: 0; outline: 0; padding: 8px 10px; font: 12px/1.45 Consolas, "Courier New", monospace; background: #fff; color: #111; }

/* ---------- app: Lixeira / Sistema ---------- */
.win-bin { display: grid; justify-items: center; gap: 6px; padding: 18px 14px; text-align: center; }
.win-bin b { font-size: 13.5px; }
.win-bin p { margin: 0; font-size: 12px; opacity: .7; max-width: 300px; }
.win-sys { padding: 12px; display: grid; gap: 10px; }
.win-sys-head { display: flex; align-items: center; gap: 10px; }
.win-sys-head b { display: block; font-size: 14px; }
.win-sys-head small { display: block; font-size: 11px; opacity: .65; }
.win-sys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.win-sys-grid div { padding: 6px 8px; border: 1px solid rgba(0, 0, 0, .13); background: rgba(255, 255, 255, .6); border-radius: 3px; }
.win-sys-grid small { display: block; font-size: 10px; opacity: .6; }
.win-sys-grid b { font-size: 12px; }
.win-sys-foot { margin: 0; font-size: 11px; opacity: .7; }

/* ================================================================
 * SKIN WINDOWS XP (Luna)
 * ================================================================ */
.win-desktop.is-xp { --wf: Tahoma, Verdana, "Segoe UI", sans-serif; --tb: 32px; color: #000; }
.is-xp .win-wall { background: linear-gradient(180deg, #1e58b8 0%, #3d82dd 32%, #79b6ef 55%, #b9dcfa 66%, #dcefff 100%); }
.is-xp .win-wall::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -14%;
  height: 54%;
  background: radial-gradient(130% 120% at 50% 0%, #8fc548 0%, #6aa82c 42%, #3f7a15 78%, #2c5a0e 100%);
  border-radius: 52% 52% 0 0 / 46% 46% 0 0;
}
.is-xp .win-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 55% at 24% 18%, rgba(255, 255, 255, .5), transparent 70%);
}
.is-xp .win-marca { color: rgba(255, 255, 255, .78); }

.is-xp .win-taskbar {
  background: linear-gradient(180deg, #4a8ce8 0%, #2a63d8 8%, #245edb 12%, #3f8bf2 46%, #2455c8 88%, #1c3fa0 100%);
  border-top: 2px solid #63a5ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
  color: #fff;
}
.is-xp .win-start {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: calc(var(--tb) - 4px);
  padding: 0 13px 0 8px;
  margin-right: 2px;
  border: 1px solid #14501f;
  border-radius: 2px 9px 3px 2px;
  background: linear-gradient(180deg, #79d26e 0%, #3ea335 45%, #2c8a26 62%, #217a1d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 1px 0 0 rgba(0, 0, 0, .2);
  color: #fff;
  font: italic 800 14px/1 Tahoma, Verdana, sans-serif;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .55);
  cursor: pointer;
}
.is-xp .win-start b { font-weight: 800; }
.win-flag-xp {
  width: 17px;
  height: 15px;
  display: block;
  background:
    linear-gradient(#f35325, #f35325) 0 0 / 7px 6px,
    linear-gradient(#81bc06, #81bc06) 9px 0 / 7px 6px,
    linear-gradient(#05a6f0, #05a6f0) 0 8px / 7px 6px,
    linear-gradient(#ffba08, #ffba08) 9px 8px / 7px 6px;
  background-repeat: no-repeat;
  transform: skewX(-6deg);
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
}
.is-xp .win-tasks { flex: 1; }
.is-xp .win-task {
  background: linear-gradient(180deg, #5c9df5 0%, #3c7fe8 10%, #2f6ed6 55%, #2a5fc0 100%);
  border: 1px solid #1b4fb0;
  border-radius: 2px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .35);
  color: #fff;
}
.is-xp .win-task.ativo {
  background: linear-gradient(180deg, #1c47a8 0%, #2a5fc8 40%, #3f7ae0 100%);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, .45);
}
.is-xp .win-tray { border-left: 1px solid #1b4fb0; background: linear-gradient(180deg, #2f7bdd, #1f52b8); color: #fff; }
.is-xp .win-tray-btn .win-ic svg { filter: brightness(1.25) saturate(.85); }
.is-xp .win-clock b { font-weight: 700; }

.is-xp .win-janela {
  background: #ece9d8;
  border: 3px solid #0054e3;
  border-top: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 2px 3px 10px rgba(0, 0, 0, .45);
  padding: 0 3px 3px;
}
.is-xp .win-janela.ativo { border-color: #0054e3; }
.is-xp .win-janela-top {
  margin: 0 -3px 3px;
  padding: 3px 4px 3px 7px;
  background: linear-gradient(180deg, #0997ff 0%, #0058e6 8%, #0054e3 38%, #0347c8 74%, #0a3fae 100%);
  border-radius: 7px 7px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .25);
  color: #fff;
  font: 700 11.5px/1.25 Tahoma, Verdana, sans-serif;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .5);
}
.is-xp .win-janela-btns { margin-left: auto; }
.is-xp .win-jb {
  width: 21px;
  height: 19px;
  border: 1px solid #fff;
  border-radius: 3px;
  color: #fff;
  background: linear-gradient(180deg, #4a92f5 0%, #2b6fdc 45%, #1d55b8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}
.is-xp .win-jb:hover { filter: brightness(1.15); }
.is-xp .win-jb.close { background: linear-gradient(180deg, #f08a7a 0%, #d8452f 45%, #b72a19 100%); }
.is-xp .win-janela-body { background: #ece9d8; }
.is-xp .win-exp-nav.xp { color: #fff; }
.is-xp .win-exp { background: #ece9d8; }
.is-xp .win-exp-bar { background: linear-gradient(180deg, #fdfdfd, #e3ddc8); }
.is-xp .win-exp-addr { border-color: #7f9db9; }
.is-xp .win-exp-find { color: #333; }
.is-xp .win-exp-status { background: #ece9d8; }
.is-xp .win-np-menu { background: #ece9d8; }
.is-xp .win-sys-grid div { background: #fff; border-color: #aca899; }

.is-xp .win-startmenu {
  left: 3px;
  bottom: var(--tb);
  width: min(340px, 88%);
  background: #fff;
  border: 1px solid #0b3d91;
  border-radius: 6px 6px 0 0;
  box-shadow: 2px 4px 14px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.win-sm-xp .win-sm-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #1e63dd 0%, #0b47b8 60%, #0a3fa6 100%);
  color: #fff;
  font: 700 13px Tahoma, Verdana, sans-serif;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .5);
  border-bottom: 2px solid #ff9b1a;
}
.win-sm-xp .win-sm-hdr .win-ic { width: 22px; height: 22px; padding: 2px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.win-sm-cols { display: flex; gap: 0; }
.win-sm-col { width: 54%; padding: 5px 4px 7px; }
.win-sm-col-r { width: 46%; background: #d3e5fa; border-left: 1px solid #a7c8ef; }
.win-sm-xp .win-sm-item:hover { background: #2f6ed6; color: #fff; }
.win-sm-xp .win-sm-col-r .win-sm-item { font-size: 11.5px; padding: 4px 6px; }
.win-sm-xp .win-sm-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 5px 8px;
  background: linear-gradient(180deg, #3f8bf2, #1e56bc);
  border-top: 1px solid #0b3d91;
}
.win-sm-xp .win-sm-foot button { border: 0; background: transparent; color: #fff; font: 700 11.5px Tahoma, sans-serif; cursor: pointer; text-shadow: 1px 1px 1px rgba(0, 0, 0, .5); }
.win-sm-xp .win-sm-foot button:hover { text-decoration: underline; }

/* XP: conteúdo da aula (janela do Gerenciador de Dispositivos) */
.is-xp .win-h { font-size: 12.5px; color: #000; }
.is-xp .win-sec-box { background: #fff; border: 1px solid #aca899; border-radius: 0; }
.is-xp .win-sec-tit { color: #0b3d91; font-size: 11px; }
.is-xp .win-task-row { background: #fff; border: 1px solid #e0dccb; border-radius: 0; }
.is-xp .win-badge { border-radius: 2px; }
.is-xp .win-btn-xp {
  border-radius: 3px;
  border-color: #7f9db9;
  background: linear-gradient(180deg, #fdfdfd 0%, #f0ede1 45%, #e2dcc8 100%);
  color: #000;
  box-shadow: inset 0 1px 0 #fff;
}
.is-xp .win-btn-xp:hover:not(:disabled) { border-color: #3c7fb1; background: linear-gradient(180deg, #fff, #f6eecb); }
.is-xp .win-btn-xp-go {
  border-radius: 3px;
  border-color: #1e5f1a;
  background: linear-gradient(180deg, #7ad46f 0%, #3ea335 45%, #217a1d 100%);
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .35);
}

/* ================================================================
 * SKIN WINDOWS 7 (Aero glass)
 * ================================================================ */
.win-desktop.is-w7 { --wf: "Segoe UI", Tahoma, sans-serif; --tb: 34px; color: #0f172a; }
.is-w7 .win-wall {
  background:
    radial-gradient(70% 60% at 22% 14%, rgba(255, 255, 255, .85), transparent 60%),
    radial-gradient(80% 70% at 78% 82%, rgba(120, 230, 230, .5), transparent 65%),
    linear-gradient(150deg, #9fd6f5 0%, #4f9ad0 32%, #1c6a9e 62%, #0d3f63 100%);
}
.is-w7 .win-wall i.w1 {
  left: 12%; top: 18%; width: 46%; height: 40%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .75), transparent 70%);
  filter: blur(6px);
}
.is-w7 .win-wall i.w2 {
  right: -6%; bottom: -8%; width: 56%; height: 54%;
  background: radial-gradient(closest-side, rgba(150, 255, 240, .45), transparent 70%);
  filter: blur(10px);
}
.is-w7 .win-marca { color: rgba(255, 255, 255, .7); }
.is-w7 .win-taskbar {
  background: linear-gradient(180deg, rgba(58, 96, 120, .72) 0%, rgba(16, 38, 56, .82) 45%, rgba(10, 26, 40, .9) 100%);
  border-top: 1px solid rgba(255, 255, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 -2px 10px rgba(0, 0, 0, .35);
  backdrop-filter: blur(9px) saturate(1.1);
  color: #eaf4ff;
}
.is-w7 .win-start {
  width: 34px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #bfe8ff 0%, #3f9ae0 45%, #1b5f9e 78%, #0d3a63 100%);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .25), 0 0 14px rgba(120, 200, 255, .7), inset 0 2px 4px rgba(255, 255, 255, .75);
  cursor: pointer;
  margin: 0 4px 0 2px;
}
.is-w7 .win-orb7 {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  background:
    linear-gradient(#f35325, #f35325) 0 0 / 8px 8px,
    linear-gradient(#81bc06, #81bc06) 10px 0 / 8px 8px,
    linear-gradient(#05a6f0, #05a6f0) 0 10px / 8px 8px,
    linear-gradient(#ffba08, #ffba08) 10px 10px / 8px 8px;
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45));
  border-radius: 2px;
}
.is-w7 .win-tasks { flex: 1; }
.is-w7 .win-task {
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06) 55%, rgba(0, 0, 0, .18) 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.is-w7 .win-task.ativo {
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .16) 55%, rgba(0, 0, 0, .12) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 0 10px rgba(140, 210, 255, .45);
}
.is-w7 .win-task .win-ic svg { filter: brightness(1.7) saturate(.45); }
.is-w7 .win-tray {
  border-left: 1px solid rgba(255, 255, 255, .25);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .12));
  border-radius: 3px;
}
.is-w7 .win-tray-btn .win-ic svg { filter: brightness(1.5) saturate(.7); }
.is-w7 .win-janela {
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(242, 247, 252, .94);
  box-shadow: 0 0 0 1px rgba(20, 50, 80, .28), 0 16px 34px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .75);
  backdrop-filter: blur(7px) saturate(1.15);
}
.is-w7 .win-janela-top {
  padding: 5px 6px 5px 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(226, 241, 253, .9) 48%, rgba(200, 226, 246, .92) 100%);
  border-bottom: 1px solid rgba(120, 165, 200, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
  border-radius: 6px 6px 0 0;
  color: #0b2d52;
  font-size: 12px;
}
.is-w7 .win-janela-btns { margin-left: auto; gap: 3px; }
.is-w7 .win-jb {
  width: 24px;
  height: 17px;
  border-radius: 3px;
  border: 1px solid rgba(90, 135, 170, .7);
  color: #1a4b73;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(205, 229, 246, .9) 55%, rgba(170, 205, 232, .95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.is-w7 .win-jb.close { background: linear-gradient(180deg, #f6b3ab 0%, #dd5844 55%, #b93a28 100%); color: #fff; border-color: #a33322; }
.is-w7 .win-jb:hover { filter: brightness(1.08); }
.is-w7 .win-janela-body { background: rgba(255, 255, 255, .96); }
.is-w7 .win-startmenu {
  left: 3px;
  bottom: var(--tb);
  width: min(344px, 92%);
  background: rgba(238, 246, 253, .96);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(30, 70, 110, .35), 0 16px 36px rgba(0, 0, 0, .45);
  backdrop-filter: blur(10px) saturate(1.15);
  overflow: hidden;
}
.win-sm-7 { display: grid; grid-template-columns: minmax(0, 1fr) 168px; grid-template-areas: "prog links" "search foot"; }
.win-sm-7 .win-sm-7prog { grid-area: prog; padding: 7px 6px 2px; }
.win-sm-7 .win-sm-item:hover { background: linear-gradient(180deg, rgba(190, 226, 252, .95), rgba(150, 205, 245, .95)); border: 1px solid rgba(110, 175, 225, .9); padding: 4px 6px; }
.win-sm-7 .win-sm-7links {
  grid-area: links;
  padding: 6px 9px 8px;
  background: linear-gradient(180deg, rgba(228, 241, 252, .92), rgba(206, 228, 246, .92));
  border-left: 1px solid rgba(120, 160, 200, .35);
}
.win-sm-7 .win-sm-7user { display: flex; align-items: center; gap: 6px; padding: 1px 4px 6px; margin-bottom: 4px; border-bottom: 1px solid rgba(120, 160, 200, .3); font-size: 12px; }
.win-sm-7 .win-sm-7user .win-ic { width: 20px; height: 20px; }
.win-sm-7 .win-sm-7all { margin-top: 6px; padding: 5px 6px 1px; border-top: 1px solid rgba(120, 160, 200, .35); font-size: 11.5px; font-weight: 700; color: #14487a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-sm-7 .win-sm-item { padding: 3px 5px; font-size: 11.5px; }
.win-sm-7 .win-sm-7search { grid-area: search; display: flex; align-items: center; gap: 5px; padding: 6px 8px; border-top: 1px solid rgba(120, 160, 200, .4); background: rgba(255, 255, 255, .88); }
.win-sm-7 .win-sm-7search input { flex: 1; min-width: 0; border: 1px solid #9db9d2; border-radius: 3px; padding: 3px 6px; font-size: 11.5px; }
.win-sm-7 .win-sm-7foot { grid-area: foot; display: flex; align-items: center; justify-content: center; padding: 5px 8px; border-top: 1px solid rgba(120, 160, 200, .4); background: linear-gradient(180deg, rgba(198, 224, 244, .65), rgba(158, 198, 230, .8)); }
.win-sm-7 .win-sm-7foot button { border: 1px solid rgba(90, 135, 170, .7); border-radius: 3px; background: linear-gradient(180deg, #fdfefe, #d6e8f8); font-size: 11.5px; padding: 3px 10px; cursor: pointer; }

/* ================================================================
 * SKIN WINDOWS 10 (flat escuro)
 * ================================================================ */
.win-desktop.is-w10 { --wf: "Segoe UI", Tahoma, sans-serif; --tb: 34px; color: #1b1b1b; }
.is-w10 .win-wall {
  background:
    radial-gradient(64% 56% at 50% 42%, rgba(80, 160, 255, .38), transparent 70%),
    linear-gradient(160deg, #0b2a55 0%, #071a34 42%, #030d1c 100%);
}
.is-w10 .win-wall i.w1 {
  left: 50%; top: 47%; width: 40%; height: 44%;
  transform: translate(-50%, -50%) rotate(-2deg);
  background: linear-gradient(135deg, rgba(168, 226, 255, .9), rgba(52, 134, 214, .55) 55%, rgba(14, 48, 96, .25));
  box-shadow: 0 0 54px rgba(80, 170, 255, .5);
  border-radius: 3px;
}
.is-w10 .win-wall i.w1::before, .is-w10 .win-wall i.w1::after { content: ""; position: absolute; background: rgba(6, 20, 40, .92); }
.is-w10 .win-wall i.w1::before { left: 0; right: 0; top: 50%; height: 5px; margin-top: -2.5px; }
.is-w10 .win-wall i.w1::after { top: 0; bottom: 0; left: 50%; width: 5px; margin-left: -2.5px; }
.is-w10 .win-marca { color: rgba(255, 255, 255, .55); }
.is-w10 .win-taskbar {
  background: #1f1f1f;
  color: #fff;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .06);
}
.is-w10 .win-start { width: 38px; height: var(--tb); border: 0; background: transparent; cursor: pointer; display: inline-grid; place-items: center; }
.is-w10 .win-start:hover { background: rgba(255, 255, 255, .1); }
.win-logo10 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 16px; height: 16px; }
.win-logo10 i { display: block; background: #fff; }
.is-w10 .win-tb-ic { display: none; }
.is-w10 .win-tasks { flex: 1; }
.is-w10 .win-task { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: #eaeaea; height: var(--tb); }
.is-w10 .win-task .win-ic svg { filter: brightness(1.8) saturate(.3); }
.is-w10 .win-task:hover { background: rgba(255, 255, 255, .08); }
.is-w10 .win-task.ativo { background: rgba(255, 255, 255, .13); border-bottom-color: #4cc2ff; }
.is-w10 .win-tray { background: transparent; border: 0; }
.is-w10 .win-tray-btn .win-ic svg { filter: brightness(1.6) saturate(.4); }
.is-w10 .win-janela {
  background: #fff;
  border: 1px solid #8a8a8a;
  border-radius: 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}
.is-w10 .win-janela-top {
  padding: 4px 4px 4px 9px;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  color: #222;
  font-size: 11.5px;
  font-weight: 600;
  min-height: 26px;
}
.is-w10 .win-janela-tit { font-weight: 600; }
.is-w10 .win-janela-btns { margin-left: auto; gap: 0; align-self: stretch; }
.is-w10 .win-jb { width: 32px; height: 100%; min-height: 22px; border: 0; border-radius: 0; background: transparent; color: #333; }
.is-w10 .win-jb:hover { background: #e6e6e6; }
.is-w10 .win-jb.close:hover { background: #e81123; color: #fff; }
.is-w10 .win-janela-body { background: #fff; }
.is-w10 .win-startmenu {
  left: 2px;
  bottom: var(--tb);
  width: min(392px, 92%);
  max-height: calc(100% - var(--tb) - 8px);
  background: rgba(35, 35, 35, .97);
  color: #f3f3f3;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
}
.win-sm-10 { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "rail apps" "rail tiles"; }
.win-sm-10rail { grid-area: rail; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 9px 0; background: #1b1b1b; }
.win-sm-10rail .win-ic { width: 20px; height: 20px; }
.win-sm-10rail .win-ic svg { filter: brightness(1.5) saturate(.4); }
.win-sm-10foot-ic { display: grid; gap: 10px; opacity: .9; }
.win-sm-10apps { grid-area: apps; padding: 7px 5px 3px; }
.win-sm-10 .win-sm-item { color: #f3f3f3; border-radius: 2px; }
.win-sm-10 .win-sm-item:hover { background: rgba(255, 255, 255, .12); }
.win-sm-10 .win-sm-tit { color: #cfcfcf; font-size: 11px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.win-sm-10tiles { grid-area: tiles; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 46px; gap: 3px; padding: 4px 7px 10px; }
.win-tile { display: grid; place-items: center; align-content: center; gap: 2px; border: 0; color: #fff; cursor: pointer; font-size: 9.5px; text-align: center; padding: 3px; }
.win-tile .win-ic { width: 22px; height: 22px; }
.win-tile .win-ic svg { filter: brightness(2.2) saturate(.2); }
.win-tile span { opacity: .95; line-height: 1; }
.win-tile.t1 { background: #0078d7; grid-column: span 2; }
.win-tile.t2 { background: #2d7d46; }
.win-tile.t3 { background: #4c4a48; }
.win-tile.t4 { background: #5c2e91; }
.win-tile.t5 { background: #b7472a; grid-column: span 2; }
.win-tile:hover { filter: brightness(1.15); }

/* ================================================================
 * SKIN WINDOWS 11 (mica, centralizado)
 * ================================================================ */
.win-desktop.is-w11 { --wf: "Segoe UI Variable Display", "Segoe UI", Tahoma, sans-serif; --tb: 46px; color: #1a1a1a; }
.is-w11 .win-wall {
  background:
    radial-gradient(60% 54% at 68% 30%, rgba(168, 226, 255, .95), transparent 68%),
    radial-gradient(58% 50% at 28% 62%, rgba(214, 196, 255, .85), transparent 70%),
    linear-gradient(150deg, #cfe9ff 0%, #a7c9ee 38%, #7fa8dc 70%, #5c86c4 100%);
}
.is-w11 .win-wall i.w1 {
  left: 8%; top: 12%; width: 44%; height: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .98), rgba(186, 228, 255, .7) 55%, transparent 72%);
  border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
  filter: blur(1px);
}
.is-w11 .win-wall i.w2 {
  left: 4%; top: 26%; width: 52%; height: 46%;
  background: radial-gradient(closest-side, rgba(206, 184, 255, .8), transparent 70%);
  border-radius: 45% 55% 40% 60% / 60% 40% 60% 40%;
  filter: blur(4px);
}
.is-w11 .win-wall i.w3 {
  left: 20%; top: 16%; width: 24%; height: 30%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .98), rgba(255, 240, 250, .4) 60%, transparent 74%);
  border-radius: 50%;
  filter: blur(2px);
}
.is-w11 .win-marca { color: rgba(255, 255, 255, .8); }
.is-w11 .win-taskbar {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: 6px;
  width: min(96%, 560px);
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(243, 243, 243, .8);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .7);
  backdrop-filter: blur(16px) saturate(1.2);
  color: #1a1a1a;
  justify-content: center;
  padding: 0 6px;
}
.is-w11 .win-tb-start { gap: 2px; }
.is-w11 .win-start, .is-w11 .win-tb-ic { width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: #1a1a1a; }
.is-w11 .win-start:hover, .is-w11 .win-tb-ic:hover { background: rgba(0, 0, 0, .07); }
.is-w11 .win-tb-ic .win-ic svg { filter: saturate(.2) brightness(.55); }
.win-logo11 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5px; width: 15px; height: 15px; }
.win-logo11 i { display: block; background: #0f6cbd; border-radius: 2px; }
.is-w11 .win-tasks { flex: 0 1 auto; }
.is-w11 .win-task { background: transparent; border: 0; border-radius: 6px; color: #1a1a1a; height: 32px; }
.is-w11 .win-task .win-ic svg { filter: saturate(.3) brightness(.55); }
.is-w11 .win-task:hover { background: rgba(0, 0, 0, .07); }
.is-w11 .win-task.ativo { background: rgba(0, 0, 0, .09); }
.is-w11 .win-tray { position: absolute; right: 8px; top: 4px; height: 32px; background: transparent; border: 0; border-radius: 6px; }
.is-w11 .win-tray:hover { background: rgba(0, 0, 0, .05); }
.is-w11 .win-tray-btn .win-ic svg { filter: saturate(.25) brightness(.5); }
.is-w11 .win-clock b { font-size: 10.5px; }
.is-w11 .win-clock span { font-size: 9px; }
.is-w11 .win-janela {
  background: rgba(243, 243, 243, .95);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(255, 255, 255, .55);
  backdrop-filter: blur(20px) saturate(1.3);
}
.is-w11 .win-janela-top {
  padding: 5px 5px 5px 10px;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  color: #1a1a1a;
  font-size: 11.5px;
  min-height: 30px;
}
.is-w11 .win-janela-btns { margin-left: auto; gap: 1px; }
.is-w11 .win-jb { width: 34px; height: 24px; border: 0; border-radius: 4px; background: transparent; color: #444; }
.is-w11 .win-jb:hover { background: rgba(0, 0, 0, .08); }
.is-w11 .win-jb.close:hover { background: #c42b1c; color: #fff; }
.is-w11 .win-janela-body { background: rgba(255, 255, 255, .72); }
.is-w11 .win-startmenu {
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--tb) + 8px);
  width: min(404px, 94%);
  max-height: calc(100% - var(--tb) - 14px);
  background: rgba(243, 243, 243, .94);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(255, 255, 255, .5);
  backdrop-filter: blur(24px) saturate(1.3);
  padding: 10px;
  overflow: auto;
}
.win-sm-11search { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 6px; background: rgba(255, 255, 255, .8); }
.win-sm-11search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 12px; outline: 0; }
.win-sm-11 .win-sm-11tit { font-size: 11px; font-weight: 700; margin: 9px 2px 4px; opacity: .8; }
.win-sm-11grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.win-pin { display: grid; justify-items: center; gap: 4px; padding: 7px 3px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 10.5px; text-align: center; color: inherit; }
.win-pin .win-ic { width: 24px; height: 24px; }
.win-pin:hover { background: rgba(0, 0, 0, .06); }
.win-sm-11rec { display: grid; gap: 1px; }
.win-sm-11rec .win-sm-item { border-radius: 5px; }
.win-sm-11rec .win-sm-item:hover { background: rgba(0, 0, 0, .06); }
.win-sm-11foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(0, 0, 0, .1); font-size: 11.5px; }
.win-sm-11user { display: inline-flex; align-items: center; gap: 6px; }
.win-sm-11pw { width: 18px; height: 18px; opacity: .8; }

/* ================================================================
 * BOOT SCREENS — reproduções fiéis (XP / 7 / 10 / 11)
 * ================================================================ */

/* ---------- Windows XP ---------- */
.xp-boot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
}
.xp-boot-lock {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  margin-top: -34px;
}
.xp-flag {
  width: 62px;
  height: 54px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  transform: perspective(240px) rotateY(-10deg) rotate(-6deg);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .7));
}
.xp-flag i { display: block; }
.xp-flag i:nth-child(1) {
  background: linear-gradient(140deg, #ff7a57 0%, #ef3d12 58%, #b62c05 100%);
  clip-path: polygon(2% 4%, 98% 0, 100% 100%, 0 96%);
  border-radius: 3px 1px 1px 1px;
}
.xp-flag i:nth-child(2) {
  background: linear-gradient(140deg, #b4e33a 0%, #82b909 58%, #5f8b03 100%);
  clip-path: polygon(2% 0, 100% 6%, 98% 94%, 0 100%);
  border-radius: 1px 3px 1px 1px;
}
.xp-flag i:nth-child(3) {
  background: linear-gradient(140deg, #6fd0f8 0%, #12a5e6 58%, #0677ae 100%);
  clip-path: polygon(0 2%, 100% 0, 96% 100%, 4% 98%);
  border-radius: 1px 1px 1px 3px;
}
.xp-flag i:nth-child(4) {
  background: linear-gradient(140deg, #ffd95e 0%, #f7b309 58%, #b47c02 100%);
  clip-path: polygon(0 0, 100% 4%, 100% 98%, 4% 100%);
  border-radius: 1px 1px 3px 1px;
}
.xp-word { display: grid; align-items: baseline; }
.xp-ms {
  font: 400 11.5px/1.25 "Segoe UI", Tahoma, sans-serif;
  color: #e8f1fd;
  letter-spacing: .2px;
}
.xp-ms sup { font-size: 6.5px; vertical-align: super; }
.xp-name {
  font: 400 34px/1.02 "Segoe UI", "Trebuchet MS", Tahoma, sans-serif;
  color: #f2f7ff;
  letter-spacing: -.6px;
  text-shadow: 0 0 14px rgba(150, 200, 255, .35);
}
.xp-name b {
  font-weight: 400;
  font-style: italic;
  color: #8fc0ff;
  margin-left: 7px;
  letter-spacing: 0;
  text-shadow: 0 0 14px rgba(120, 175, 255, .6);
}
.xp-pro {
  margin-top: -1px;
  font: 400 11.5px/1.4 "Segoe UI", Tahoma, sans-serif;
  letter-spacing: 5px;
  color: #c9dcf2;
}
.xp-bar {
  width: 198px;
  height: 17px;
  margin-top: 30px;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid #6e6e6e;
  background: #080808;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .95), inset 0 0 0 1px #000, 0 1px 0 rgba(255, 255, 255, .07);
}
.xp-bar-track { position: relative; height: 100%; overflow: hidden; border-radius: 6px; }
.xp-bar-track i {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, #9cc8f7 0%, #4a86d6 42%, #2158a8 100%);
  box-shadow: 0 0 5px rgba(90, 150, 240, .55);
  animation: xp-bar-run 2.1s linear infinite;
}
.xp-bar-track i:nth-child(1) { animation-delay: -1.4s; }
.xp-bar-track i:nth-child(2) { animation-delay: -.7s; }
.xp-bar-track i:nth-child(3) { animation-delay: 0s; }
@keyframes xp-bar-run {
  0% { transform: translateX(-34px); }
  100% { transform: translateX(200px); }
}

/* ---------- Windows 7: orbs vítreos + bandeira ---------- */
.w7-boot {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
}
.w7-boot-inner {
  position: absolute;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 30px;
}
.w7-flag {
  position: relative;
  width: 92px;
  height: 78px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
  animation: w7-glow 2.2s ease-in-out infinite;
}
.w7-flag i {
  position: relative;
  display: block;
  opacity: 0;
  border-radius: 50%;
  filter: saturate(.8);
  background:
    radial-gradient(circle at 31% 23%, rgba(255, 255, 255, .68), rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 52% 66%, var(--c1), var(--c2) 56%, var(--c3) 100%);
  box-shadow:
    inset -5px -7px 14px rgba(0, 0, 0, .34),
    inset 4px 4px 10px rgba(255, 255, 255, .26),
    0 0 24px rgba(130, 190, 255, .2);
  animation-duration: 2.2s;
  animation-timing-function: cubic-bezier(.4, .02, .18, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}
.w7-flag i::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    -9px 0 11px -1px var(--c1),
    -28px 0 20px -4px var(--c1),
    -56px 0 34px -12px var(--c1);
  opacity: 0;
  transform: rotate(var(--tr));
  animation: w7-trail 2.2s ease-out infinite;
  animation-delay: 0s;
  pointer-events: none;
}
.w7-flag i::after {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: inherit;
  background: radial-gradient(circle at 36% 28%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 44%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.w7-flag i:nth-child(1) {
  --c1: #ff9575;
  --c2: #db4a20;
  --c3: #9c2d0b;
  --tr: 0deg;
  animation-name: w7-orb-a;
  animation-delay: 0s;
}
.w7-flag i:nth-child(2) {
  --c1: #b8e05c;
  --c2: #7fb01f;
  --c3: #557a10;
  --tr: 180deg;
  animation-name: w7-orb-b;
  animation-delay: -.05s;
}
.w7-flag i:nth-child(3) {
  --c1: #66c8f5;
  --c2: #1691cf;
  --c3: #076391;
  --tr: 214deg;
  animation-name: w7-orb-c;
  animation-delay: -.1s;
}
.w7-flag i:nth-child(4) {
  --c1: #ffd977;
  --c2: #e6ab14;
  --c3: #a87806;
  --tr: 146deg;
  animation-name: w7-orb-d;
  animation-delay: -.15s;
}
@keyframes w7-orb-a {
  0% { opacity: 0; transform: translate(-128px, -62px) scale(.28); border-radius: 50%; }
  9% { opacity: 1; }
  22% { transform: translate(-112px, -52px) scale(.42); border-radius: 49%; }
  44% { transform: translate(-50px, -22px) scale(.74); border-radius: 42%; }
  59% { transform: translate(-8px, -2px) scale(.98); border-radius: 30%; }
  66% { transform: translate(0, 0) scale(1.06); border-radius: 12%; }
  78%, 100% { opacity: 1; transform: translate(0, 0) scale(1); border-radius: 10%; }
}
@keyframes w7-orb-b {
  0% { opacity: 0; transform: translate(130px, -32px) scale(.28); border-radius: 50%; }
  9% { opacity: 1; }
  24% { transform: translate(114px, -46px) scale(.44); border-radius: 49%; }
  46% { transform: translate(52px, -18px) scale(.75); border-radius: 42%; }
  61% { transform: translate(8px, -2px) scale(.98); border-radius: 30%; }
  68% { transform: translate(0, 0) scale(1.06); border-radius: 12%; }
  80%, 100% { opacity: 1; transform: translate(0, 0) scale(1); border-radius: 10%; }
}
@keyframes w7-orb-c {
  0% { opacity: 0; transform: translate(-104px, 92px) scale(.28); border-radius: 50%; }
  9% { opacity: 1; }
  23% { transform: translate(-92px, 78px) scale(.43); border-radius: 49%; }
  45% { transform: translate(-40px, 30px) scale(.74); border-radius: 42%; }
  60% { transform: translate(-6px, 2px) scale(.98); border-radius: 30%; }
  67% { transform: translate(0, 0) scale(1.06); border-radius: 12%; }
  79%, 100% { opacity: 1; transform: translate(0, 0) scale(1); border-radius: 10%; }
}
@keyframes w7-orb-d {
  0% { opacity: 0; transform: translate(108px, 66px) scale(.28); border-radius: 50%; }
  9% { opacity: 1; }
  25% { transform: translate(96px, 56px) scale(.42); border-radius: 49%; }
  47% { transform: translate(44px, 22px) scale(.73); border-radius: 42%; }
  62% { transform: translate(7px, 2px) scale(.97); border-radius: 30%; }
  69% { transform: translate(0, 0) scale(1.05); border-radius: 12%; }
  81%, 100% { opacity: 1; transform: translate(0, 0) scale(1); border-radius: 10%; }
}
@keyframes w7-trail {
  0% { opacity: 0; transform: rotate(var(--tr)) scaleX(.3); }
  12% { opacity: .95; }
  30% { opacity: .7; }
  46% { opacity: .25; transform: rotate(var(--tr)) scaleX(1); }
  54%, 100% { opacity: 0; transform: rotate(var(--tr)) scaleX(1); }
}
@keyframes w7-glow {
  0%, 40% { filter: drop-shadow(0 0 0 rgba(120, 190, 255, 0)); }
  64% { filter: drop-shadow(0 0 26px rgba(180, 220, 255, .85)); }
  72% { filter: drop-shadow(0 0 12px rgba(150, 205, 255, .5)); }
  100% { filter: drop-shadow(0 0 6px rgba(120, 190, 255, .22)); }
}
.w7-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 43%, rgba(210, 235, 255, .5), rgba(120, 180, 255, 0) 46%);
  opacity: 0;
  animation: w7-flash 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes w7-flash {
  0%, 58% { opacity: 0; }
  66% { opacity: 1; }
  76%, 100% { opacity: 0; }
}
.w7-start {
  font: 300 26px/1 "Segoe UI", Tahoma, sans-serif;
  letter-spacing: .2px;
  color: #f0f6ff;
  opacity: 0;
  animation: w7-start 2.2s ease-in-out infinite;
}
@keyframes w7-start {
  0%, 16% { opacity: 0; transform: translateY(5px); }
  38%, 100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Windows 10 / 11: bandeira em perspectiva + cometa ---------- */
.w10-boot, .w11-boot {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 42px;
  background: #000;
  padding-bottom: 24px;
}
.w10-logo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  width: 84px;
  height: 76px;
  transform: perspective(440px) rotateY(24deg) rotateZ(-2.5deg) skewY(1.5deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 20px rgba(40, 140, 235, .45));
}
.w10-logo i {
  display: block;
  background: linear-gradient(150deg, #63c6ff 0%, #1a8fe0 48%, #0063b1 100%);
}
.w10-logo i:nth-child(1) { clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 95%); }
.w10-logo i:nth-child(2) { clip-path: polygon(0 0, 100% 6%, 100% 94%, 0 100%); }
.w10-logo i:nth-child(3) { clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%); }
.w10-logo i:nth-child(4) { clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); }
.w11-logo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  width: 80px;
  height: 80px;
  transform: perspective(520px) rotateY(-19deg) rotateZ(3deg) skewY(-1.2deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 18px rgba(40, 140, 235, .4));
}
.w11-logo i {
  display: block;
  border-radius: 4px;
  background: linear-gradient(150deg, #56bdf8 0%, #0f8ae0 52%, #0067b8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* cometa: líder maior/brilhante, seguidores esmaecendo */
.w-spin {
  position: relative;
  width: 44px;
  height: 44px;
}
.w-spin i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6.5px;
  height: 6.5px;
  margin: -3.25px 0 0 -3.25px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(200, 230, 255, .9);
  animation: w-comet 1.5s linear infinite;
  will-change: opacity, scale;
}
.w-spin i:nth-child(1) { transform: rotate(0deg) translateY(-17px); --i: 0; }
.w-spin i:nth-child(2) { transform: rotate(60deg) translateY(-17px); --i: 1; }
.w-spin i:nth-child(3) { transform: rotate(120deg) translateY(-17px); --i: 2; }
.w-spin i:nth-child(4) { transform: rotate(180deg) translateY(-17px); --i: 3; }
.w-spin i:nth-child(5) { transform: rotate(240deg) translateY(-17px); --i: 4; }
.w-spin i:nth-child(6) { transform: rotate(300deg) translateY(-17px); --i: 5; }
.w-spin i { animation-delay: calc(var(--i) * -0.25s); }
@keyframes w-comet {
  0% { opacity: 1; scale: 1.5; }
  12% { opacity: .95; scale: 1.34; }
  38% { opacity: .6; scale: 1.1; }
  70% { opacity: .28; scale: .86; }
  100% { opacity: .08; scale: .68; }
}

/* ================================================================
 * INSTALADOR E OOBE — composições fiéis por era
 * ================================================================ */

/* ---------- POST (boot pela mídia) ---------- */
.post {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #000;
  color: #b9b9b9;
  font: 13.5px/1.6 Consolas, "Lucida Console", "Courier New", monospace;
  padding: 22px 24px;
}
.post-l { white-space: pre-wrap; }
.post-l.hl { color: #fff; margin-top: 6px; }
.post-key {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.post-key:disabled { color: #6f6f6f; cursor: default; }
.post-cur {
  display: inline-block;
  width: 8px;
  height: 13px;
  margin-left: 5px;
  vertical-align: -2px;
  background: #d0d0d0;
  animation: post-cur 1s steps(1, end) infinite;
}
@keyframes post-cur { 50% { opacity: 0; } }

/* ---------- XP: instalador modo texto ---------- */
.xp-t {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0000aa;
  color: #f2f2f2;
  font: 13px/1.5 Consolas, "Lucida Console", "Courier New", monospace;
}
.xp-t-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #c0c0c0;
  color: #0000aa;
  font-weight: 700;
  font-size: 12.5px;
  padding: 2px 10px;
}
.xp-t-main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 13px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.xp-t-p { margin: 0; }
.xp-t-p.dim { color: #c3cfff; }
.xp-t-rows { display: grid; gap: 5px; margin: 6px 0 2px; }
.xp-t-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.xp-t-row > span:first-child { color: #fff; }
.xp-t-row select {
  background: #0000aa;
  color: #fff;
  border: 1px solid #b7c2f2;
  font: inherit;
  padding: 1px 3px;
}
.xp-t-lic { gap: 6px; }
.xp-t-lic input { width: 14px; height: 14px; margin: 0; }
.xp-disk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #7f8dde;
  border-bottom: 1px solid #7f8dde;
  padding: 3px 6px;
  margin-top: 4px;
  color: #fff;
}
.xp-disk-tag { color: #c3cfff; }
.xp-parts { display: grid; gap: 0; }
.xp-part-row {
  text-align: left;
  background: none;
  border: 0;
  color: #f2f2f2;
  font: inherit;
  padding: 1px 6px;
  cursor: pointer;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xp-part-row.sel { background: #c0c0c0; color: #0000aa; }
.xp-part-row:hover:not(.sel) { outline: 1px dotted #c3cfff; outline-offset: -1px; }
.xp-t-foot {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  background: #c0c0c0;
  color: #000;
  padding: 3px 8px;
  font-size: 12px;
}
.xp-key {
  background: none;
  border: 0;
  color: #000;
  font: inherit;
  padding: 0 7px;
  cursor: pointer;
  white-space: nowrap;
}
.xp-key.pri { font-weight: 700; }
.xp-key.off { color: #4a4a4a; cursor: default; }
.xp-key:hover:not(:disabled):not(.off) { background: #0000aa; color: #fff; }
.xp-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: #e8ecff;
  font: inherit;
  padding: 3px 0;
  cursor: pointer;
}
.xp-opt b { display: inline-block; min-width: 46px; color: #fff; }
.xp-opt:hover:not(.off) { color: #fff; background: #1a2fc0; }
.xp-opt.off { color: #97a6ef; cursor: default; }
.xp-opt-line { padding: 3px 0; }
.xp-opt-line b { display: inline; min-width: 0; color: #fff; }
.xp-opt.off { color: #97a6ef; cursor: default; }
.xp-files { display: grid; gap: 1px; margin: 6px 0; color: #e4ebff; }
.xp-file { font-size: 12px; }
.xp-foot-prog { justify-content: space-between; gap: 12px; }
.xp-prog {
  flex: 1;
  max-width: 240px;
  height: 15px;
  padding: 2px;
  border: 1px solid #808080;
  background: #0000aa;
}
.xp-prog i { display: block; height: 100%; background: #c0c0c0; transition: width .12s linear; }

/* ---------- Comuns do instalador (7 / 10 / 11) ---------- */
.ins-fields { display: grid; gap: 9px; }
.ins-f { display: grid; gap: 3px; font-size: 12px; }
.ins-f > span { color: #33475b; }
.ins-f select {
  width: 100%;
  min-height: 30px;
  padding: 3px 6px;
  border: 1px solid #9db9d2;
  border-radius: 2px;
  background: #fff;
  color: #12283c;
  font: 12.5px "Segoe UI", Tahoma, sans-serif;
}
.ins-chk {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  line-height: 1.35;
  color: #2b3b4d;
  cursor: pointer;
}
.ins-chk input { width: 15px; height: 15px; margin: 1px 0 0; }
.ins-type-grid { display: grid; gap: 10px; margin-top: 6px; }
.ins-type-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-areas: "ic tit" "ic sub";
  align-items: start;
  gap: 2px 10px;
  text-align: left;
  padding: 11px 13px;
  border: 1px solid #b9cbdd;
  background: #fdfefe;
  cursor: pointer;
  font: 12.5px/1.35 "Segoe UI", Tahoma, sans-serif;
  color: #1b2a3a;
}
.ins-type-card:hover:not(:disabled) { border-color: #2b7cd3; background: #f2f8ff; }
.ins-type-card b { grid-area: tit; font-size: 13px; font-weight: 600; }
.ins-type-card small { grid-area: sub; color: #55677a; }
.ins-type-ic { grid-area: ic; width: 34px; height: 34px; border-radius: 50%; background: #dbe9f7; position: relative; }
.ins-type-ic::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 2px;
  background: #4a90c9;
}
.ins-type-ic.cust::after { border-radius: 50%; background: #7aa9cf; box-shadow: inset 0 0 0 3px #dbe9f7, inset 0 0 0 5px #4a90c9; }

/* ---------- Windows 7 ---------- */
.ins-w7 {
  flex: 1;
  display: flex;
  padding: 20px;
  background:
    radial-gradient(80% 70% at 18% 8%, rgba(140, 220, 235, .22), transparent 60%),
    radial-gradient(70% 60% at 85% 92%, rgba(60, 200, 190, .16), transparent 60%),
    linear-gradient(150deg, #1d3546 0%, #142a3a 45%, #0b1c27 100%);
}
.w7-win {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #f4f8fc;
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 0 1px rgba(12, 40, 62, .5);
  color: #12283c;
  font-family: "Segoe UI", Tahoma, sans-serif;
}
.w7-win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: linear-gradient(180deg, #f0f8fe 0%, #d8ecfa 55%, #c4e0f5 100%);
  border-bottom: 1px solid #9dc0da;
  font: 600 12.5px "Segoe UI", Tahoma, sans-serif;
  color: #123a5e;
}
.w7-win-ctl { margin-left: auto; display: inline-flex; gap: 3px; }
.w7-win-ctl i {
  width: 17px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, #fdfefe, #d9e9f6);
  border: 1px solid #9dc0da;
  position: relative;
}
.w7-win-ctl i::after { content: ""; position: absolute; inset: 4px 3px; border-top: 2px solid #4d7ea8; }
.w7-win-ctl i.x::after { border: 0; background: #e35d5d; inset: 3px; border-radius: 1px; }
.w7-mark { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 1px; width: 15px; height: 15px; flex: none; }
.w7-mark i { display: block; border-radius: 1px; }
.w7-mark i:nth-child(1) { background: #f65314; }
.w7-mark i:nth-child(2) { background: #7cbb00; }
.w7-mark i:nth-child(3) { background: #00a1f1; }
.w7-mark i:nth-child(4) { background: #ffbb00; }
.w7-win-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.w7-h { margin: 0; font: 400 21px/1.25 "Segoe UI", Tahoma, sans-serif; color: #1b4d7a; }
.w7-sub { margin: 0; font-size: 12.5px; color: #4a5c6e; }
.w7-fields { max-width: 420px; }
.w7-win-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #eef5fb, #dfeaf4);
  border-top: 1px solid #c3d6e6;
}
.w7-install {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 16px;
  border: 1px solid #1b5f9e;
  border-radius: 3px;
  background: linear-gradient(180deg, #7cc0f5 0%, #3a8ee6 40%, #1864ab 100%);
  color: #fff;
  font: 600 13px "Segoe UI", Tahoma, sans-serif;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}
.w7-pri {
  min-height: 30px;
  padding: 5px 18px;
  border: 1px solid #1b5f9e;
  border-radius: 3px;
  background: linear-gradient(180deg, #7cc0f5 0%, #3a8ee6 40%, #1864ab 100%);
  color: #fff;
  font: 600 12.5px "Segoe UI", Tahoma, sans-serif;
  cursor: pointer;
}
.w7-sec {
  min-height: 30px;
  padding: 5px 16px;
  border: 1px solid #8fb4d2;
  border-radius: 3px;
  background: linear-gradient(180deg, #fdfefe, #dcebf7);
  color: #123a5e;
  font: 600 12.5px "Segoe UI", Tahoma, sans-serif;
  cursor: pointer;
}
.w7-drive-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #4a5c6e;
  margin-top: 2px;
}
.w7-drive-opt button, .w7-link {
  min-height: 24px;
  padding: 2px 9px;
  font-size: 11px;
  border: 1px solid #8fb4d2;
  border-radius: 3px;
  background: linear-gradient(180deg, #fdfefe, #dcebf7);
  color: #123a5e;
  cursor: pointer;
}
.w7-drive-links { display: flex; gap: 10px; margin-top: auto; }
.w7-link { border: 0; background: none; color: #1b64a8; text-decoration: underline; padding: 0; }
.w7-steps { display: grid; gap: 7px; margin: 8px 0 4px; }
.w7-step {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #2b3b4d;
}
.w7-step-ic { display: inline-flex; justify-content: center; font-size: 11px; }
.w7-dot { color: #7ba7cd; }
.w7-ok { color: #2fa84f; font-weight: 700; }
.w7-step-pct { font-weight: 600; color: #1b64a8; min-width: 42px; text-align: right; }
.w7-step-pct.done { color: #2fa84f; }
.w7-restart { margin: 6px 0 0; font-size: 11.5px; color: #55677a; }
.w7-restart b { color: #123a5e; }
.w7-oo .w7-win-body { gap: 8px; }
.w7-oo .oo-fields { max-width: 430px; }

/* ---------- tabela de discos ---------- */
.pw-table {
  display: grid;
  border: 1px solid #b9cbdc;
  background: #fff;
  font: 11.5px/1.3 "Segoe UI", Tahoma, sans-serif;
  color: #1b2a3a;
}
.pw-head, .pw-row {
  display: grid;
  grid-template-columns: 1.75fr .78fr .78fr .72fr;
  gap: 8px;
  align-items: center;
  padding: 5px 8px;
}
.pw-head {
  background: #e6f0f9;
  color: #274b6d;
  font-weight: 700;
  border-bottom: 1px solid #c3d6e6;
}
.pw-disk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: #f5f9fd;
  border-bottom: 1px solid #dce8f2;
}
.pw-disk span { color: #55677a; }
.pw-disk-tag { margin-left: auto; color: #274b6d !important; font-weight: 600; }
.pw-row {
  border: 0;
  border-bottom: 1px solid #eef4f9;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.pw-row:last-child { border-bottom: 0; }
.pw-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-row.sel { background: #cfe6fb; box-shadow: inset 0 0 0 2px #2b7cd3; }
.pw-row:hover:not(.sel) { background: #f2f8ff; }

/* ---------- Windows 10 ---------- */
.ins-w10 {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0063b1;
  color: #fff;
  font-family: "Segoe UI", Tahoma, sans-serif;
  padding: 20px 24px;
}
.w10-mark { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 44px; height: 40px; flex: none; }
.w10-mark i { display: block; background: #fff; }
.w10-mark.sm { width: 16px; height: 15px; }
.ins-w10 .w10-mark { align-self: flex-start; }
.w10-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 4px 10px;
}
.w10-h { margin: 0; font: 300 25px/1.25 "Segoe UI", Tahoma, sans-serif; }
.w10-sub, .w10-note { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .82); }
.w10-fields { max-width: 400px; }
.ins-w10 .ins-f > span { color: rgba(255, 255, 255, .9); }
.ins-w10 .ins-f select { border: 1px solid rgba(255, 255, 255, .55); background: #fff; color: #0f2233; border-radius: 0; }
.ins-w10 .ins-chk { color: #fff; max-width: 420px; }
.w10-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}
.w10-next {
  min-width: 130px;
  min-height: 32px;
  padding: 6px 20px;
  border: 1px solid #fff;
  background: #0078d7;
  color: #fff;
  font: 400 13.5px "Segoe UI", Tahoma, sans-serif;
  cursor: pointer;
}
.w10-next:hover { background: #0a86e8; }
.w10-sec {
  min-height: 32px;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: transparent;
  color: #fff;
  font: 400 13px "Segoe UI", Tahoma, sans-serif;
  cursor: pointer;
}
.w10-type .ins-type-grid { max-width: 560px; }
.ins-w10 .ins-type-card { border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff; }
.ins-w10 .ins-type-card:hover:not(:disabled) { background: rgba(255, 255, 255, .2); border-color: #fff; }
.ins-w10 .ins-type-card small { color: rgba(255, 255, 255, .8); }
.ins-w10 .ins-type-ic { background: rgba(255, 255, 255, .2); }
.ins-w10 .ins-type-ic::after { background: #fff; }
.ins-w10 .pw-table { border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .12); color: #fff; }
.ins-w10 .pw-head { background: rgba(255, 255, 255, .16); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.ins-w10 .pw-disk { background: rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .22); }
.ins-w10 .pw-disk span, .ins-w10 .pw-disk-tag { color: rgba(255, 255, 255, .85) !important; }
.ins-w10 .pw-row { background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.ins-w10 .pw-row.sel { background: rgba(255, 255, 255, .28); box-shadow: inset 0 0 0 2px #fff; }
.w10-tools { display: flex; gap: 7px; flex-wrap: wrap; }
.w10-tools button {
  min-height: 27px;
  padding: 3px 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: transparent;
  color: #fff;
  font: 400 12px "Segoe UI", Tahoma, sans-serif;
  cursor: pointer;
}
.w10-tools button:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }
.w10-busy { justify-content: center; align-items: flex-start; gap: 8px; }
.w10-bar { width: 100%; height: 4px; background: rgba(255, 255, 255, .28); }
.w10-bar i { display: block; height: 100%; background: #fff; transition: width .12s linear; }
.ins-w10.is-busy .w10-mark { margin-bottom: 8px; }

/* ---------- Windows 11 ---------- */
.ins-w11 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(70% 60% at 78% 12%, rgba(70, 130, 220, .35), transparent 62%),
    radial-gradient(60% 50% at 12% 90%, rgba(120, 80, 200, .3), transparent 60%),
    #1c1c22;
  font-family: "Segoe UI", Tahoma, sans-serif;
}
.w11-mark { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 40px; height: 40px; flex: none; }
.w11-mark i { display: block; border-radius: 2px; background: linear-gradient(150deg, #63c4ff, #0f7ad4); }
.w11-inst-card {
  width: min(100%, 520px);
  max-height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 8px;
  background: rgba(40, 40, 48, .92);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  color: #f2f2f2;
}
.w11-h { margin: 0; font: 400 20px/1.3 "Segoe UI", Tahoma, sans-serif; }
.w11-sub, .w11-note { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .72); }
.w11-fields { max-width: 400px; }
.ins-w11 .ins-f > span { color: rgba(255, 255, 255, .85); }
.ins-w11 .ins-f select {
  border: 1px solid rgba(255, 255, 255, .3);
  border-bottom-color: rgba(255, 255, 255, .6);
  background: #2c2c34;
  color: #fff;
  border-radius: 4px;
}
.ins-w11 .ins-chk { color: rgba(255, 255, 255, .88); }
.w11-inst-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.w11-next {
  min-height: 31px;
  padding: 5px 20px;
  border: 1px solid #2b7bd0;
  border-radius: 4px;
  background: #0f6cbd;
  color: #fff;
  font: 400 13px "Segoe UI", Tahoma, sans-serif;
  cursor: pointer;
}
.w11-next:hover { background: #1a7ed6; }
.w11-sec {
  min-height: 31px;
  padding: 5px 18px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font: 400 12.5px "Segoe UI", Tahoma, sans-serif;
  cursor: pointer;
}
.ins-w11 .pw-table { border: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .22); color: #eee; }
.ins-w11 .pw-head { background: rgba(255, 255, 255, .1); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.ins-w11 .pw-disk { background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ins-w11 .pw-disk span, .ins-w11 .pw-disk-tag { color: rgba(255, 255, 255, .75) !important; }
.ins-w11 .pw-row { background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #eee; }
.ins-w11 .pw-row.sel { background: rgba(40, 120, 210, .4); box-shadow: inset 0 0 0 2px #4a9be0; }
.ins-w11 .ins-type-card { border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); color: #f2f2f2; border-radius: 4px; }
.ins-w11 .ins-type-card:hover:not(:disabled) { background: rgba(255, 255, 255, .12); border-color: #4a9be0; }
.ins-w11 .ins-type-card small { color: rgba(255, 255, 255, .68); }
.ins-w11 .ins-type-ic { background: rgba(255, 255, 255, .12); }
.ins-w11 .ins-type-ic::after { background: #7fc4ff; }
.w11-tools { display: flex; gap: 7px; flex-wrap: wrap; }
.w11-tools button {
  min-height: 26px;
  padding: 3px 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 4px;
  background: rgba(255, 255, 255, .06);
  color: #f2f2f2;
  font: 400 11.5px "Segoe UI", Tahoma, sans-serif;
  cursor: pointer;
}
.w11-busy { align-items: center; text-align: center; }
.w11-busy .w11-h { margin-top: 4px; }
.w11-spin { position: relative; width: 34px; height: 34px; margin: 10px auto 0; }
.w11-spin i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 7px rgba(200, 230, 255, .85);
  animation: w-comet 1.5s linear infinite;
  animation-delay: calc(var(--i) * -0.25s);
}
.w11-spin i:nth-child(1) { transform: rotate(0deg) translateY(-14px); --i: 0; }
.w11-spin i:nth-child(2) { transform: rotate(60deg) translateY(-14px); --i: 1; }
.w11-spin i:nth-child(3) { transform: rotate(120deg) translateY(-14px); --i: 2; }
.w11-spin i:nth-child(4) { transform: rotate(180deg) translateY(-14px); --i: 3; }
.w11-spin i:nth-child(5) { transform: rotate(240deg) translateY(-14px); --i: 4; }
.w11-spin i:nth-child(6) { transform: rotate(300deg) translateY(-14px); --i: 5; }

/* ---------- OOBE: campos comuns ---------- */
.oo-fields { display: grid; gap: 9px; }
.oo-f { display: grid; gap: 3px; font-size: 12.5px; font-weight: 600; }
.oo-f input, .oo-f select {
  width: 100%;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid #94a3b8;
  background: #fff;
  color: #0f172a;
  font: 500 12.5px "Segoe UI", Tahoma, sans-serif;
}
.oo-f.err input, .oo-f.err select { border-color: #d64545; background: #fdf1f1; }

/* ---------- OOBE: XP (Bem-vindo Luna) ---------- */
.oo-xp {
  flex: 1;
  display: grid;
  grid-template-columns: 38% 1fr;
  background: #f4f1e4;
  color: #1b2330;
  font-family: Tahoma, Verdana, "Segoe UI", sans-serif;
  border: 1px solid #0b3d91;
}
.oo-xp-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
  background: linear-gradient(180deg, #1e63dd 0%, #0b47b8 52%, #073677 100%);
  color: #fff;
}
.oo-xp-brand { display: flex; align-items: center; gap: 9px; }
.xp-flag.sm { width: 30px; height: 26px; gap: 2px; }
.oo-xp-word { font-size: 10px; line-height: 1.15; letter-spacing: .2px; }
.oo-xp-word b { font-size: 17px; font-weight: 700; letter-spacing: -.4px; }
.oo-xp-word em { font-style: italic; color: #ffd07a; font-weight: 700; margin-left: 3px; }
.oo-xp-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; font-size: 11.5px; }
.oo-xp-steps li { position: relative; padding-left: 16px; color: rgba(255, 255, 255, .62); }
.oo-xp-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}
.oo-xp-steps li.done { color: rgba(255, 255, 255, .85); }
.oo-xp-steps li.done::before { background: #9fe0a2; }
.oo-xp-steps li.now { color: #fff; font-weight: 700; }
.oo-xp-steps li.now::before { background: #ffd07a; box-shadow: 0 0 0 2px rgba(255, 208, 122, .35); }
.oo-xp-sidefoot { margin-top: auto; font-size: 10px; color: rgba(255, 255, 255, .6); }
.oo-xp-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f4e8 100%);
}
.oo-xp-h { margin: 0; font: 700 19px/1.25 Tahoma, Verdana, sans-serif; color: #0b3d91; }
.oo-xp-sub { margin: 0; font-size: 12.5px; color: #44546a; }
.oo-xp .oo-fields { max-width: 380px; margin-top: 4px; }
.oo-xp .oo-f { color: #1b2330; }
.oo-xp .oo-f input, .oo-xp .oo-f select { border: 1px solid #7f9db9; border-radius: 0; background: #fff; }
.oo-foot-xp { margin-top: auto; display: flex; justify-content: flex-end; }
.xp-go {
  min-width: 108px;
  min-height: 30px;
  padding: 5px 16px;
  border: 1px solid #1e5f1a;
  border-radius: 3px;
  background: linear-gradient(180deg, #8fdc82 0%, #45a93a 45%, #2a7d22 100%);
  color: #fff;
  font: 700 12.5px Tahoma, Verdana, sans-serif;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* ---------- OOBE: Windows 7 ---------- */
.oo-w7 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(80% 70% at 22% 10%, rgba(150, 225, 240, .25), transparent 62%),
    linear-gradient(150deg, #1f6f8e 0%, #14506c 45%, #0a2c3f 100%);
  font-family: "Segoe UI", Tahoma, sans-serif;
}
.oo-w7-win {
  width: min(100%, 560px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .75);
  background: #f5f9fd;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .45);
  color: #12283c;
}
.oo-w7-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  background: linear-gradient(180deg, #f2fafe, #d7ecfa 55%, #c2dff5);
  border-bottom: 1px solid #9dc0da;
  font: 600 12.5px "Segoe UI", Tahoma, sans-serif;
  color: #123a5e;
}
.oo-w7-body { display: flex; flex-direction: column; gap: 9px; padding: 18px 20px; overflow: auto; }
.oo-w7-h { margin: 0; font: 400 19px/1.3 "Segoe UI", Tahoma, sans-serif; color: #1b4d7a; }
.oo-w7-sub { margin: 0; font-size: 12px; color: #4a5c6e; }
.oo-w7 .oo-fields { max-width: 390px; }
.oo-w7-foot { display: flex; justify-content: flex-end; margin-top: 6px; }

/* ---------- OOBE: Windows 10 ---------- */
.oo-w10 {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f2f2f2;
  color: #1b1b1b;
  font-family: "Segoe UI", Tahoma, sans-serif;
}
.oo-w10-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #0063b1;
  color: #fff;
  font-size: 12px;
}
.oo-w10-top .w10-mark i { background: #fff; }
.oo-w10-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oo-w10-h { margin: 0; font: 300 26px/1.25 "Segoe UI", Tahoma, sans-serif; color: #1b1b1b; }
.oo-w10-sub { margin: 0; font-size: 13px; color: #4a4a4a; }
.oo-w10 .oo-fields { max-width: 420px; margin-top: 6px; }
.oo-w10 .oo-f input, .oo-w10 .oo-f select { border: 1px solid #8a8a8a; border-radius: 0; }
.oo-w10-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 22px;
  background: #e6e6e6;
  border-top: 1px solid #d0d0d0;
}
.oo-w10-foot .w10-next { background: #0063b1; border-color: #0063b1; }
.oo-w10-foot .w10-next:hover { background: #0078d7; }

/* ---------- OOBE: Windows 11 ---------- */
.oo-w11 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px;
  color: #fff;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(70% 70% at 80% 8%, rgba(140, 90, 220, .55), transparent 60%),
    radial-gradient(80% 70% at 10% 100%, rgba(40, 110, 220, .55), transparent 60%),
    linear-gradient(140deg, #3a1d63 0%, #24204a 45%, #12294f 100%);
}
.oo-w11-hero { display: flex; flex-direction: column; gap: 6px; }
.oo-w11-h { margin: 0; font: 300 24px/1.25 "Segoe UI", Tahoma, sans-serif; }
.oo-w11-sub { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.oo-w11-card {
  max-width: 460px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px) saturate(1.1);
}
.oo-w11 .oo-f > span { color: rgba(255, 255, 255, .88); }
.oo-w11 .oo-f input, .oo-w11 .oo-f select {
  border: 1px solid rgba(255, 255, 255, .28);
  border-bottom-color: rgba(255, 255, 255, .62);
  border-radius: 4px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.oo-w11 .oo-f.err input, .oo-w11 .oo-f.err select { border-color: #ff8a8a; background: rgba(255, 90, 90, .16); }
.oo-w11-foot { margin-top: auto; display: flex; justify-content: flex-end; }
.oo-w11-foot .w11-next { background: #0f6cbd; border-color: #4a9be0; }


/* ================================================================
 * AJUSTES FINAIS DE FIDELIDADE (instalador/OOBE)
 * ================================================================ */

/* a tela do instalador/OOBE ocupa a moldura inteira (sem o padding antigo por era) */
.win-print .win-screen {
  padding: 0;
  border-radius: 4px;
}

/* Windows 7: rótulo do botão em uma linha e botões de janela mais fiéis */
.w7-install { white-space: nowrap; }
.w7-win-ctl i.x { background: linear-gradient(180deg, #f08a8a, #cf3b3b); border-color: #9c2b2b; }
.w7-win-ctl i.x::after { background: none; }
.w7-win-ctl i.x::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(45deg, transparent 44%, #fff 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, #fff 44% 56%, transparent 56%);
}

/* Windows 10: selects com o mesmo tom (mesmo desabilitados) */
.ins-w10 .ins-f select:disabled,
.ins-w10 .ins-f select[disabled] {
  background: #fff;
  color: #0f2233;
  opacity: 1;
}

/* Windows 11: placeholder legível no cartão translúcido */
.oo-w11 .oo-f input::placeholder { color: rgba(255, 255, 255, .5); }
.oo-w11 .oo-f select option { color: #111; }

/* OOBE XP: campos clássicos do Win32 */
.oo-xp .oo-f input, .oo-xp .oo-f select { border-radius: 0; box-shadow: inset 1px 1px 0 rgba(0, 0, 0, .06); }

/* POST: leve brilho de fósforo, como monitor CRT */
.post { text-shadow: 0 0 6px rgba(190, 220, 255, .18); }

/* ================================================================
 * TRANSIÇÕES DE ENTRADA (boot -> instalador -> fase gráfica)
 * ================================================================ */

/* tela de boot dentro do monitor do instalador */
.ins-boot {
  flex: 1;
  position: relative;
  background: #000;
  overflow: hidden;
}
.ins-boot .win-boot { position: absolute; inset: 0; }

/* corte seco (reinício): preto */
.ins-black { flex: 1; background: #000; }

/* Windows 7: fundo entra em fade e a janela sobe com o Aero */
.ins-w7 { animation: ins-fade .26s ease both; }
.ins-w7 .w7-win { animation: aero-in .34s cubic-bezier(.22, .68, .3, 1) both; }
@keyframes ins-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes aero-in {
  from { opacity: 0; transform: translateY(12px) scale(.986); }
  to { opacity: 1; transform: none; }
}
/* XP texto: surge direto, sem fade (como o console real) */

/* ---------- XP: fase gráfica (sidebar + reinício) ---------- */
.xp-setup {
  flex: 1;
  display: grid;
  grid-template-columns: 34% 1fr;
  background: #4a6fc4;
  font-family: Tahoma, Verdana, "Segoe UI", sans-serif;
  color: #1b2330;
}
.xp-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 15px;
  background: linear-gradient(180deg, #0d47a8 0%, #0a3a8c 55%, #062c6d 100%);
  border-right: 2px solid #05204f;
  color: #fff;
}
.xp-side-brand { display: flex; align-items: center; gap: 8px; }
.xp-side-word { font-size: 15px; font-weight: 700; letter-spacing: -.3px; }
.xp-side-word em { font-style: italic; color: #ffd07a; font-weight: 700; margin-left: 3px; }
.xp-side-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; font-size: 11.5px; }
.xp-side-steps li { position: relative; padding-left: 15px; color: rgba(255, 255, 255, .5); }
.xp-side-steps li::before { content: "›"; position: absolute; left: 2px; top: -1px; color: rgba(255, 255, 255, .45); }
.xp-side-steps li.done { color: rgba(255, 255, 255, .82); }
.xp-side-steps li.done::before { content: "✓"; color: #9fe0a2; font-size: 10px; }
.xp-side-steps li.now { color: #fff; font-weight: 700; }
.xp-side-steps li.now::before { content: "›"; color: #ffd07a; }
.xp-side-foot { margin-top: auto; font-size: 10px; color: rgba(255, 255, 255, .55); }
.xp-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 26px 18px;
  background: linear-gradient(180deg, #f8f6ec 0%, #efece0 100%);
}
.xp-main-h { margin: 0; font: 700 18px/1.2 Tahoma, Verdana, sans-serif; color: #0b3d91; }
.xp-main-p { margin: 0; font-size: 12.5px; color: #33475b; }
.xp-main-p b { color: #1b2330; }
.xp-main-bar {
  width: 72%;
  height: 16px;
  padding: 2px;
  border: 1px solid #000080;
  background: #fff;
}
.xp-main-bar i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, #2f5fbd 0 10px, transparent 10px 13px);
  transition: width .3s linear;
}
.xp-restart { margin: auto 0 0; font-size: 12.5px; color: #33475b; }
.xp-restart b { color: #0b3d91; }
.xp-restart small { color: #6b7a8c; font-size: 11px; }

/* ================================================================
 * FASES DE CARGA (timers reais) — acabamento
 * ================================================================ */

/* XP: lista de arquivos copiados descendo */
.xp-files { min-height: 9.2em; }
.xp-file { animation: xp-file-in .18s ease-out both; }
@keyframes xp-file-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

/* 7: linha de reinício aparece só no fim */
.w7-restart {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: #55677a;
  opacity: 0;
  transition: opacity .35s ease;
}
.w7-restart.on { opacity: 1; }
.w7-restart b { color: #123a5e; }

/* 10: fases centralizadas (vários minutos / Hi there) */
.ins-w10 .w10-centro {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.ins-w10 .w10-centro .w-spin { margin-top: 6px; }
.w10-hi { font-size: 40px; font-weight: 300; letter-spacing: -.5px; }

/* 11: cartão de fase centralizado já existe; garante respiro do spinner */
.w11-busy .w11-spin { margin-top: 6px; }

/* ---------- responsivo ---------- */
@media (max-width: 720px) {
  .win-screen-shell { height: 436px; }
  .win-desktop { --tb: 32px; }
  .win-desk-icons { width: 66px; }
  .win-desk-ic { width: 66px; font-size: 9.5px; }
  .win-task { max-width: 104px; }
}
@media (max-width: 520px) {
  .win-screen-shell { height: 408px; }
  .win-desk-icons { display: none; }
  .win-janela { min-width: 0; }
  .win-janela[data-win="licao"] { left: 4% !important; top: 4% !important; width: 92% !important; }
  .win-task { max-width: none; padding: 0 7px; }
  .win-task span { display: none; }
  .win-tray-btn { display: none; }
  .is-w11 .win-taskbar { width: calc(100% - 10px); }
  .is-w11 .win-tray { position: static; margin-left: auto; }
  .is-w11 .win-tb-ic { display: none; }
  .win-sm-10tiles { grid-auto-rows: 38px; }
  .win-sm-7 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "prog" "links" "search" "foot"; }
  .win-sm-7 .win-sm-7links { border-left: 0; border-top: 1px solid rgba(120, 160, 200, .35); }
  .win-sm-xp .win-sm-col-r { display: none; }
  .win-sm-cols .win-sm-col { width: 100%; }
  .win-sm-11grid { grid-template-columns: repeat(2, 1fr); }
  .win-exp-nav { display: none; }
  .win-desktop .win-h { font-size: 13px; }
  .win-desktop .win-task-row { font-size: 11px; }
  .win-desktop .win-btn { font-size: 10.5px; }
}

/* ---------- responsivo por CONTAINER (o painel da aula é estreito mesmo em desktop) ---------- */
@container (max-width: 620px) {
  .win-desk-icons { display: none; }
  .win-janela[data-win="licao"] { left: 4% !important; top: 4% !important; width: 92% !important; }
  .win-janela { min-width: 0; }
  .win-janela-top { font-size: 11px; }
  .win-task { max-width: none; padding: 0 7px; }
  .win-task span { display: none; }
  .win-tray-btn { display: none; }
  .is-w11 .win-taskbar { width: calc(100% - 10px); }
  .is-w11 .win-tray { position: static; margin-left: auto; }
  .is-w11 .win-tb-ic { display: none; }
  .win-desktop .win-h { font-size: 13px; }
  .win-desktop .win-sub { font-size: 11.5px; }
  .win-desktop .win-task-row { font-size: 11px; }
  .win-desktop .win-btn { font-size: 10.5px; }
  .win-desktop .win-badge { font-size: 10px; }
  .win-sm-10tiles { grid-auto-rows: 38px; }
  .win-sm-7 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "prog" "links" "search" "foot"; }
  .win-sm-7 .win-sm-7links { border-left: 0; border-top: 1px solid rgba(120, 160, 200, .35); }
  .win-sm-xp .win-sm-col-r { display: none; }
  .win-sm-cols .win-sm-col { width: 100%; }
  .win-sm-11grid { grid-template-columns: repeat(2, 1fr); }
  .win-exp-nav { display: none; }
}
@container (max-width: 430px) {
  .win-janela[data-win="licao"] { left: 2% !important; top: 3% !important; width: 96% !important; }
  .win-taskbar { padding: 0 3px; }
  .win-start { padding: 0 8px 0 6px; }
  .is-xp .win-start b { display: none; }
  .win-sm-item { padding: 4px 6px; font-size: 11.5px; }
  .win-sm-11grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Celular (390 px) ---------- */
@media (max-width: 600px) {
  .win-ficha-grid { grid-template-columns: 1fr 1fr; }
  .win-mon { padding: 6px 6px 4px; }
  .win-pad { padding: 10px; }
  .win-h { font-size: 15px; }
  .win-part-row {
    grid-template-columns: minmax(0, 1fr) 64px 56px;
    gap: 5px;
    padding: 8px;
    font-size: 12px;
  }
  .win-part-row > :nth-child(4) {
    grid-column: 1 / -1;
  }
  .win-btn { font-size: 12.5px; padding: 7px 10px; }
  .win-era-w7 .win-screen,
  .win-era-w10 .win-screen,
  .win-era-w11 .win-screen { padding: 7px; }
}
