/* modules/actualizaciones/actualizaciones.css */
.updates-card{min-height:0}
.updates-head{flex-wrap:wrap}
.version-chip{
  display:inline-flex;align-items:center;justify-content:center;
  padding:7px 11px;border-radius:999px;font-size:12px;font-weight:800;
  color:var(--text);background:rgba(25,162,128,.14);border:1px solid rgba(25,162,128,.34)
}
.updates-body{padding:0!important}
.updates-scroll{height:100%;overflow:auto;padding:14px;-webkit-overflow-scrolling:touch}
.updates-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.75fr);gap:14px}
.updates-panel,.updates-history{
  border:1px solid var(--border);border-radius:16px;background:rgba(255,255,255,.035);overflow:hidden
}
.updates-panel{padding:16px}
.updates-panel__title{display:flex;gap:11px;align-items:flex-start;margin-bottom:16px}
.updates-panel__title>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.updates-panel__title strong{font-size:14px}
.updates-panel__title span:not(.updates-panel__icon){font-size:12px;color:var(--muted);line-height:1.45}
.updates-panel__icon,.updates-history__icon{
  width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;
  background:rgba(25,162,128,.12);border:1px solid rgba(25,162,128,.28)
}
.updates-form{display:flex;flex-direction:column;gap:14px}
.update-drop{
  min-height:160px;border:1px dashed rgba(255,255,255,.24);border-radius:16px;
  background:rgba(255,255,255,.035);display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:7px;text-align:center;padding:22px;cursor:pointer;transition:.18s ease
}
.update-drop:hover,.update-drop.is-drag{border-color:rgba(25,162,128,.65);background:rgba(25,162,128,.08)}
.update-drop.has-file{border-style:solid;border-color:rgba(25,162,128,.42);background:rgba(25,162,128,.07)}
.update-drop input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.update-drop__icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:rgba(25,162,128,.12);margin-bottom:2px}
.update-drop strong{font-size:14px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.update-drop>span:last-of-type{color:var(--muted);font-size:12px}
.updates-field{display:flex;flex-direction:column;gap:7px}
.updates-field label{font-size:12px;font-weight:700}
.updates-field small{font-size:11px;color:var(--muted);line-height:1.45}
.update-security{display:flex;gap:10px;align-items:flex-start;border-radius:14px;padding:11px 12px;background:rgba(99,102,241,.08);border:1px solid rgba(99,102,241,.18)}
.update-security>span{flex:0 0 18px;margin-top:1px}
.update-security p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.update-security strong{color:var(--text)}
.updates-actions{display:flex;justify-content:flex-end}
.updates-actions .btn{min-width:190px}
.updates-actions .btn:disabled{opacity:.55;cursor:not-allowed}
.update-progress{display:flex;flex-direction:column;gap:7px}
.update-progress.hidden,.update-message.hidden{display:none}
.update-progress__bar{height:7px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden}
.update-progress__bar span{display:block;width:0;height:100%;border-radius:inherit;background:var(--accent);transition:width .2s ease}
.update-progress__text{font-size:11px;color:var(--muted)}
.update-message{padding:11px 12px;border-radius:13px;font-size:12px;line-height:1.5;border:1px solid transparent}
.update-message.success{background:rgba(25,162,128,.10);border-color:rgba(25,162,128,.28);color:var(--text)}
.update-message.error{background:rgba(255,92,119,.09);border-color:rgba(255,92,119,.28);color:#ff91a4}
.update-stat{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.07);font-size:12px}
.update-stat span{color:var(--muted)}
.update-stat strong{text-align:right}
.update-note{margin-top:14px;padding:12px;border-radius:13px;background:rgba(255,255,255,.035);color:var(--muted);font-size:11px;line-height:1.55}
.update-note code{color:var(--text);font-size:11px}
.updates-history{margin-top:14px}
.updates-history__head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 16px;border-bottom:1px solid var(--border)}
.updates-history__head>div{display:flex;flex-direction:column;gap:4px}
.updates-history__head strong{font-size:13px}
.updates-history__head span:not(.updates-history__icon){font-size:11px;color:var(--muted)}
.updates-history__list{display:flex;flex-direction:column}
.update-history-row{display:flex;justify-content:space-between;gap:16px;padding:13px 16px;border-bottom:1px solid rgba(255,255,255,.06)}
.update-history-row:last-child{border-bottom:0}
.update-history-main,.update-history-meta{display:flex;gap:4px;flex-direction:column;min-width:0}
.update-history-main strong{font-size:13px}
.update-history-main span{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:620px}
.update-history-meta{align-items:flex-end;flex:0 0 auto;font-size:11px;color:var(--muted)}
.updates-empty{padding:22px 16px;text-align:center;color:var(--muted);font-size:12px}
body.theme-light .updates-panel,body.theme-light .updates-history,body.theme-light .update-drop{background:rgba(15,23,42,.018)}
body.theme-light .update-drop{border-color:rgba(15,23,42,.20)}
body.theme-light .update-stat,body.theme-light .update-history-row{border-color:rgba(15,23,42,.08)}
body.theme-light .update-progress__bar{background:rgba(15,23,42,.08)}
body.theme-light .update-message.error{color:#be123c}
@media(max-width:900px){
  .updates-grid{grid-template-columns:1fr}
  .updates-scroll{padding:10px}
  .updates-panel{padding:14px}
  .update-history-row{flex-direction:column;gap:8px}
  .update-history-meta{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:10px}
  .updates-actions .btn{width:100%}
}
@media(max-width:520px){
  .update-drop{min-height:145px;padding:18px 12px}
  .updates-head{align-items:flex-start}
  .updates-panel__title{margin-bottom:13px}
}
