/* «Primera configuración de la UEFI/BIOS» (borrador). Se carga después de board-connections.css, cmos.css y
   ram-diagnosis.css, de los que toma el panel, la pantalla .uefi (cabecera, tarjetas, teclas, confirmación) y los datos
   que se pulsan. Aquí solo lo nuevo del armazón UEFI (js/ui/uefi-shell.js): barra de menús del Advanced Mode, filas con
   campos configurables y su lista de opciones, ayuda, prioridad de arranque del EZ Mode y lista de cambios. */

/* Sin placa ni mesa: la pantalla del equipo ocupa toda el área de trabajo. */
.uefi-practice .uefi-workbench { position: relative; }
.uefi-practice .uefi-workbench::before { content: none; }
.uefi-practice .uefi-workbench .workspace { visibility: hidden; }
.uefi-practice .uefi { z-index: 70; }
.uefi-practice #uefi-screen[hidden], .uefi-practice #uefi-shell[hidden] { display: none; }
.uefi-practice .uefi-off { color: #6f8291; }
.uefi-practice .uefi-logo { font: 800 22px/1.2 system-ui, sans-serif; letter-spacing: .04em; color: #fff; }
.uefi-practice .uefi-count { color: #9fb0bd; font-size: 13px; }
.uefi-practice .uefi-ok { color: #8fd3a6; font-weight: 700; }

/* Advanced Mode: barra de menús, lista de elementos y ayuda a la derecha. */
.uefis__menu { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px 0; background: #16222d; border-bottom: 1px solid #284558; }
.uefis__menu button { padding: 8px 14px; border: 0; border-radius: 6px 6px 0 0; background: transparent; color: #c9d6df; font: 700 14px/1.2 inherit; cursor: pointer; }
.uefis__menu button:hover { background: #1d3142; }
.uefis__menu button[aria-current="page"] { background: #2f7fb5; color: #fff; }
.uefis__menu button:focus-visible { outline: 3px solid #ffb35c; outline-offset: -3px; }
.uefis__main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 30%); min-height: 0; }
.uefis__list { margin: 0; padding: 10px 0; list-style: none; overflow: auto; }
.uefis__heading { padding: 10px 16px 4px; color: #8fc0e0; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.uefis__note { margin: 4px 16px 8px; padding: 8px 10px; border-left: 3px solid #2f7fb5; background: #111b24; color: #c9d6df; font-size: 13px; line-height: 1.45; }
.uefis__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 16px; font-size: 14px; }
.uefis__row > span:first-child, .uefis__row > label { color: #c9d6df; }
.uefis__value { font: 600 14px/1.3 ui-monospace, "SFMono-Regular", Menlo, monospace; color: #e6edf2; text-align: right; }
.uefis__row.is-active { background: #17324a; box-shadow: inset 3px 0 0 #2f7fb5; }
.uefis__row.is-changed .uefis__select { color: #ffcf8a; }
.uefis__select, .uefis__row--action button { padding: 5px 10px; border: 1px solid #3a5d74; border-radius: 6px; background: #0d1720; color: #e6edf2; font: 600 13.5px/1.3 ui-monospace, "SFMono-Regular", Menlo, monospace; cursor: pointer; text-align: left; }
.uefis__row--action { grid-template-columns: minmax(0, 1fr); }
.uefis__row--action button { justify-self: start; font-family: inherit; }
.uefis__select:hover, .uefis__row--action button:hover { border-color: #8fc0e0; }
.uefis__select:focus-visible, .uefis__row--action button:focus-visible, .uefis__row input:focus-visible { outline: 3px solid #ffb35c; outline-offset: 2px; }
.uefis__row input { font: 600 14px/1.3 ui-monospace, "SFMono-Regular", Menlo, monospace; padding: 5px 8px; border: 1px solid #3a5d74; border-radius: 6px; background: #0d1720; color: #e6edf2; color-scheme: dark; }
.uefis__options { position: absolute; right: 16px; top: 100%; z-index: 3; display: grid; gap: 2px; min-width: 220px; margin: 2px 0 0; padding: 6px; list-style: none; border: 1px solid #8fc0e0; border-radius: 8px; background: #0d1720; box-shadow: 0 10px 24px rgb(0 0 0 / 45%); }
.uefis__options button { width: 100%; padding: 7px 10px; border: 0; border-radius: 5px; background: transparent; color: #e6edf2; font: 600 13.5px/1.3 inherit; text-align: left; cursor: pointer; }
.uefis__options button:hover, .uefis__options button:focus-visible { background: #2f7fb5; outline: none; }
.uefis__options button[aria-selected="true"]::before { content: "● "; color: #8fd3a6; }
.uefis__help { padding: 14px 16px; border-left: 1px solid #284558; background: #101a23; color: #c9d6df; font-size: 13px; line-height: 1.5; overflow: auto; }
.uefis__changes { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font: 600 13.5px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; color: #ffcf8a; text-align: left; }

/* EZ Mode: datos sueltos y prioridad de arranque (el «↑» sube un dispositivo, como arrastrarlo en la UEFI real). */
.uefis__small { margin: 0 0 6px; color: #9fb0bd; font-size: 12.5px; }
.uefis__boot { display: grid; gap: 6px; margin: 0; padding-left: 20px; }
.uefis__boot li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 13px/1.35 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.uefis__up { flex: none; width: 30px; height: 30px; border: 1px solid #3a5d74; border-radius: 6px; background: #18283a; color: #e6edf2; font-weight: 800; cursor: pointer; }
.uefis__up:hover { border-color: #8fc0e0; }

/* Panel: lista de cambios pendientes antes de guardar. */
.uefi-practice .uefi-changes { margin: 6px 0 12px; padding-left: 20px; display: grid; gap: 4px; font: 600 13.5px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; color: #172e40; }

@media (max-width: 760px) {
  .uefis__main { grid-template-columns: minmax(0, 1fr); }
  .uefis__help { border-left: 0; border-top: 1px solid #284558; }
  .uefis__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .uefis__value { text-align: left; }
  .uefis__options { left: 16px; right: auto; }
}

/* Sin mesa de piezas, la pantalla ocupa todo el ancho; en pantallas estrechas, más alta para que quepan la barra de
   menús, la lista y las teclas. */
.uefi-practice .uefi { left: 12px; right: 12px; }
@media (max-width: 760px) {
  .uefi-practice .uefi-workbench { min-height: 620px; }
  .uefi-practice .uefi { left: 6px; right: 6px; top: 6px; bottom: 6px; }
  .uefis__menu { padding: 6px 6px 0; }
  .uefis__menu button { padding: 7px 9px; font-size: 13px; }
  .uefi-practice .uefi__foot .uefi__key { padding: 6px 8px; font-size: 12px; }
}

/* EZ Mode: system status and boot order have distinct places on the screen. */
.uefi-practice .uefi__body--ez { align-content: start; gap: 12px; }
.uefi-practice .uefi__body--ez .uefi__card h3 {
  padding-bottom: 7px;
  border-bottom: 1px solid #284558;
}
.uefi-practice .uefis__priority { border-color: #3a6c87; }
.uefi-practice .uefis__boot li { padding: 5px 8px; border-radius: 5px; background: #18283a; }
@media (min-width: 1050px) {
  .uefi-practice .uefi__body--ez {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "overview priority" "devices cooling";
  }
  .uefis__overview { grid-area: overview; }
  .uefis__devices { grid-area: devices; }
  .uefis__cooling { grid-area: cooling; }
  .uefis__priority { grid-area: priority; }
}
