/* Samurai Store V1.30.4 · Cuentas compartidas plegables */
#accountsSection[data-account-view-active="list"] .shared-inventory-group{
  border:1px solid #20385a;
  border-radius:18px;
  background:linear-gradient(180deg,#0a1728,#07111f);
  overflow:visible;
  box-shadow:0 12px 34px rgba(0,0,0,.14);
}
#accountsSection[data-account-view-active="list"] .shared-inventory-summary{
  list-style:none;
  cursor:pointer;
  display:grid;
  grid-template-columns:28px 22px 58px minmax(220px,1fr) 95px minmax(250px,.8fr);
  align-items:center;
  gap:14px;
  min-height:74px;
  padding:10px 16px;
  border-radius:18px;
  background:linear-gradient(100deg,#0d1d32,#0b1729 72%,#111a34);
  user-select:none;
}

#accountsSection[data-account-view-active="list"] .shared-group-select-wrap{
  display:flex;align-items:center;justify-content:center;cursor:pointer;align-self:stretch;
}
#accountsSection[data-account-view-active="list"] .shared-group-select{
  width:20px;height:20px;accent-color:#7c4dff;cursor:pointer;margin:0;
}
#accountsSection[data-account-view-active="list"] .shared-inventory-group.selected{
  border-color:#6654dc;box-shadow:0 0 0 1px rgba(124,77,255,.22),0 12px 34px rgba(0,0,0,.14);
}
#accountsSection[data-account-view-active="list"] .shared-inventory-group.partially-selected{
  border-color:#455d8c;
}

#accountsSection[data-account-view-active="list"] .shared-inventory-summary::-webkit-details-marker{display:none}
#accountsSection[data-account-view-active="list"] .shared-inventory-summary::marker{display:none}
#accountsSection[data-account-view-active="list"] .shared-inventory-chevron{
  color:#7590b7;font-size:18px;transition:transform .18s ease;text-align:center;
}
#accountsSection[data-account-view-active="list"] .shared-inventory-group:not([open]) .shared-inventory-chevron{transform:rotate(-90deg)}
#accountsSection[data-account-view-active="list"] .shared-inventory-summary .inventory-service-icon{width:54px!important;height:54px!important}
#accountsSection[data-account-view-active="list"] .shared-inventory-heading{min-width:0;display:flex;flex-direction:column;gap:3px}
#accountsSection[data-account-view-active="list"] .shared-inventory-heading b{color:#f7f9ff;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#accountsSection[data-account-view-active="list"] .shared-inventory-heading strong{color:#9cb0ce;font-size:10px;letter-spacing:.06em}
#accountsSection[data-account-view-active="list"] .shared-inventory-heading small{color:#8d79f6;font-size:10px;font-weight:800}
#accountsSection[data-account-view-active="list"] .shared-inventory-stats{text-align:center;border:1px solid #253d61;background:#081423;border-radius:12px;padding:8px 10px}
#accountsSection[data-account-view-active="list"] .shared-inventory-stats b{display:block;color:#fff;font-size:15px}
#accountsSection[data-account-view-active="list"] .shared-inventory-stats span{display:block;color:#7288aa;font-size:8px;text-transform:uppercase;letter-spacing:.07em;margin-top:2px}
#accountsSection[data-account-view-active="list"] .shared-inventory-statusline{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
#accountsSection[data-account-view-active="list"] .shared-inventory-profiles{display:grid;gap:8px;padding:10px 12px 12px;border-top:1px solid #182d49}

#accountsSection[data-account-view-active="list"] .shared-inventory-toggle-label{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:28px;padding:5px 10px;border:1px solid #38517d;border-radius:9px;
  background:#101f37;color:#c6d5ee;font-size:9px;font-weight:900;white-space:nowrap;
}
#accountsSection[data-account-view-active="list"] .shared-inventory-group:not([open]){overflow:hidden}
#accountsSection[data-account-view-active="list"] .shared-inventory-group:not([open]) .shared-inventory-summary{border-radius:18px}
#accountsSection[data-account-view-active="list"] .shared-inventory-group[open] .shared-inventory-summary{border-radius:18px 18px 0 0}
#accountsSection[data-account-view-active="list"] .shared-inventory-group[open] .shared-inventory-toggle-label{
  background:#172a4a;color:#fff;border-color:#536fa5;
}

/* Los perfiles siguen siendo unidades independientes para poder asignarlos uno por uno,
   pero dentro de la cuenta compartida se muestran como filas compactas. */
@media(min-width:901px){
  #accountsSection[data-account-view-active="list"] .shared-profile-card{
    min-height:92px!important;
    grid-template-columns:minmax(260px,.9fr) minmax(300px,1fr) minmax(175px,.55fr)!important;
    padding-top:12px!important;padding-bottom:12px!important;
    background:#081421!important;border-color:#17304e!important;
  }
  #accountsSection[data-account-view-active="list"] .shared-profile-card .inventory-service-icon{display:none!important}
  #accountsSection[data-account-view-active="list"] .shared-profile-card .inventory-card-top{grid-template-columns:minmax(0,1fr) 58px!important;padding-left:30px!important}
  #accountsSection[data-account-view-active="list"] .shared-profile-card .inventory-card-title>b,
  #accountsSection[data-account-view-active="list"] .shared-profile-card .inventory-card-title>strong{display:none!important}
  #accountsSection[data-account-view-active="list"] .shared-profile-card .inventory-card-title small{font-size:12px!important;color:#e7ecf7!important;font-weight:800!important}
  #accountsSection[data-account-view-active="list"] .shared-profile-card .account-type-chip{display:none!important}
}

@media(max-width:900px){
  #accountsSection[data-account-view-active="list"] .shared-inventory-summary{
    grid-template-columns:26px 18px 46px minmax(0,1fr) 72px;
    gap:9px;padding:9px 10px;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-summary .inventory-service-icon{width:44px!important;height:44px!important}
  #accountsSection[data-account-view-active="list"] .shared-inventory-statusline{grid-column:3/-1;justify-content:flex-start;padding-top:2px}
  #accountsSection[data-account-view-active="list"] .shared-inventory-heading b{font-size:12px}
  #accountsSection[data-account-view-active="list"] .shared-inventory-heading strong{font-size:9px}
  #accountsSection[data-account-view-active="list"] .shared-inventory-heading small{font-size:9px}
  #accountsSection[data-account-view-active="list"] .shared-inventory-stats{padding:6px 7px}
  #accountsSection[data-account-view-active="list"] .shared-inventory-profiles{padding:8px;gap:8px}
  #accountsSection[data-account-view-active="list"] .shared-profile-card .inventory-service-icon{display:none!important}
  #accountsSection[data-account-view-active="list"] .shared-profile-card .inventory-card-top{grid-template-columns:minmax(0,1fr) 54px!important;padding-left:28px!important}
  #accountsSection[data-account-view-active="list"] .shared-profile-card .inventory-card-title>b,
  #accountsSection[data-account-view-active="list"] .shared-profile-card .inventory-card-title>strong{display:none!important}
  #accountsSection[data-account-view-active="list"] .shared-profile-card .inventory-card-title small{font-size:11px!important;color:#e7ecf7!important;font-weight:800!important}
  #accountsSection[data-account-view-active="list"] .shared-profile-card .account-type-chip{display:none!important}
}

@media(max-width:600px){
  #accountsSection[data-account-view-active="list"] .shared-inventory-summary{
    grid-template-columns:24px 16px 40px minmax(0,1fr) 62px;
    min-height:66px;gap:7px;padding:8px 9px;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-summary .inventory-service-icon{width:38px!important;height:38px!important}
  #accountsSection[data-account-view-active="list"] .shared-inventory-heading small{display:none}
  #accountsSection[data-account-view-active="list"] .shared-inventory-statusline{gap:4px}
  #accountsSection[data-account-view-active="list"] .shared-inventory-toggle-label{min-height:25px;padding:4px 8px;font-size:8px}
}

/* =========================================================
   Samurai Store V1.30.5 · Resumen compartido con el mismo
   formato visual que una tarjeta normal de Cuentas.
   ========================================================= */
@media(min-width:1100px){
  #accountsSection[data-account-view-active="list"] .shared-inventory-group{
    min-height:168px;
    border-radius:18px;
    background:#0a101d;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-summary{
    position:relative;
    display:grid;
    grid-template-columns:54px minmax(0,1fr) 66px;
    grid-template-rows:auto 1fr;
    align-items:start;
    column-gap:13px;
    row-gap:0;
    min-height:168px;
    padding:18px 18px 16px 48px;
    border-radius:18px;
    background:
      radial-gradient(circle at 100% 0,rgba(83,74,255,.08),transparent 34%),
      #0a101d;
  }
  #accountsSection[data-account-view-active="list"] .shared-group-select-wrap{
    position:absolute;
    left:12px;
    top:13px;
    width:25px;
    height:25px;
    align-self:auto;
    z-index:2;
  }
  #accountsSection[data-account-view-active="list"] .shared-group-select{
    width:25px;height:25px;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-chevron{
    display:none;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-summary .inventory-service-icon{
    grid-column:1;grid-row:1;
    width:54px!important;height:54px!important;
    border-radius:15px!important;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-heading{
    grid-column:2;grid-row:1;
    align-self:start;
    gap:0;
    padding-top:1px;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-heading b{
    font-size:15px!important;line-height:1.25;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-heading strong{
    margin-top:5px;font-size:11px!important;letter-spacing:.06em;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-heading small{
    margin-top:6px;font-size:10px!important;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-stats{
    grid-column:3;grid-row:1;
    position:relative;
    width:62px;height:62px;
    display:grid;place-items:center;
    padding:0;
    border-radius:50%;
    border:0;
    background:conic-gradient(#20d59b var(--shared-ring,0%),#172238 0);
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-stats::after{
    content:"";position:absolute;inset:6px;border-radius:50%;
    background:#0a101d;border:1px solid #1a2740;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-stats b{
    position:relative;z-index:2;font-size:12px;color:#20d59b;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-stats span{
    position:absolute;z-index:2;bottom:-16px;
    color:#60718c;font-size:9px;text-transform:none;letter-spacing:0;
    white-space:nowrap;margin:0;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-statusline{
    grid-column:1/-1;grid-row:2;
    align-self:end;
    justify-content:flex-start;
    gap:7px;
    margin-top:18px;
    padding-top:11px;
    border-top:1px solid #162238;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-statusline .account-chip{
    min-height:27px;padding:0 10px;font-size:10px;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-toggle-label{
    min-height:27px;padding:0 10px;border-radius:999px;
    border-color:#2b3970;background:#11193b;color:#a9b5ff;
    font-size:10px;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-group[open] .shared-inventory-summary{
    min-height:168px;
    border-radius:18px 18px 0 0;
  }
}

@media(max-width:1099px) and (min-width:701px){
  #accountsSection[data-account-view-active="list"] .shared-inventory-group:not([open]) .shared-inventory-summary{
    min-height:128px;
    padding-top:14px;padding-bottom:14px;
  }
}

@media(max-width:700px){
  #accountsSection[data-account-view-active="list"] .shared-inventory-group:not([open]) .shared-inventory-summary{
    min-height:116px;
    align-content:center;
  }
  #accountsSection[data-account-view-active="list"] .shared-inventory-statusline{
    margin-top:5px;
  }
}
