/* O app "Sobre esta VPS" e o medidor de memória do topo. Mesmos materiais do sistema (cosmos.css). */

/* ------------------------------------------------------------ o medidor no topo */
.b-ram { gap: 7px; padding: 0 8px; }
.b-ram:empty { display: none; }
.b-ram-texto { font-size: 12.5px; font-weight: 500; }
.b-ram-barra { display: block; width: 34px; height: 4px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .22); }
.b-ram-barra i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: #fff; transition: width .6s var(--ease-out); }
.b-ram-barra.alta i { background: #ff6b5e; }

/* ------------------------------------------------------------ o app */
.janela.j-vps:not(.cheia) { max-width: 820px; }
.vps { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.vps-rolo { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 4px 14px 16px; }
.vps-rolo > * { width: 100%; max-width: 860px; margin-inline: auto; }
.vps-estado { padding: 30px 0; text-align: center; color: var(--tinta-3); }
.vps-topo { display: flex; align-items: center; gap: 18px; padding: 10px 6px 14px; }
.vps-icone { flex: none; width: 96px; height: 96px; }
.vps-icone img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vps-topo > div { flex: 1; min-width: 0; }
.vps-topo h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.vps-topo p { font-size: 13.5px; color: var(--tinta-2); }
.vps-fatos { display: flex; margin: 0; }
.vps-fatos div { padding: 0 18px; text-align: center; }
.vps-fatos div + div { position: relative; }
/* separador que some nas pontas, sem encostar em cima nem embaixo */
.vps-fatos div + div::before { content: ""; position: absolute; left: 0; top: -4px; bottom: -4px; width: 1px; background: linear-gradient(180deg, rgba(var(--f), 0), rgba(var(--f), .26) 30%, rgba(var(--f), .26) 70%, rgba(var(--f), 0)); }
.vps-fatos dt { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.vps-fatos dd { margin: 3px 0 0; font-size: 12px; color: var(--tinta-3); white-space: nowrap; }
.vps-bloco { padding: 14px 14px; border-radius: 8px; background: var(--poco); display: flex; flex-direction: column; gap: 16px; }
.vps-medida > div:first-child { display: flex; align-items: baseline; gap: 10px; margin-bottom: 7px; font-size: 14px; }
.vps-medida b { font-weight: 600; }
.vps-medida span { flex: 1; font-size: 13px; color: var(--tinta-2); }
.vps-medida em { font-style: normal; font-size: 13px; color: var(--tinta-2); }
.vps-barra { height: 6px; border-radius: 99px; overflow: hidden; background: rgba(var(--f), .12); }
.vps-barra i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: var(--laranja); transition: width .6s var(--ease-out); }
.vps-barra.alta i { background: #ff5a4e; }
.vps-fatias { display: flex; gap: 2px; height: 14px; border-radius: 5px; overflow: hidden; background: rgba(var(--f), .1); }
.vps-fatias i { flex: none; width: var(--w); min-width: 2px; height: 100%; background: var(--c); }
.vps-legenda { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 22px; }
.vps-legenda li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tinta-2); }
.vps-legenda i { flex: none; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.vps-legenda span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vps-legenda b { font-weight: 500; color: var(--tinta); }
.vps-projetos { gap: 4px; padding: 12px 8px 8px; }
.vps-projetos h3 { padding: 0 8px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--tinta-3); }
.vps-linha { display: grid; grid-template-columns: 10px minmax(0, 1fr) 84px 84px 84px; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 4px 8px; border-radius: 7px; text-align: left; font-size: 14px; transition: background-color .14s ease; }
.vps-linha b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vps-linha span { text-align: right; font-size: 13px; color: var(--tinta-2); }
.vps-projeto.aberto .vps-linha { background: rgba(var(--f), .1); }
.vps-luz { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--f), .25); }
.vps-luz.on { background: #30d158; }
.vps-luz.meio { background: #ffb340; }
.vps-detalhe { margin: 2px 0 8px 28px; padding: 6px 12px; border-radius: 7px; background: rgba(var(--f), .05); animation: ai-entra .24s var(--ease-out) both; }
.vps-par { display: flex; align-items: baseline; gap: 10px; min-height: 28px; font-size: 13.5px; }
.vps-par span { width: 118px; flex: none; color: var(--tinta-3); }
.vps-par a { color: var(--laranja-claro); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vps-par b { font-weight: 500; }
.vps-par em { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--tinta-3); white-space: nowrap; }
.vps-par em.ok { color: #30d158; }
.vps-par em.fora { color: var(--erro); }
@media (hover: hover) and (pointer: fine) { .vps-projeto:not(.aberto) .vps-linha:hover { background: rgba(var(--f), .07); } .vps-par a:hover { text-decoration: underline; } }
:root[data-tema="claro"] .janela .vps-par em.ok { color: #1a8f3c; }

@media (max-width: 860px) {
  .b-ram-texto { display: none; }
  .vps-topo { flex-wrap: wrap; }
  .vps-fatos { width: 100%; justify-content: space-between; }
  .vps-fatos div { flex: 1; padding: 0 8px; }
  .vps-linha { grid-template-columns: 10px minmax(0, 1fr) 70px 70px; min-height: 44px; font-size: 15px; }
  .vps-linha span:nth-of-type(2) { display: none; }
  .vps-detalhe { margin-left: 8px; }
  .vps-par { flex-wrap: wrap; }
  .vps-par span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .vps-barra i, .b-ram-barra i { transition: none; } .vps-detalhe { animation: none; } }
