/* AuriOS — escritorio, ventanas, barra de tareas, aplicaciones */
#desktop { position: absolute; inset: 0; overflow: hidden; background: #3a6ea5; }
#desktop .wall { position: absolute; inset: 0 0 var(--tb-h) 0; background-size: cover; background-position: center; background-color: #1d2a44; }
#desktop .wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,20,.0) 55%, rgba(0,0,20,.28)); }
#desktop .desk { position: absolute; inset: 0 0 var(--tb-h) 0; }

/* ---------- Iconos ---------- */
.icons { position: absolute; inset: 0; padding: 10px; }
.icon { position: absolute; width: 84px; padding: 4px 2px 3px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid transparent; border-radius: 3px; color: #fff; text-shadow: 1px 1px 2px #000, 0 0 3px rgba(0,0,0,.9); outline: none; background: transparent; }
.icon .pic { position: relative; width: 48px; height: 48px; display: grid; place-items: center; }
.icon .pic img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.icon .pic img.thumb { width: 44px; height: 38px; object-fit: cover; border: 2px solid #fff; border-radius: 2px; box-shadow: 0 2px 4px rgba(0,0,0,.55); background: #fff; }
.icon .lbl { margin-top: 4px; font-size: 12px; line-height: 1.2; word-break: break-word; padding: 1px 3px; border-radius: 2px; max-width: 100%; }
.icon.sel .lbl, .icon:focus-visible .lbl { background: #316ac5; text-shadow: none; outline: 1px dotted #f0f4ff; outline-offset: -1px; }
.icon.sel .pic img { filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)) brightness(.8) sepia(1) hue-rotate(185deg) saturate(3.2) brightness(1.1); opacity: .92; }
.icon.sel .pic img.thumb { filter: brightness(.75) sepia(1) hue-rotate(185deg) saturate(3) ; }
.icon.new .pic::before { content: ""; position: absolute; inset: -12px; background: radial-gradient(circle, rgba(255,235,150,.85), rgba(255,235,150,0) 62%); animation: pulse 2.2s ease-in-out infinite; }
.icon.new .pic img { position: relative; }
.spark { position: absolute; width: 10px; height: 10px; background: #fff7c8; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 2.4s ease-in-out infinite; filter: drop-shadow(0 0 3px #ffd75a); pointer-events: none; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.9); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.icon.appear { animation: appear .9s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes appear { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@media (max-width: 699px) {
  .icon { width: calc((100vw - 20px) / 4); } .icon .lbl { font-size: 12.5px; }
}

/* ---------- Ventanas ---------- */
.winarea { position: absolute; inset: 0; pointer-events: none; }
.win { position: absolute; pointer-events: auto; display: flex; flex-direction: column; min-width: 160px; background: #0b53d8; border: 1px solid #0831a8; border-radius: 8px 8px 0 0; padding: 0 3px 3px; box-shadow: 3px 5px 14px rgba(0,0,20,.55), 0 0 0 1px rgba(255,255,255,.12) inset; }
.win.inactive { background: #7b9ae0; border-color: #4a63aa; box-shadow: 2px 3px 9px rgba(0,0,20,.4); }
.win.max { inset: 0 !important; width: auto !important; height: auto !important; border-radius: 0; }
.win.min { display: none; }
.win .tbar { position: relative; flex: none; height: 28px; margin: 0 -3px; padding: 0 5px 0 7px; display: flex; align-items: center; gap: 6px; border-radius: 7px 7px 0 0; color: #fff; font-weight: 700; font-size: 13px; text-shadow: 1px 1px 0 #0a1a78; touch-action: none;
  background: linear-gradient(180deg, #4b99ff 0, #2a72ec 6%, #0b55dc 18%, #0a4fd6 55%, #0b58e0 88%, #1a62e6 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.win.inactive .tbar { background: linear-gradient(180deg, #a6bbf0 0, #8aa3e6 8%, #7b97df 40%, #7490dc 90%, #839fe4 100%); text-shadow: 1px 1px 0 #3c4f96; color: #e8eefc; }
.win.max .tbar { border-radius: 0; }
.tbar .ico { width: 17px; height: 17px; flex: none; object-fit: contain; }
.tbar .ttl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wbtns { display: flex; gap: 2px; }
.wbtn { width: 22px; height: 22px; padding: 0; border: 1px solid #fff; border-radius: 4px; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 22%, #7fb0ff 0, #3c78ec 45%, #1f4fcf 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 1px 1px rgba(0,0,40,.4); }
.wbtn:hover { filter: brightness(1.15); } .wbtn:active { filter: brightness(.85); }
.wbtn.close { background: radial-gradient(circle at 30% 22%, #f6b29c 0, #e0643f 45%, #b8260c 100%); }
.win.inactive .wbtn { opacity: .75; }
.wbtn svg { width: 11px; height: 11px; display: block; }
.wbody { position: relative; flex: 1; min-height: 0; background: var(--beige); color: var(--ink); display: flex; flex-direction: column; overflow: hidden; text-shadow: none; }
.rz { position: absolute; z-index: 3; touch-action: none; }
.rz.n { top: -3px; left: 8px; right: 8px; height: 5px; cursor: ns-resize; } .rz.s { bottom: -3px; left: 8px; right: 8px; height: 5px; cursor: ns-resize; }
.rz.e { right: -3px; top: 8px; bottom: 8px; width: 5px; cursor: ew-resize; } .rz.w { left: -3px; top: 8px; bottom: 8px; width: 5px; cursor: ew-resize; }
.rz.ne { top: -3px; right: -3px; width: 10px; height: 10px; cursor: nesw-resize; } .rz.nw { top: -3px; left: -3px; width: 10px; height: 10px; cursor: nwse-resize; }
.rz.se { bottom: -3px; right: -3px; width: 12px; height: 12px; cursor: nwse-resize; } .rz.sw { bottom: -3px; left: -3px; width: 10px; height: 10px; cursor: nesw-resize; }
.win.max .rz, .win.nores .rz { display: none; }
.win.open-anim { animation: winopen .16s ease-out; }
@keyframes winopen { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.win.closing { animation: winclose .12s ease-in forwards; }
@keyframes winclose { to { opacity: 0; transform: scale(.96); } }
@media (max-width: 699px) {
  .win:not(.dialog) { inset: 0 !important; width: auto !important; height: auto !important; border-radius: 0; padding: 0; border: 0; }
  .win:not(.dialog) .tbar { margin: 0; height: 36px; border-radius: 0; } .win:not(.dialog) .rz { display: none; }
  .wbtn { width: 28px; height: 28px; } .wbtn svg { width: 13px; height: 13px; }
  .win:not(.dialog) .wbtn.maxb { display: none; }
  .win.dialog { max-width: calc(100vw - 20px); }
}
.modal-veil { position: absolute; inset: 0; background: rgba(0,10,40,.28); pointer-events: auto; }

/* ---------- Barra de tareas ---------- */
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--tb-h); display: flex; align-items: stretch; z-index: 50; color: #fff; text-shadow: 1px 1px 1px rgba(0,0,40,.6);
  background: linear-gradient(180deg, #4a8bf0 0, #2e6ee0 5%, #245edb 14%, #2158d6 60%, #1f50c9 88%, #1941a5 100%); box-shadow: 0 -1px 0 #0b3aa8, 0 -2px 0 rgba(255,255,255,.18); }
.start { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 22px 0 12px; border: 0; margin-right: 8px; border-radius: 0 14px 14px 0; font: italic 800 19px/1 var(--ui); color: #fff; text-shadow: 1px 1px 2px rgba(0,50,0,.7);
  background: radial-gradient(120% 90% at 30% 0%, #7bd673 0, #3ea33a 40%, #2e8a2c 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset -2px -2px 3px rgba(0,60,0,.45), 2px 0 5px rgba(0,0,30,.45); }
.start:hover { filter: brightness(1.08); } .start.on { filter: brightness(.88); box-shadow: inset 2px 2px 4px rgba(0,50,0,.6); }
.start img { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.tasks { flex: 1; display: flex; align-items: center; gap: 3px; padding: 3px 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tasks::-webkit-scrollbar { display: none; }
.tb-btn { flex: 0 1 158px; min-width: 38px; height: 100%; display: flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid #1a49b8; border-radius: 3px; color: #fff; font-size: 12px; text-align: left; overflow: hidden;
  background: linear-gradient(180deg, #5c97f2 0, #3a7ae9 12%, #2f6ee0 90%, #2a63d4 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); text-shadow: 1px 1px 1px rgba(0,0,50,.5); }
.tb-btn:hover { filter: brightness(1.1); }
.tb-btn.act { background: linear-gradient(180deg, #1c4cb8 0, #1d55c8 20%, #2260d4 100%); box-shadow: inset 1px 1px 4px rgba(0,0,40,.6); }
.tb-btn img { width: 18px; height: 18px; flex: none; }
.tb-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; border-left: 1px solid #0c3b9a; box-shadow: inset 1px 0 0 #3aa3ff;
  background: linear-gradient(180deg, #19b2f4 0, #0f9bec 8%, #0c8be3 50%, #0a7bd6 92%, #0a6bc4 100%); position: relative; }
.tray .tray-btn { width: 24px; height: 24px; padding: 0; border: 0; background: none; display: grid; place-items: center; border-radius: 3px; }
.tray .tray-btn:hover { background: rgba(255,255,255,.18); }
.tray .tray-btn img, .tray .tray-btn svg { width: 20px; height: 20px; display: block; }
.tray .clock { font-size: 12px; min-width: 38px; text-align: right; text-shadow: 1px 1px 1px rgba(0,30,80,.55); }
.tray .gear svg { filter: drop-shadow(0 1px 1px rgba(0,0,40,.5)); }
.tray .gear.full svg { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 699px) { .start { padding: 0 16px 0 10px; font-size: 17px; } .start span { display: none; } .start { padding: 0 14px 0 10px; } .tb-btn { flex: 0 0 44px; justify-content: center; padding: 0; } .tb-btn span { display: none; } .tray { padding: 0 8px 0 10px; gap: 4px; } }

/* ---------- Menú Inicio ---------- */
.startmenu { position: absolute; left: 0; bottom: var(--tb-h); width: 400px; z-index: 60; border: 1px solid #0a3aa8; border-radius: 9px 9px 0 0; display: flex; flex-direction: column; color: #1b1b1b; text-shadow: none; box-shadow: 4px -2px 16px rgba(0,0,30,.55); background: #fff; transform-origin: bottom left; animation: smopen .14s ease-out; }
@keyframes smopen { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.sm-head { border-radius: 8px 8px 0 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: #fff; font-size: 17px; font-weight: 700; text-shadow: 1px 1px 2px rgba(0,0,60,.6); background: linear-gradient(180deg, #5a9bff 0, #2a6ae6 10%, #0b55dc 50%, #0a4fd6 100%); border-bottom: 2px solid #f99736; }
.sm-head .pic { width: 44px; height: 44px; border-radius: 5px; border: 2px solid #e7efff; overflow: hidden; background: #f1e4cc; flex: none; }
.sm-head .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-cols { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 0; }
.sm-l { background: #fff; padding: 6px 4px; border-right: 1px solid #b8cdf0; display: flex; flex-direction: column; }
.sm-r { background: #d3e5fa; padding: 6px 4px; display: flex; flex-direction: column; }
.sm-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 5px 7px; border: 0; background: none; text-align: left; border-radius: 3px; font-size: 12px; color: #1b1b1b; position: relative; }
.sm-item img { width: 30px; height: 30px; flex: none; }
.sm-item b { display: block; font-weight: 700; line-height: 1.15; } .sm-item small { display: block; color: #6b7280; font-size: 10.5px; line-height: 1.2; }
.sm-r .sm-item { font-weight: 600; color: #123; } .sm-r .sm-item img { width: 26px; height: 26px; }
.sm-item:hover, .sm-item:focus-visible { background: #316ac5; color: #fff; outline: none; } .sm-item:hover small { color: #dce8ff; }
.sm-sep { height: 1px; background: linear-gradient(90deg, transparent, #c3d3ec 20%, #c3d3ec 80%, transparent); margin: 5px 6px; }
.sm-all { position: static; margin-top: auto; justify-content: center; font-weight: 700; padding: 7px; } .sm-all .arrow { margin-left: auto; color: #3a8f3a; font-size: 14px; }
.sm-sub { position: absolute; left: 100%; bottom: 38px; min-width: 190px; background: #fff; border: 1px solid #7790c4; box-shadow: 3px 3px 8px rgba(0,0,40,.35); padding: 3px; z-index: 2; }
.sm-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 6px 10px; background: linear-gradient(180deg, #3f86f0 0, #1b5ee0 12%, #1553d4 100%); }
.sm-foot button { display: flex; align-items: center; gap: 6px; background: none; border: 0; color: #fff; font-size: 12px; padding: 3px 7px; border-radius: 3px; text-shadow: 1px 1px 1px rgba(0,0,50,.5); }
.sm-foot button:hover { background: rgba(255,255,255,.2); } .sm-foot img { width: 22px; height: 22px; }
@media (max-width: 699px) { .startmenu { width: min(100vw, 400px); border-radius: 0 9px 0 0; max-height: calc(100% - var(--tb-h)); } .sm-cols { overflow-y: auto; } .sm-item { padding: 8px 7px; font-size: 13px; } .sm-sub { left: 8%; bottom: 100%; } }

/* ---------- Globo, menú contextual, volumen ---------- */
.balloon { position: absolute; right: 8px; bottom: calc(var(--tb-h) + 10px); width: 280px; max-width: calc(100% - 16px); z-index: 70; background: #ffffe1; color: #111; border: 1px solid #1c1c1c; border-radius: 9px; padding: 9px 26px 11px 40px; box-shadow: 3px 4px 10px rgba(0,0,30,.45); text-shadow: none; animation: ballon .35s cubic-bezier(.2,.9,.3,1.2); }
.balloon::after { content: ""; position: absolute; right: 40px; bottom: -9px; width: 14px; height: 14px; background: #ffffe1; border-right: 1px solid #1c1c1c; border-bottom: 1px solid #1c1c1c; transform: rotate(45deg); }
.balloon img.bi { position: absolute; left: 9px; top: 9px; width: 24px; height: 24px; }
.balloon b { display: block; font-size: 12.5px; margin-bottom: 2px; } .balloon p { margin: 0; font-size: 12px; line-height: 1.35; }
.balloon .bx { position: absolute; right: 5px; top: 4px; width: 18px; height: 18px; border: 0; background: none; font-size: 15px; line-height: 1; color: #555; border-radius: 3px; } .balloon .bx:hover { background: #0001; }
@keyframes ballon { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
.ctxmenu, .popup { position: absolute; z-index: 80; background: #fff; border: 1px solid #7790c4; box-shadow: 3px 3px 8px rgba(0,0,40,.4); padding: 3px; min-width: 170px; color: #111; text-shadow: none; font-size: 12px; }
.ctxmenu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 5px 24px 5px 22px; } .ctxmenu button:hover { background: #316ac5; color: #fff; } .ctxmenu hr { border: 0; border-top: 1px solid #d3d3d3; margin: 3px 2px; }
.popup { right: 6px; bottom: calc(var(--tb-h) + 6px); padding: 10px 12px; min-width: 200px; border-radius: 6px 6px 0 0; }
.popup h4 { margin: 0 0 6px; font-size: 12px; } .popup .row { display: flex; align-items: center; gap: 8px; margin: 3px 0; } .popup .row label { display: flex; gap: 6px; align-items: center; }
.popup input[type=range] { width: 130px; accent-color: #2a6ae6; }
.slots { display: flex; gap: 8px; margin: 6px 0 4px; }
.slot { flex: 1; text-align: center; font-size: 10.5px; color: #555; } .slot svg { width: 44px; height: 44px; display: block; margin: 0 auto 2px; } .slot.have { color: #111; font-weight: 700; }

/* ---------- Cuadros de diálogo ---------- */
.dlg { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 14px; background: var(--beige); }
.dlg .msg { display: flex; gap: 14px; align-items: flex-start; } .dlg .msg img { width: 40px; height: 40px; flex: none; } .dlg .msg p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; } .dlg .msg p b { display: block; margin-bottom: 4px; font-size: 13px; }
.dlg .btns { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.btn { min-width: 78px; padding: 4px 14px; border: 1px solid #003c74; border-radius: 3px; background: linear-gradient(180deg, #fff 0, #f4f3ee 40%, #e5e3d6 90%, #d6d0c0 100%); font-size: 12px; box-shadow: inset 0 0 0 1px #fff; color: #111; }
.btn:hover { box-shadow: inset 0 0 0 2px #f9c36b; } .btn:active { background: linear-gradient(180deg, #d6d0c0, #ece9d8); } .btn.primary { box-shadow: inset 0 0 0 2px #7aa9f0; } .btn:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.btn[disabled] { color: #8a8a8a; border-color: #a2a2a2; box-shadow: none; }
@media (max-width: 699px) { .btn { padding: 8px 14px; font-size: 13px; } .dlg .msg p { font-size: 13px; } }

/* ---------- Explorador ---------- */
.xp-menubar { display: flex; gap: 2px; padding: 2px 4px; border-bottom: 1px solid #fff; background: var(--beige); font-size: 12px; box-shadow: 0 1px 0 var(--beige-d); }
.xp-menubar span { padding: 2px 8px; border-radius: 2px; } .xp-menubar span:hover { background: #316ac5; color: #fff; }
.xp-tool { display: flex; align-items: center; gap: 2px; padding: 3px 4px; background: linear-gradient(180deg, #f6f4ea, #ece9d8); border-bottom: 1px solid var(--beige-d); flex-wrap: wrap; }
.xp-tool button { display: flex; align-items: center; gap: 4px; padding: 2px 7px; min-height: 26px; border: 1px solid transparent; border-radius: 3px; background: none; font-size: 12px; color: #111; }
.xp-tool button:hover:not([disabled]) { border-color: #a0b0d8; background: linear-gradient(180deg, #fff, #e8eefc); } .xp-tool button[disabled] { opacity: .45; }
.xp-tool button svg { width: 18px; height: 18px; } .xp-tool .sep { width: 1px; align-self: stretch; margin: 2px 3px; background: #c7c3b0; }
.xp-addr { display: flex; align-items: center; gap: 6px; padding: 3px 6px; background: var(--beige); border-bottom: 1px solid var(--beige-d); font-size: 12px; }
.xp-addr .box { flex: 1; display: flex; align-items: center; gap: 5px; min-width: 0; background: #fff; border: 1px solid #7f9db9; padding: 2px 5px; } .xp-addr .box img { width: 16px; height: 16px; } .xp-addr .box span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.xp-addr .go { display: flex; align-items: center; gap: 3px; border: 0; background: none; padding: 0 4px; }
.go-ico { width: 18px; height: 18px; border-radius: 3px; background: linear-gradient(180deg, #6fd06c, #2f9b2c); display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.xp-main { flex: 1; display: flex; min-height: 0; background: #fff; }
.xp-side { flex: none; width: 190px; padding: 10px 9px; overflow-y: auto; background: linear-gradient(180deg, #7ba2e7 0, #6375d6 100%); display: flex; flex-direction: column; gap: 10px; }
.xp-box { border-radius: 5px 5px 0 0; overflow: hidden; background: #d6dff7; font-size: 11.5px; }
.xp-box h5 { margin: 0; padding: 5px 9px; font-size: 11.5px; color: #fff; background: linear-gradient(90deg, #0c3da8, #3b7be8); text-shadow: 1px 1px 1px rgba(0,0,60,.5); }
.xp-box.light h5 { color: #1b3a8f; background: linear-gradient(90deg, #fff, #c6d3f7); text-shadow: none; } .xp-box .in { padding: 7px 9px 9px; display: flex; flex-direction: column; gap: 5px; line-height: 1.3; }
.xp-box a { display: flex; align-items: center; gap: 6px; color: #1b3a8f; text-decoration: none; padding: 1px 0; } .xp-box a:hover { color: #3a6ae6; text-decoration: underline; } .xp-box a img { width: 16px; height: 16px; }
.xp-box .det-ico { width: 44px; height: 44px; align-self: flex-start; } .xp-box small { color: #335; }
.xp-view { flex: 1; min-width: 0; overflow: auto; padding: 8px; display: grid; grid-template-columns: repeat(auto-fill, 92px); grid-auto-rows: max-content; gap: 6px 4px; align-content: start; }
.item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 5px 2px 4px; border: 1px solid transparent; border-radius: 3px; background: none; color: #111; font-size: 12px; line-height: 1.2; outline: none; }
.item img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 4px; } .item img.thumb { width: 52px; height: 40px; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px #9aa, 1px 2px 4px rgba(0,0,0,.4); margin: 4px 0 6px; }
.item span { padding: 1px 3px; word-break: break-word; border-radius: 2px; }
.item.sel span, .item:focus-visible span { background: #316ac5; color: #fff; } .item.sel img { filter: sepia(1) hue-rotate(185deg) saturate(2.6) brightness(.95); }
.item.drive { flex-direction: row; text-align: left; gap: 10px; align-items: center; width: 100%; grid-column: 1 / -1; padding: 8px 10px; max-width: 420px; } .item.drive img { margin: 0; width: 44px; height: 44px; } .item.drive .dd { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.item.drive .bar { height: 12px; border: 1px solid #8b92a0; background: #fff; border-radius: 2px; overflow: hidden; } .item.drive .bar i { display: block; height: 100%; background: linear-gradient(180deg, #8fb4f5, #2f67d8); } .item.drive small { color: #667; }
.xp-view h6 { grid-column: 1 / -1; margin: 6px 0 0; padding-bottom: 3px; font-size: 12px; color: #1b3a8f; border-bottom: 1px solid #c9d4f2; }
.xp-status { flex: none; display: flex; gap: 12px; padding: 3px 8px; font-size: 11.5px; background: var(--beige); border-top: 1px solid #fff; box-shadow: 0 -1px 0 var(--beige-d); color: #333; }
@media (max-width: 699px) { .xp-side { display: none; } .xp-view { grid-template-columns: repeat(auto-fill, 86px); justify-content: space-around; } .xp-tool button { padding: 2px 9px; min-height: 34px; } .xp-tool button span { display: none; } .xp-tool .lbl-keep span { display: inline; } }

/* ---------- Visor de imágenes ---------- */
.viewer-stage { flex: 1; min-height: 0; background: #2a2d34 radial-gradient(circle at 50% 40%, #3a3e48, #20232a); overflow: auto; display: grid; place-items: center; position: relative; }
.viewer-stage img { max-width: 100%; max-height: 100%; box-shadow: 0 4px 18px rgba(0,0,0,.6); border: 6px solid #f3efe4; background: #f3efe4; }
.viewer-stage.zoom { display: block; } .viewer-stage.zoom img { max-width: none; max-height: none; margin: 10px; }

/* ---------- Bloc de notas ---------- */
.np-text { flex: 1; min-height: 0; width: 100%; border: 0; resize: none; padding: 6px 8px; background: #fff; font: 400 13px/1.5 var(--mono); color: #111; outline: none; white-space: pre-wrap; overflow: auto; user-select: text; -webkit-user-select: text; cursor: text; }
@media (max-width: 699px) { .np-text { font-size: 14px; } }

/* ---------- Reproductor ---------- */
.mp { flex: 1; display: flex; flex-direction: column; background: linear-gradient(180deg, #1c2b4d, #0b1330); color: #cfe0ff; padding: 8px; gap: 8px; text-shadow: 0 0 4px rgba(120,170,255,.4); }
.mp-screen { flex: 1; min-height: 120px; position: relative; border-radius: 6px; overflow: hidden; border: 1px solid #3b5aa8; background: radial-gradient(circle at 50% 80%, #12285e, #060b1e); box-shadow: inset 0 0 20px rgba(0,0,0,.7); }
.mp-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mp-title { position: absolute; left: 10px; top: 8px; right: 10px; font-size: 13px; font-weight: 700; color: #e6efff; } .mp-title small { display: block; font-weight: 400; color: #7f96cf; font-size: 11px; }
.mp-seek { display: flex; align-items: center; gap: 8px; font-size: 11px; font-variant-numeric: tabular-nums; }
.mp input[type=range] { flex: 1; accent-color: #6fb1ff; height: 18px; }
.mp-ctl { display: flex; align-items: center; gap: 8px; } .mp-ctl .sp { flex: 1; }
.mp-b { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #7aa3f0; background: radial-gradient(circle at 35% 25%, #5d8cf0, #1c3d9c 80%); display: grid; place-items: center; color: #fff; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.35); }
.mp-b.big { width: 44px; height: 44px; } .mp-b svg { width: 16px; height: 16px; fill: #fff; } .mp-b:hover { filter: brightness(1.2); }
.mp-vol { display: flex; align-items: center; gap: 4px; font-size: 11px; } .mp-vol input { width: 90px; flex: none; }

/* ---------- Propiedades de pantalla ---------- */
.dp { flex: 1; display: flex; flex-direction: column; padding: 8px 8px 8px; background: var(--beige); min-height: 0; }
.tabs { display: flex; gap: 0; padding-left: 4px; position: relative; z-index: 1; } .tabs button { padding: 4px 12px 3px; border: 1px solid #919b9c; border-bottom: 0; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #fff, #ecebe5); font-size: 12px; margin-right: -1px; margin-top: 2px; } .tabs button.on { margin-top: 0; padding-top: 6px; padding-bottom: 4px; margin-bottom: -1px; background: #fcfcfe; border-top: 2px solid #f9a02b; z-index: 2; }
.tabpane { flex: 1; min-height: 0; overflow: auto; background: #fcfcfe; border: 1px solid #919b9c; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.dp-mon { align-self: center; width: 180px; padding: 18px 16px 14px; background: linear-gradient(180deg, #e8e6dc, #bdb9a8); border-radius: 10px 10px 4px 4px; border: 1px solid #8d8a7a; position: relative; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.dp-mon::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 60px; height: 9px; margin-left: -30px; background: linear-gradient(180deg, #bdb9a8, #8d8a7a); border-radius: 0 0 5px 5px; }
.dp-mon .scr { height: 100px; border: 2px solid #111; background: #111 center/cover; border-radius: 4px; position: relative; overflow: hidden; } .dp-mon .scr::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.18) 2px 3px); }
.dp-list { height: 112px; overflow: auto; background: #fff; border: 1px solid #7f9db9; } .dp-list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 3px 6px; border: 0; background: none; text-align: left; font-size: 12px; } .dp-list button img { width: 34px; height: 22px; object-fit: cover; border: 1px solid #889; } .dp-list button.on { background: #316ac5; color: #fff; }
.dp label.f { display: flex; align-items: center; gap: 8px; font-size: 12px; } .dp select { border: 1px solid #7f9db9; background: #fff; padding: 2px 4px; font-size: 12px; min-width: 130px; }
.dp-btns { display: flex; justify-content: flex-end; gap: 6px; padding-top: 8px; }
.dp fieldset { border: 1px solid #d0d0bf; border-radius: 3px; margin: 0; padding: 8px 10px; } .dp legend { color: #0046d5; font-size: 12px; padding: 0 3px; }

/* ---------- Sala (lanzador) ---------- */
#roomlayer { position: absolute; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; }
.rl-bar { flex: none; height: 26px; display: flex; align-items: center; gap: 7px; padding: 0 4px 0 8px; color: #fff; font-weight: 700; font-size: 12px; text-shadow: 1px 1px 0 #0a1a78; background: linear-gradient(180deg, #4b99ff 0, #2a72ec 8%, #0b55dc 22%, #0a4fd6 70%, #0b58e0 100%); }
.rl-bar img { width: 16px; height: 16px; } .rl-bar .ttl { flex: 1; }
.rl-bar .wbtn { width: 20px; height: 20px; }
#roomlayer iframe { flex: 1; width: 100%; border: 0; background: #000; display: block; }
@media (max-width: 699px) { .rl-bar { height: 34px; } .rl-bar .wbtn { width: 26px; height: 26px; } }
.loading { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--beige); align-items: stretch; } .loading p { margin: 0; font-size: 12.5px; } .loading .lb { height: 16px; border: 1px solid #7a7a7a; border-radius: 3px; background: #fff; padding: 2px; overflow: hidden; position: relative; } .loading .lb i { position: absolute; top: 2px; bottom: 2px; width: 10px; margin-right: 2px; background: linear-gradient(180deg, #8de587, #2fa42b 50%, #8de587); animation: xpblocks 1.3s linear infinite; left: -12px; } .loading .lb i:nth-child(2) { animation-delay: .12s; margin-left: 12px } .loading .lb i:nth-child(3) { animation-delay: .24s; margin-left: 24px }
.loading .lb { }
@keyframes xpblocks { from { transform: translateX(0); } to { transform: translateX(310px); } }

/* ---------- Protector de pantalla ---------- */
#saver { position: absolute; inset: 0; z-index: 95; background: #000; cursor: none; }
#saver canvas { width: 100%; height: 100%; display: block; }
